Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sandor Agafonoff
Error deploying Liferay EE Trial standalone WAR file on GlassFish 3.1.2.2
October 31, 2012 6:52 PM
Answer

Sandor Agafonoff

Rank: New Member

Posts: 4

Join Date: October 31, 2012

Recent Posts

Hi,

When deploying the standalone WAR file for the Liferay EE Trial, I received the following error:

1Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/liferay/portal/kernel/bean/BeanLocator. Please see server.log for more details.


The server log is showing the following:

 1[#|2012-11-01T12:24:42.536+1100|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=44;_ThreadName=Thread-2;|Exception while invoking class com.sun.enterprise.web.WebApplication start method
 2java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/liferay/portal/kernel/bean/BeanLocator
 3    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:138)
 4    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
 5    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
 6    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
 7    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
 8    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
 9    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
10    at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
11    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
12    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
13    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
14    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
15    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
16    at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:214)
17    at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:207)
18    at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:148)
19    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
20    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
21    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
22    at java.lang.reflect.Method.invoke(Method.java:601)
23    at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
24    at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
25    at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
26    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
27    at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
28    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
29    at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
30    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
31    at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
32    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
33    at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
34    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
35    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
36    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
37    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
38    at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:182)
39    at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:147)
40    at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:148)
41    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
42    at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
43    at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
44    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
45    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
46    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
47    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
48    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
49    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
50    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
51    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
52    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
53    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
54    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
55    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
56    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
57    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
58    at java.lang.Thread.run(Thread.java:722)
59|#]


Is someone able to tell me why this error occurred, and also how to fix this issue? It is hard to perform a 30 day Trial evaluation when unable to deploy the application.

Thanks.
Sandor Agafonoff
RE: Error deploying Liferay EE Trial standalone WAR file on GlassFish 3.1.2
November 1, 2012 2:25 AM
Answer

Sandor Agafonoff

Rank: New Member

Posts: 4

Join Date: October 31, 2012

Recent Posts

Ok,

So I have moved pas the previous error. I had not downloaded and placed the additional files from http://www.liferay.com/downloads/liferay-portal/additional-files

Now that is complete, I have the following error after deployment from the server log:

 1[#|2012-11-01T07:30:27.757+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=86;_ThreadName=Thread-2;|07:30:27,742 ERROR [admin-thread-pool-4848(3)][MainServlet:217] java.lang.IllegalStateException: Attempting to deploy an older Liferay Portal version. Current build version is 6110 and attempting to deploy version 6101.
 2java.lang.IllegalStateException: Attempting to deploy an older Liferay Portal version. Current build version is 6110 and attempting to deploy version 6101.
 3    at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:105)
 4    at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:144)
 5    at com.liferay.portal.ee.license.StartupAction.doRun(Unknown Source)
 6    at com.liferay.portal.events.StartupAction.run(StartupAction.java:52)
 7    at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1306)
 8    at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:214)
 9    at javax.servlet.GenericServlet.init(GenericServlet.java:244)
10    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1453)
11    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1250)
12    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5093)
13    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5380)
14    at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
15    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
16    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
17    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
18    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019)
19    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
20    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
21    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
22    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
23    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
24    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
25    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
26    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
27    at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
28    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
29    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
30    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
31    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
32    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
33    at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:214)
34    at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:207)
35    at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:148)
36    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
37    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
38    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
39    at java.lang.reflect.Method.invoke(Method.java:601)
40    at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
41    at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
42    at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
43    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
44    at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
45    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
46    at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
47    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
48    at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
49    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
50    at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
51    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
52    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
53    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
54    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
55    at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:182)
56    at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:147)
57    at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:148)
58    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
59    at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
60    at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
61    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
62    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
63    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
64    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
65    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
66    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
67    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
68    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
69    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
70    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
71    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
72    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
73    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
74    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
75    at java.lang.Thread.run(Thread.java:722)
76|#]


Any suggestions?
Kevin Creason
RE: Error deploying Liferay EE Trial standalone WAR file on GlassFish 3.1.2
November 5, 2012 8:46 AM
Answer

Kevin Creason

Rank: New Member

Posts: 2

Join Date: November 2, 2012

Recent Posts

I get this version-error as well.
I've emailed my pre-sales support people about it, so we will see if there is a fix from them.
Did you figure it out and get it to start?
Sandor Agafonoff
RE: Error deploying Liferay EE Trial standalone WAR file on GlassFish 3.1.2
November 5, 2012 8:12 PM
Answer

Sandor Agafonoff

Rank: New Member

Posts: 4

Join Date: October 31, 2012

Recent Posts

I was unable to get past the last error.

In order to do some evaluation, I downloaded the glassfish bundle and was able to start that.
Hitoshi Ozawa
RE: Error deploying Liferay EE Trial standalone WAR file on GlassFish 3.1.2
November 5, 2012 10:41 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Which version of liferay dependencies did you download? It has to match the Liferay version.
Sandor Agafonoff
RE: Error deploying Liferay EE Trial standalone WAR file on GlassFish 3.1.2
November 5, 2012 10:45 PM
Answer

Sandor Agafonoff

Rank: New Member

Posts: 4

Join Date: October 31, 2012

Recent Posts

The WAR file was:

liferay-portal-6.1.20-ee-ga2-20120731110418084.war

Portal Dependencies was:

liferay-portal-dependencies-6.1.1-ce-ga2-20120731132656558.zip

I can see there is a difference there, so where can I find the portal dependencies for the above WAR file?
Kevin Creason
RE: Error deploying Liferay EE Trial standalone WAR file on GlassFish 3.1.2
November 6, 2012 5:57 AM
Answer

Kevin Creason

Rank: New Member

Posts: 2

Join Date: November 2, 2012

Recent Posts

The pre-sales support team were able to email me the correct dependency file to get beyond this error.
I would contact sales and support-- until the download link gets updated.
Hitoshi Ozawa
RE: Error deploying Liferay EE Trial standalone WAR file on GlassFish 3.1.2
November 6, 2012 6:38 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

As Kevin replied, all EE files are available only from EE site. You'll have to ask liferay sales to get them during trial.
Baber Ali
RE: Error deploying Liferay EE Trial standalone WAR file on GlassFish 3.1.2
November 15, 2012 1:19 AM
Answer

Baber Ali

Rank: New Member

Posts: 2

Join Date: November 14, 2012

Recent Posts

As a workaround just replace 6110 with 6101 in the file 'lportal.script' under /liferay/data/hsql