Hello,
I am using JBoss 3.0.4 and I'm getting some
errors at startup.
I have a Java class that starts both JBoss
and Resin in 2 threads, so that I can run
them in the same JVM (source snippet at the
end of the message).
In order to stop getting
ClassNotFoundException, etc, I had to add a
few JBoss Jars to JBOSS_CLASSPATH (all jars
from RESIN_HOME/lib), and add pretty much
all Jars from JBOSS_HOME/lib to CLASSPATH
Finally, in my run.sh I start everything
like this:
java -server -cp
"$JBOSS_CLASSPATH:$CLASSPATH" MyJBossResinClass
Now that I am past ClassNotFoundException
problems, I am getting this error:
19:08:19,253 WARN [ServiceController]
Problem starting service
jboss.security:service=XMLLoginConfig
java.lang.NullPointerException
at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524)
at
org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
at
javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:76)
at
org.jboss.security.auth.login.XMLLoginConfig.loadURL(XMLLoginConfig.java:291)
at
org.jboss.security.auth.login.XMLLoginConfig.loadConfig(XMLLoginConfig.java:259)
at
org.jboss.security.auth.login.XMLLoginConfig.start(XMLLoginConfig.java:233)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
...
...
I thought maybe I had an error in my
login-config.xml, so I replaced it with the
original version. Didn't help - same error.
I also tried using Xerces2 instead of
Crimson, but that gave me an error, too.
Not a NullPointerException, but a
MalformedURLException.
So, I am wondering if anyone knows what the
source of this could be?
I am also wondering if anyone thinks this is
caused by my class that launches JBoss and
Resin the way it does?
Some ClassLoader issue? Any way around it?
Note that the class with start JBoss and
Resin in 2 separate threads IS working with
JBoss 2.4.4!
Thank you,
Otis
P.S.
Code snippet for the curious:
Thread jboss = new Thread() {
public void run()
{
try
{
org.jboss.Main.main(new String[]{jbossConf});
}
catch (Exception e)
{
System.err.println("\n\nError while starting
JBOSS");
e.printStackTrace();
}
}
};
jboss.setDaemon(true);
System.out.print("Starting JBOSS ... ");
jboss.start();
________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user