Mike Coburn
2002-11-13 16:43:07 UTC
Hi Guys,
I cand deploy and use a copycat of the airline project under JBoss 3.0.0 with Jetty and MySql 3.23.53-max with J2SDK1.3.1_02 but not with the same combination and JBoss 3.0.3?
1) Of course I have changed the values in build.properties.
2) It is important to know that a slight difference exists between mysql-service.xml (or any other db-service.xml) for JBoss 3.0.0 and JBoss 3.0.3, and if you do like I did, copy mysql-service.xml from JBoss 3.0.0 to JBoss 3.0.3 you are in for a lot of fun trying debugging:
java.lang.SecurityException: Invalid authentication attempt, principal=null
the difference is that, at the end of mysql-service.xml for JBoss 3.0.0:
<depends optional-attribute-name="JaasSecurityManagerService">jboss.security:name=JaasSecurityManager</depends>
<attribute name="TransactionManager">java:/TransactionManager</attribute>
<!--make the rar deploy! hack till better deployment-->
<!--<depends>jboss.jca:service=RARDeployer</depends>-->
</mbean>
</server>
compare to, at the end of mysql-service.xml for JBoss 3.0.3:
<depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager</depends>
<attribute name="TransactionManager">java:/TransactionManager</attribute>
<!--make the rar deploy! hack till better deployment-->
<!--<depends>jboss.jca:service=RARDeployer</depends>-->
</mbean>
</server>
but even after this change: name replaced by service, I end up with this nice Deployment exception
10:27:16,018 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$***@2b3ebfc{ url=file:/H:/jboss-3.0.3/server/default/deploy/simple.ear, deployedLastModified=0 }
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.NullPointerException)
at org.jboss.jetty.Jetty.deploy(Jetty.java:434)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:243)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:794)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:427)
at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:648)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:499)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
+ nested throwable:
java.lang.NullPointerException
at org.mortbay.j2ee.session.Manager.start(Manager.java:159)
at org.mortbay.jetty.servlet.ServletHandler.start(ServletHandler.java:409)
at org.mortbay.jetty.servlet.WebApplicationHandler.start(WebApplicationHandler.java:142)
at org.mortbay.http.HttpContext.startHandlers(HttpContext.java:1780)
at org.jboss.jetty.JBossWebApplicationContext.startHandlers(JBossWebApplicationContext.java:280)
at org.mortbay.http.HttpContext.start(HttpContext.java:1750)
at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:471)
at org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
at org.jboss.jetty.Jetty.deploy(Jetty.java:412)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:243)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:794)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:427)
at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:648)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:499)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
It seems it is Jetty complaining, I have to check what's happening with Tomcat or Resin.
Thanks to Eivind, Aslak, and All for their help, I am just curious if Middlegen-2.0-b1 has been tested with JBoss 3.0.3 or if I am among the exploring guinea pigs.
Cheers, Mike
---------------------------------
Do you Yahoo!?
U2 on LAUNCH - Exclusive medley & videos from Greatest Hits CD
I cand deploy and use a copycat of the airline project under JBoss 3.0.0 with Jetty and MySql 3.23.53-max with J2SDK1.3.1_02 but not with the same combination and JBoss 3.0.3?
1) Of course I have changed the values in build.properties.
2) It is important to know that a slight difference exists between mysql-service.xml (or any other db-service.xml) for JBoss 3.0.0 and JBoss 3.0.3, and if you do like I did, copy mysql-service.xml from JBoss 3.0.0 to JBoss 3.0.3 you are in for a lot of fun trying debugging:
java.lang.SecurityException: Invalid authentication attempt, principal=null
the difference is that, at the end of mysql-service.xml for JBoss 3.0.0:
<depends optional-attribute-name="JaasSecurityManagerService">jboss.security:name=JaasSecurityManager</depends>
<attribute name="TransactionManager">java:/TransactionManager</attribute>
<!--make the rar deploy! hack till better deployment-->
<!--<depends>jboss.jca:service=RARDeployer</depends>-->
</mbean>
</server>
compare to, at the end of mysql-service.xml for JBoss 3.0.3:
<depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager</depends>
<attribute name="TransactionManager">java:/TransactionManager</attribute>
<!--make the rar deploy! hack till better deployment-->
<!--<depends>jboss.jca:service=RARDeployer</depends>-->
</mbean>
</server>
but even after this change: name replaced by service, I end up with this nice Deployment exception
10:27:16,018 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$***@2b3ebfc{ url=file:/H:/jboss-3.0.3/server/default/deploy/simple.ear, deployedLastModified=0 }
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.NullPointerException)
at org.jboss.jetty.Jetty.deploy(Jetty.java:434)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:243)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:794)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:427)
at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:648)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:499)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
+ nested throwable:
java.lang.NullPointerException
at org.mortbay.j2ee.session.Manager.start(Manager.java:159)
at org.mortbay.jetty.servlet.ServletHandler.start(ServletHandler.java:409)
at org.mortbay.jetty.servlet.WebApplicationHandler.start(WebApplicationHandler.java:142)
at org.mortbay.http.HttpContext.startHandlers(HttpContext.java:1780)
at org.jboss.jetty.JBossWebApplicationContext.startHandlers(JBossWebApplicationContext.java:280)
at org.mortbay.http.HttpContext.start(HttpContext.java:1750)
at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:471)
at org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
at org.jboss.jetty.Jetty.deploy(Jetty.java:412)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:243)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:794)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:427)
at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:648)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:499)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
It seems it is Jetty complaining, I have to check what's happening with Tomcat or Resin.
Thanks to Eivind, Aslak, and All for their help, I am just curious if Middlegen-2.0-b1 has been tested with JBoss 3.0.3 or if I am among the exploring guinea pigs.
Cheers, Mike
---------------------------------
Do you Yahoo!?
U2 on LAUNCH - Exclusive medley & videos from Greatest Hits CD