| Author |
Message |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 17/06/2010 04:24:47
|
theodor.richard@gmail.com
Joined: 17/06/2010 04:14:48
Messages: 3
Offline
|
Hi,
I have created a simple Java EE 6 Enterprise App using the latest ICEfaces NetBeans IDE integration.
When I deploy my ear archive to Glassfish v3, I get the following error:
Code:
SEVERE: Exception while invoking class com.sun.enterprise.web.WebApplication start method
java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.NoClassDefFoundError: org/icefaces/context/DOMPartialViewContext
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:117)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:619)
After having a look at the ear archive, it turns out that the icefaces-comps-compat.jar and icefaces.jar are not included in the EARs lib folder. Instead, they are included in the WARs WEB-INF/lib folder. The other required jars (icefaces-compat.jar, icepush.jar) are correctly packaged in the EARs lib folder.
How can I include these two jars in the Enterprise EARs lib folder?
Your help is very appreciated. Thanks.
Theodor
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 23/06/2010 03:23:10
|
theodor.richard@gmail.com
Joined: 17/06/2010 04:14:48
Messages: 3
Offline
|
Am I the only one having this problem? Does anybody else use ICEfaces 2.0 with NetBeans in an Enterprise App? Any help is appreciated.
Thanks,
Theodor
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 28/06/2010 01:14:56
|
soolch

Joined: 23/06/2010 22:31:16
Messages: 10
Offline
|
Ya, I also have this problem, before that is saying can't find log-4j.jar. After I downloaded and added the jar file in to the war project, then it has the error as you stated. Hopefully someone can help us on this.
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 28/06/2010 01:35:52
|
soolch

Joined: 23/06/2010 22:31:16
Messages: 10
Offline
|
The glassfish log also say log4j-core.jar does not exist
But I couldn't find the jar file from the internet.
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 28/06/2010 18:18:27
|
Admin
Joined: 27/05/2004 00:00:00
Messages: 199
Offline
|
Moved from General Help to the Tools forum.
- Admin
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 14/07/2010 11:45:33
|
paulmb
Joined: 26/03/2010 00:00:00
Messages: 4
Offline
|
i used to have this problem, http://developers.sun.com/appserver/reference/techart/log4j.html u can have a better explanation about what the log4j.jar does, to solve this problem you can probably add the file to the /lib folder of the EEapplication, or what i did was right-click and click clean for the WAR, EAR, and EJB and run the EE project, ran fine but still showing the same error stack (but i didnt add the log4j.jar file)
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 21/07/2010 18:01:11
|
migazoo
Joined: 12/07/2010 15:45:31
Messages: 1
Offline
|
I have the same problem in the same case... I've added the requiered jars (logj, icefaces...) into EAR Project library property; but.. when deploying, they desapears from dist/Myproject/lib.
Anyone has any solution? and could explain?
Should I comeback to ICEfaces 1.8.2a??
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 22/07/2010 01:55:42
|
theodor.richard@gmail.com
Joined: 17/06/2010 04:14:48
Messages: 3
Offline
|
Hi migazoo,
I've also posted this to the Glassfish forum and got an answer there. Here's the link:
http://forums.java.net/jive/thread.jspa?messageID=477288
HTH
Theo
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 16/05/2011 15:33:20
|
djeffer2ch
Joined: 12/05/2011 09:19:45
Messages: 1
Offline
|
Hi everybody,
I'm having the same problem, but the link where the answer is (was) published is down. Any suggestions? Thx...
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 15/07/2011 14:47:10
|
juancho088
Joined: 12/06/2011 16:12:09
Messages: 1
Offline
|
Hi I solved this problem. Basically is that log4j-core.jar depends from others libraries, so you have to include them in the project. This libraries are:
commons-beanutils-1.7.0
commons-collections-3.2.1
commons-digester-1.8
commons-logging-1.0.4
hibernate-commons-annotations
log4j
log4j-core
When you include this libraries there will not be any problem
Good luck
|
|
|
 |
|
|