-
1. Re: Embedded JBoss Beta 2 & Java 6
thejavafreak Oct 4, 2007 2:00 AM (in response to flowbee)I had the same problem too with Java 6 :(
-
2. Re: Embedded JBoss Beta 2 & Java 6
johanmicoud Oct 9, 2007 3:46 AM (in response to flowbee)Hello,
JBoss Embedded works very well with JDK 6. You just have to set the following JVM param :
-Dsun.lang.ClassLoader.allowArraySyntax=true
Cheers,
Sam -
3. Re: Embedded JBoss Beta 2 & Java 6
alexg79 Oct 10, 2007 4:59 AM (in response to flowbee)
JBoss Embedded works very well with JDK 6. You just have to set the following JVM param :
-Dsun.lang.ClassLoader.allowArraySyntax=true
Hot damn. Knowing this would have saved me countless hours trying to solve the JDK6 compatibility issues with various JBoss products :( -
4. Re: Embedded JBoss Beta 2 & Java 6
sidydrum Oct 15, 2007 6:26 AM (in response to flowbee)So, I added in the catalina.bat file, to the JAVA_OPTS var, the value
-Dsun.lang.ClassLoader.allowArraySyntax=true
I restarted my tomcat (6.0.14) using jdk 1.6.0_b105 (in fact Enterprise Edition 5 SDK Update 2) and embedded-jboss-beta2
But I receive the below error when SUBMITING http://localhost:8080/jboss-seam-registration/register.seam
for the "registration" TUTORIAL example.
How comes the tutorial doesn't work ?
I just did what is explained on jboss-seam "getting started" page to let embedded jboss to run on tomcat 6.0
Here is the initialization log.
15 oct. 2007 11:53:55 org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\EE5SDK\jdk\bin;.;C:\WINNT\Sun\Java\bin;C:\WINNT\system32;C:\WINNT;C:\EE5SDK\jdk\bin;C:\Perl\site\bin;C:\Perl\bin;C:\Program Files\PHP\;C:\Oracle\product\10.1.0\Client_1\bin;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin;C:\OraRpt\bin;c:\winprog\Orant\jre\1.4.2\bin;c:\winprog\Orant\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\WINNT\system32\nls;C:\WINNT\system32\nls\ENGLISH;c:\Program Files\QuickTime\QTSystem;C:\Program Files\IBM\Trace Facility;C:\Program Files\Personal Communications;C:\Program Files\Rational\ClearCase\bin;C:\Program Files\Rational\common;C:\PROGRAM FILES\OPT\DCE\BIN;C:\PROGRA~1\ULTRAE~1;C:\apache-ant-1.6.2\bin;C:\Program Files\GnuWin32\bin;c:\MySQL\bin
15 oct. 2007 11:53:55 org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
15 oct. 2007 11:53:55 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 560 ms
15 oct. 2007 11:53:59 org.apache.catalina.core.StandardService start
INFO: Démarrage du service Catalina
15 oct. 2007 11:53:59 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
15 oct. 2007 11:53:59 org.apache.catalina.startup.HostConfig deployWAR
INFO: Déploiement de l'archive jboss-seam-registration.war de l'application web
15 oct. 2007 11:54:00 org.apache.catalina.loader.WebappLoader start
INFO: Dual registration of jndi stream handler: factory already defined
15 oct. 2007 11:54:00 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b16-p02) for context '/jboss-seam-registration'
15 oct. 2007 11:54:02 org.apache.coyote.http11.Http11Protocol start
INFO: Démarrage de Coyote HTTP/1.1 sur http-8080
15 oct. 2007 11:54:02 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
15 oct. 2007 11:54:02 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31 config=null
15 oct. 2007 11:54:02 org.apache.catalina.startup.Catalina start
INFO: Server startup in 7010 ms
Here is the log after I submit the registration form :
15 oct. 2007 11:57:33 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/E:/apache-tomcat-6.0.14/webapps/jboss-seam-registration/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/s.taglib.xml
15 oct. 2007 11:57:33 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/E:/apache-tomcat-6.0.14/webapps/jboss-seam-registration/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
15 oct. 2007 11:57:33 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/E:/apache-tomcat-6.0.14/webapps/jboss-seam-registration/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
15 oct. 2007 11:57:33 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/E:/apache-tomcat-6.0.14/webapps/jboss-seam-registration/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
15 oct. 2007 11:57:33 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/E:/apache-tomcat-6.0.14/webapps/jboss-seam-registration/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
15 oct. 2007 11:57:33 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/E:/apache-tomcat-6.0.14/webapps/jboss-seam-registration/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
15 oct. 2007 11:57:39 com.sun.faces.lifecycle.InvokeApplicationPhase execute
ATTENTION: Could not instantiate Seam component: register
org.jboss.seam.InstantiationException: Could not instantiate Seam component: register
at org.jboss.seam.Component.newInstance(Component.java:1971)
at org.jboss.seam.Component.getInstance(Component.java:1874)
at org.jboss.seam.Component.getInstance(Component.java:1841)
at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
at javax.faces.component.UICommand.broadcast(UICommand.java:383)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.naming.NameNotFoundException: RegisterAction not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:628)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:590)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.jboss.seam.Component.instantiateSessionBean(Component.java:1288)
at org.jboss.seam.Component.instantiate(Component.java:1274)
at org.jboss.seam.Component.newInstance(Component.java:1967)
... 34 more
15 oct. 2007 11:57:39 com.sun.faces.lifecycle.LifecycleImpl phase
ATTENTION: executePhase(INVOKE_APPLICATION 5,com.sun.faces.context.FacesContextImpl@a1a602) threw exception
javax.faces.FacesException: Could not instantiate Seam component: register
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:105)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: register
at org.jboss.seam.Component.newInstance(Component.java:1971)
at org.jboss.seam.Component.getInstance(Component.java:1874)
at org.jboss.seam.Component.getInstance(Component.java:1841)
at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
at javax.faces.component.UICommand.broadcast(UICommand.java:383)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
... 15 more
Caused by: javax.naming.NameNotFoundException: RegisterAction not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:628)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:590)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.jboss.seam.Component.instantiateSessionBean(Component.java:1288)
at org.jboss.seam.Component.instantiate(Component.java:1274)
at org.jboss.seam.Component.newInstance(Component.java:1967)
... 34 more
Why can't seam instantiate the "register" component ?
I'm probably missing something obvious as I can't believe my first steps using Seam could be that much impaired using the first tutorial ...
I hope next step will be smoother...
Thanks in advance for your answers. -
5. Re: Embedded JBoss Beta 2 & Java 6
sidydrum Oct 15, 2007 8:52 AM (in response to flowbee)Didn't find any solution to this problem.
BUT, here is a configuration which works just fine
jboss-seam-2.0.0.CR2 (Oct 5th new release)
jdk1.5.0_13
tomcat 6.0.14
embedded-jboss-beta2 -
6. Re: Embedded JBoss Beta 2 & Java 6
pmuir Oct 15, 2007 9:43 AM (in response to flowbee)Embedded doesn't run properly on JDK 1.6 - you need to bug them on the embedded forum for this ;)
-
7. Re: Embedded JBoss Beta 2 & Java 6
alexg79 Oct 16, 2007 4:23 AM (in response to flowbee)Embedded doesn't run properly on JDK 1.6 - you need to bug them on the embedded forum for this ;)
Are there problems other than the array classloading issue?
And where is this embedded forum you're referring to? Who should we be bugging? -
8. Re: Embedded JBoss Beta 2 & Java 6
jyrinx Nov 15, 2007 5:16 PM (in response to flowbee)alexg79 wrote:
Embedded doesn't run properly on JDK 1.6 - you need to bug them on the embedded forum for this ;)
Are there problems other than the array classloading issue?
And where is this embedded forum you're referring to? Who should we be bugging?
Yeah, I've been having trouble finding anything on the specifics of the trouble with Embedded JBoss and JDK6 - it'd be good to have something on the wiki. -
9. Re: Embedded JBoss Beta 2 & Java 6
statelessbean Nov 25, 2007 6:53 AM (in response to flowbee)Have u got any plans to build some working version with JDK 1.6?
-
10. Re: Embedded JBoss Beta 2 & Java 6
pmuir Dec 5, 2007 11:56 AM (in response to flowbee)Adrian has AS 5 working with Java 1.6 now, so we may be able to get Embedded to run too.