The problem I had with DWR and weblogic 8 was that DWR 2 had some code in it that had Java 1.5 stuff in it (annotations and such). Although it was meant to detect java versions and work normally even with 1.4, the truth is it didn't. So what I did was download the dwr source 2 and comment out the checking for annotations and recompile dwr 2 for java 1.4. That fixed the exceptions that were being raised.
The other option you could try is to use DWR 1.x.
-Mayank
Hye,
have you resolve your problem ? I'm interested in the solution.
Otherwise, on which version of tomcat have you deployed dwr 2.0 ?
mayank76 wrote:
Hi,
I'm trying to run a simple application using DWR 2.0 and Spring 2.0 on Weblogic 8.1. But fails with following error . I have seen few post related to weblogic classpath issue( i have DWR.jar in my application WEB-INF/lib). Not sure if it is a conflict with commons logging, since the error points to LogFactoryImpl . However, the application works fine when deployed on tomcat. Any pointer or help is appreciated...Thanks
Sep 7, 2007 2:41:39 PM org.directwebremoting.util.CommonsLoggingOutput info
INFO: DWR Version 2.0.1 starting.
Sep 7, 2007 2:41:39 PM org.directwebremoting.util.CommonsLoggingOutput info
INFO: - Servlet Engine: WebLogic Server 8.1 SP5 Mon Sep 19 23:06:54 PDT 2005 641
358
Sep 7, 2007 2:41:39 PM org.directwebremoting.util.CommonsLoggingOutput info
INFO: - Java Version: 1.4.2_09
Sep 7, 2007 2:41:39 PM org.directwebremoting.util.CommonsLoggingOutput info
INFO: - Java Vendor: Sun Microsystems Inc.
Sep 7, 2007 2:41:40 PM org.directwebremoting.util.CommonsLoggingOutput fatal
SEVERE: Rethrowing Error:java.lang.ExceptionInInitializerError
Sep 7, 2007 2:41:40 PM org.directwebremoting.util.CommonsLoggingOutput fatal
SEVERE: ExceptionInInitializerError. Nested exception:
java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:333)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:331) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:307)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)