New installation of b31, getting the following errors on startup. I assume these are just things missing from the classpath, but can you tell me what's missing?
Thanks,
Chaz
=======================
Jul 13, 2010 7:45:38 PM org.mortbay.log.Slf4jLog warn
SEVERE: unavailable
java.lang.IllegalStateException: Level number 3 is not recognized.
at org.slf4j.impl.JDK14LoggerAdapter.log(JDK14LoggerAdapter.java:650)
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.fatal(SLF4JLocationAwareLog.java:196)
at org.directwebremoting.util.CommonsLoggingOutput.fatal(CommonsLoggingOutput.java:99)
at org.directwebremoting.util.Logger.fatal(Logger.java:151)
at org.directwebremoting.servlet.DwrServlet.init(DwrServlet.java:87)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.mortbay.start.Main.invokeMain(Main.java:194)
at org.mortbay.start.Main.start(Main.java:534)
at org.mortbay.start.Main.start(Main.java:441)
at org.mortbay.start.Main.main(Main.java:119)
at de.mendelson.comm.as2.server.AS2Server.startHTTPServer(AS2Server.java:205)
at de.mendelson.comm.as2.server.AS2Server.(AS2Server.java:96)
at de.mendelson.comm.as2.AS2.main(AS2.java:96)
Jul 13, 2010 7:45:38 PM org.mortbay.log.Slf4jLog info
INFO: Opened /home/cmccabe/temp/install_mendelson_opensource_as2_1.1b31/log/2010_07_13.request.log
Jul 13, 2010 7:45:38 PM org.mortbay.log.Slf4jLog info
INFO: Started SelectChannelConnector@0.0.0.0:8080
Jul 13, 2010 7:45:39 PM de.mendelson.comm.as2.cert.CertificateManager loadKeystoreCertificates
INFO: Keys and certificates loaded from "/home/cmccabe/temp/install_mendelson_opensource_as2_1.1b31/certificates.p12".
AgentServer#0 started: OK
Jul 13, 2010 7:45:40 PM de.mendelson.comm.as2.jms.MessageQueueServer startup
INFO: Message queue server is started at localhost.
Jul 13, 2010 7:45:40 PM de.mendelson.comm.as2.jms.MessageQueueServer setupQueue
INFO: Message queue set up: #0.0.1033
Jul 13, 2010 7:45:41 PM de.mendelson.comm.as2.server.AS2Server
INFO: Server startup in 6060 ms.
Jul 13, 2010 7:45:41 PM de.mendelson.comm.as2.send.DirPollManager
INFO: Directory poll manager started.
Jul 13, 2010 7:45:41 PM de.mendelson.util.clientserver.AbstractServer start
INFO: Starting mendelson opensource AS2 1.1 build 31 client-server interface, listening on port 1235
Jul 13, 2010 7:45:41 PM de.mendelson.util.clientserver.AbstractServer start
INFO: mendelson opensource AS2 1.1 build 31 client-server interface started.
Jul 13, 2010 7:45:41 PM de.mendelson.comm.as2.send.DirPollManager addPartnerPollThread
INFO: Directory poll manager: Poll for relationship "mycompany/mendelsontest" started. Ignore files: "*.tmp,*.temp". Poll interval: 10s
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/client/methods/HttpUriRequest
at de.mendelson.comm.as2.client.AS2Gui.initComponents(AS2Gui.java:562)
at de.mendelson.comm.as2.client.AS2Gui.(AS2Gui.java:127)
at de.mendelson.comm.as2.AS2.main(AS2.java:104)
Caused by: java.lang.ClassNotFoundException: org.apache.http.client.methods.HttpUriRequest
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
... 3 more
I got the app to start up by adding ":jlib/httpclient/httpclient-4.0.1.jar:jlib/httpclient/httpcore-4.0.1.jar" to the classpath. Still getting the logging error.
Thanks,
Chaz
Chaz,
in your case there are different versions of the l4j classes in the classpath, this results in the error "java.lang.IllegalStateException: Level number 3 is not recognized."
Regards
Heller
I don't understand how that can be. From the very first time I ran mendelson_as2_start.sh after unzipping it, I got those errors. The classpath is being explicity set in the beginning of that script, so as far as I understand, it's not inheriting anything else the system has to offer. "locate" doesn't show any other "l4j" or "slf4j" files on the system.
These are the only jars that look like "l4j". Which do I need?
./jlib/mina/slf4j-api-1.5.0.jar
./jlib/mina/slf4j-jdk14-1.5.0.jar
./jetty/lib/jsp-2.0/slf4j-simple-1.3.1.jar
./jetty/lib/jsp-2.0/slf4j-api-1.3.1.jar
./jetty/lib/jsp-2.0/jcl104-over-slf4j-1.3.1.jar
Thanks,
Chaz
Just finished the build on brand-new hardware, clean install of Ubuntu 10.04 Server, JDK 1.6u21, all 64-bit and I still get those l4j errors.
Thanks,
Chaz
Chaz,
these problems do not depend on the hardware, its a classpath issue. If you install the windows version you will see the required classpath in the .lax file.
Regards
Heller
I understand that; my point was that it was a brand-new environment, with no historical cruft. What I don't understand is how, in that new environment, I can have "different versions of the l4j classes in the classpath". I also don't understand how the Windows version can have everything right in the classpath and the Linux version not. Isn't it all the same stuff in the same directories?
I believe adding "jetty/lib/jsp-2.0/slf4j-simple-1.3.1.jar:jetty/lib/jsp-2.0/jcl104-over-slf4j-1.3.1.jar" solved it.
Thanks,
Chaz
Chaz,
the AS2 server contains some 3rd party software that includes different versions of the logging package in their jars. The order of adding these 3rd party packages to the classpath is important.
Regards
Heller