Re: [Resin-interest] Compiling Servlets in Eclipse Breaks the app
Rom Sok schrieb: Here is the error from the console: * [19:17:38.683] com.caucho.config.LineConfigException: /C:/resin/conf/app-default.xml:49: `romsok_srv' is not a known servlet. Servlets belong in the classpath, often in WEB-INF/classes.* I think the servlet identified by romsok_srv will have to be made available to the servlet engine on startup for general use, on a par with: * com.caucho.servlets.DirectoryServlet * com.caucho.servlets.FileServlet * com.caucho.jsp.JspServlet * com.caucho.jsp.XtpServlet So try putting the classes in $RESIN_HOME/lib and not in WEB-INF/classes. Does that work? -- Michael Ludwig ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Compiling Servlets in Eclipse Breaks the app
Actually the response from S! seems to have solved the problem. I was compiling with 1.6 - reduced it to 1.5 and it works just fine. Thank you all for your input. On Mon, Sep 21, 2009 at 10:01 AM, Michael Ludwig m...@as-guides.com wrote: Rom Sok schrieb: Here is the error from the console: * [19:17:38.683] com.caucho.config.LineConfigException: /C:/resin/conf/app-default.xml:49: `romsok_srv' is not a known servlet. Servlets belong in the classpath, often in WEB-INF/classes.* I think the servlet identified by romsok_srv will have to be made available to the servlet engine on startup for general use, on a par with: * com.caucho.servlets.DirectoryServlet * com.caucho.servlets.FileServlet * com.caucho.jsp.JspServlet * com.caucho.jsp.XtpServlet So try putting the classes in $RESIN_HOME/lib and not in WEB-INF/classes. Does that work? -- Michael Ludwig ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Compiling Servlets in Eclipse Breaks the app
On Sep 18, 2009, at 1:36 PM, Rom Sok wrote: Hi, I ran into a problem. I created an Eclipse project and I use it as the deploy directory as well in Resin, but I am also using some code that was compiled a long time ago not by me. It works fine until I attempt to compile the servlet classes in Eclipse - then I get notices from Resin on the console, that it cannot find those servlet classes even though they are right there under the classes directory in WEB-INF. Could anyone please suggest why this might be happening? Do you know if those classes depend on a library that might be missing? The JDK can throw some misleading ClassNotFoundExceptions when the class exists, but one of its dependencies does not exist. (Hmm. It might be possible in the future for Resin to modify the error a bit, so you can distinguish between the two cases.) -- Scott Thanks, Ramy. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Compiling Servlets in Eclipse Breaks the app
These are the only packages the class depends on: * import java.io.*; import java.sql.*; import javax.sql.*; import javax.naming.*; import javax.servlet.*; import javax.servlet.http.*; import java.util.*;* Here is the error from the console: * [19:17:38.683] com.caucho.config.LineConfigException: /C:/resin/conf/app-default.xml:49: `romsok_srv' is not a known servlet. Servlets belong in the classpath, often in WEB-INF/classes.* On Fri, Sep 18, 2009 at 5:24 PM, Scott Ferguson f...@caucho.com wrote: On Sep 18, 2009, at 1:36 PM, Rom Sok wrote: Hi, I ran into a problem. I created an Eclipse project and I use it as the deploy directory as well in Resin, but I am also using some code that was compiled a long time ago not by me. It works fine until I attempt to compile the servlet classes in Eclipse - then I get notices from Resin on the console, that it cannot find those servlet classes even though they are right there under the classes directory in WEB-INF. Could anyone please suggest why this might be happening? Do you know if those classes depend on a library that might be missing? The JDK can throw some misleading ClassNotFoundExceptions when the class exists, but one of its dependencies does not exist. (Hmm. It might be possible in the future for Resin to modify the error a bit, so you can distinguish between the two cases.) -- Scott Thanks, Ramy. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest