Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Renata Siega
Liferay CE 6.1.1 GA2 Tomcat 7.0.27 start problem
November 26, 2012 9:30 AM
Answer

Renata Siega

Rank: Junior Member

Posts: 34

Join Date: October 29, 2012

Recent Posts

The follow error:


17:04:18,700 ERROR [pool-2-thread-1][MainServlet:217] java.lang.IllegalStateException: Attempting to deploy an older Liferay Portal version. Current build version is 6120 and attempting to deploy version 6101.
java.lang.IllegalStateException: Attempting to deploy an older Liferay Portal version. Current build version is 6120 and attempting to deploy version 6101.
at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:105)
at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:144)
at com.liferay.portal.events.StartupAction.run(StartupAction.java:52)
at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1306)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:214)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1585)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Stopping the server due to unexpected startup errors



I already tried to replace 6101 with 6120 in the file 'lportal.script' under /liferay/data/hsql and it didn't work
Hitoshi Ozawa
RE: Liferay CE 6.1.1 GA2 Tomcat 7.0.27 start problem
November 26, 2012 3:18 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Are you trying to upgrade from Liferay CE 6.1.0 GA1 to EE? It's difficult to know why the error is occurring without you telling us what you're trying to do.
Jonas Yuan
RE: Liferay CE 6.1.1 GA2 Tomcat 7.0.27 start problem
November 26, 2012 3:23 PM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Hi Renata,

Which version are you using? 6.1 GA2 CE? 6.1 GA2 EE?

See message "java.lang.IllegalStateException: Attempting to deploy an older Liferay Portal version. Current build version is 6120 and attempting to deploy version 6101.".
Both 6.1 GA2 EE and CE version appear (6120 - EE, 6101 -CE).
Renata Siega
RE: Liferay CE 6.1.1 GA2 Tomcat 7.0.27 start problem
November 27, 2012 1:46 AM
Answer

Renata Siega

Rank: Junior Member

Posts: 34

Join Date: October 29, 2012

Recent Posts

Hi,

I'm trying to run liferay-portal-6.1.1-ce-ga2
I don't know why my build version shows 6120

What I'm trying to do is to change the database to Sybase, I have friend that is using the EE release, and I asked her how she did it and she showed me the things that I have to change, like:
create the portal-ext.properties inside the directory \liferay-portal-6.1.1-ce-ga2\tomcat-7.0.27\webapps\ROOT\WEB-INF\classes
change some lines in the ROOT.xml inside the directory \liferay-portal-6.1.1-ce-ga2\tomcat-7.0.27\conf\Catalina\localhost
and copy the jtds.jar from here \liferay-portal-6.1.1-ce-ga2\tomcat-7.0.27\lib\ext to there \liferay-portal-6.1.1-ce-ga2\tomcat-7.0.27\lib (I really copy it, it remains on the first directory)

I have both releases (CE and EE) downloaded, I have already tested the changes on my EE and it worked, I mean, I used the startup.bat file to run, and the localhost opened up properly

For the CE release I have configured my Eclipse with the Liferay plugin to run the project, and then the error message, I also tried to run the .bat file and it didn't work.
Renata Siega
RE: Liferay CE 6.1.1 GA2 Tomcat 7.0.27 start problem
November 27, 2012 2:01 AM
Answer

Renata Siega

Rank: Junior Member

Posts: 34

Join Date: October 29, 2012

Recent Posts

And I forgot to mention that before I try to change the database Liferay CE was running through Eclipse
file
portal-ext.properties

hibernate.dialect=org.hibernate.dialect.Sybase11Dialect
hibernate.jdbc.batch_size=0
jdbc.default.driverClassName=net.sourceforge.jtds.jdbc.Driver
jdbc.default.url=jdbc:jtds:sybase://150.162.9.4:14100/lportal
jdbc.default.username=(erased)
jdbc.default.password=(erased)
custom.sql.function.isnull=ISNULL(?, '1') = '1'
custom.sql.function.isnotnull=ISNULL(?, '1') = '0'


file
ROOT.xml

<Context path="" reloadable="true" crossContext="true">
<Resource name="jdbc/LiferayPool" auth="Container" type="javax.sql.DataSource" />
<ResourceParams name="jdbc/LiferayPool">
<parameter>
<name>jTDS Sybase</name>
<value>net.sourceforge.jtds.jdbc.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:jtds:sybase://150.162.9.4:14100/lportal</value>
</parameter>
<parameter>
<name>username</name>
<value>(erased)</value>
</parameter>
<parameter>
<name>password</name>
<value>(erased)</value>
</parameter>
</ResourceParams>
</Context>


and attached the .jar file
Attachments: jtds.jar (295.2k)
Renata Siega
RE: Liferay CE 6.1.1 GA2 Tomcat 7.0.27 start problem
November 27, 2012 8:08 AM
Answer

Renata Siega

Rank: Junior Member

Posts: 34

Join Date: October 29, 2012

Recent Posts

And now I am wondering if the problem might be with the database itself because my friend created the database for the Liferay EE, and I didn't intend to create another for myself, so that's why I'm using the same as hers.
Hitoshi Ozawa
RE: Liferay CE 6.1.1 GA2 Tomcat 7.0.27 start problem
November 27, 2012 2:57 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Yes, that may be it. CE and EE revision are different and some database table definition and system values may be different. Should create your own CE database.
Renata Siega
RE: Liferay CE 6.1.1 GA2 Tomcat 7.0.27 start problem
December 3, 2012 1:35 AM
Answer

Renata Siega

Rank: Junior Member

Posts: 34

Join Date: October 29, 2012

Recent Posts

I have created another database using PostgreSQL and the same sort of changes in the configuration files it worked. It seems that the Liferay version is recorded in the database.
Jonas Yuan
RE: Liferay CE 6.1.1 GA2 Tomcat 7.0.27 start problem
December 5, 2012 7:06 AM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Yes, table name called Release_