From: Lane S. <la...@op...> - 2006-02-23 17:23:28
|
<html><body><font style=3D"font-family: arial,helvetica,sans-serif;" size= =3D"2">place the wm property file in the root of the classes/ folder in you= r web app.<br> <br> -Lane<br> <br> <br> <br>--- viju <vij...@ya...> wrote:<br> <br><b>= From:</b> viju <vij...@ya...><br><b>Date:</b> Thu, 23 Feb 200= 6 06:39:44 -0800 (PST)<br><b>To:</b> web...@li...<br= ><b>Subject:</b> [WebMacro-user] WebMacro.properties & NullPointerExcep= tion<br><br></font><div><font style=3D"font-family: arial,helvetica,sans-se= rif;" size=3D"2">Hi,</font></div><font style=3D"font-family: arial,helvetic= a,sans-serif;" size=3D"2"> </font><div><font style=3D"font-family: arial,h= elvetica,sans-serif;" size=3D"2"> </font></div><font style=3D"font-fam= ily: arial,helvetica,sans-serif;" size=3D"2"> </font><div><font style=3D"f= ont-family: arial,helvetica,sans-serif;" size=3D"2">I'm facing some issue with webmacro based webapp deployed in tomcat 5.0.0.28. When ever try loading my welcome page from servlet I get the following excpetion </font></div><pre><font style=3D"font-family: arial,hel= vetica,sans-serif;" size=3D"2">java.lang.NullPointerException org.webmacr= o.servlet.WMServlet.doPost(WMServlet.java:230) javax.servlet.http.HttpSer= vlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service= (HttpServlet.java:802) sun.reflect.GeneratedMethodAccessor99.invoke(Unkno= wn Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth= odAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:324) = org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239) = java.security.AccessController.doPrivileged(Native Method) javax.security= .auth.Subject.doAsPrivileged(Subject.java:500) org.apache.catalina.securi= ty.SecurityUtil.execute(SecurityUtil.java:268) org.apache.catalina.securi= ty.SecurityUtil.doAsPrivilege(SecurityUtil.java:157) </font></pre><font st= yle=3D"font-family: arial,helvetica,sans-serif;" size=3D"2">< PRE>Th= e tomcat log says the WebMacro.properties file must be classpath. But I ha= ve copied this file into </font><pre><font style=3D"font-family: arial,helv= etica,sans-serif;" size=3D"2">tomcat/shared/lib folder. I think the Classlo= ader for the web application should find this property file </font></pre><p= re><font style=3D"font-family: arial,helvetica,sans-serif;" size=3D"2">unde= r this folder. </font></pre><pre><font style=3D"font-family: arial,helvetic= a,sans-serif;" size=3D"2">So can somebody help understand what could be the= issue here?</font></pre><pre><font style=3D"font-family: arial,helvetica,s= ans-serif;" size=3D"2"> </font></pre><pre><font style=3D"font-family: = arial,helvetica,sans-serif;" size=3D"2">thanks in advance</font></pre><pre>= <font style=3D"font-family: arial,helvetica,sans-serif;" size=3D"2">Vijayen= dra </font></pre><p><font style=3D"font-family: arial,helvetica,sans-serif;= " size=3D"2"> </font></p><hr size=3D"1"><font style=3D"font-family: arial= ,helvetica,sans-serif;" size=3D"2">Relax. Yahoo! Mail <a href=3D"http://us= .rd.yahoo.com/mail_us/taglines/virusall/*http://communications.yahoo.com/fe= atures.php?page=3D221" target=3D"_blank">virus scanning</a> helps detect na= sty viruses!</font></body></html> |