Discussion:
[Middlegen-user] Middlegen-2.0-b1 not ok with JBoss 3.0.3 but ok with JBoss 3.0.0?
Mike Coburn
2002-11-13 16:43:07 UTC
Permalink
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
Jens Fischer
2002-11-13 19:40:03 UTC
Permalink
Hello Mike,

Wednesday, November 13, 2002, 7:42:38 PM, you wrote:

[...Changes between JBoss 3.0.0 and 3.0.3...]
Post by Mike Coburn
but even after this change: name replaced by service, I end up with this nice Deployment exception
[...Exception stacktrace...]
Post by Mike Coburn
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.
I am successfully developing using JBoss 3.0.2/Jetty (which already uses the
"service" change you stated aboce), PostgreSQL 7.2.2 and current CVS
version of Middlegen. So I doubt your problem occurs due to this
cchange in the *-service.xml files.
Post by Mike Coburn
Cheers, Mike
Regards,
Jens
Mike Coburn
2002-11-14 00:04:02 UTC
Permalink
Thanks Jens and Darryl:

with:

Middlegen-2.0-b1
J2SDK1.3.1_02
MySql-3.23.53-max
mm.mysql-2.0.14

this is what is ok, so far:

JBoss 3.0.0 and Jetty
JBoss 3.0.0 and Tomcat 4.0.3 bundled together
JBoss 3.0.4 and Tomcat 4.1.12 bundled together

what is not ok:

JBoss 3.0.3 and Jetty
JBoss 3.0.4 and Jetty

It sounds like the new expanded packaging of Jetty
JBossweb.sar is causing some kind of trouble.

I have to investigate.
Cheers, Mike
Post by Jens Fischer
Hello Mike,
[...Changes between JBoss 3.0.0 and 3.0.3...]
Post by Mike Coburn
but even after this change: name replaced by
service, I end up with this nice Deployment
exception
[...Exception stacktrace...]
Post by Mike Coburn
It seems it is Jetty complaining, I have to check
what's happening with Tomcat or Resin.
Post by Mike Coburn
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.
I am successfully developing using JBoss 3.0.2/Jetty
(which already uses the
"service" change you stated aboce), PostgreSQL 7.2.2
and current CVS
version of Middlegen. So I doubt your problem occurs
due to this
cchange in the *-service.xml files.
Post by Mike Coburn
Cheers, Mike
Regards,
Jens
-------------------------------------------------------
Post by Jens Fischer
This sf.net email is sponsored by: Are you worried
about
your web server security? Click here for a FREE
Thawte
Apache SSL Guide and answer your Apache SSL security
needs: http://www.gothawte.com/rd523.html
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user


__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

Loading...