Looking for valid Jserv configurations (Was: Null Pointer exceptions in servlets since latest Apache/Jserv update)
On Tue, 21 Mar 2000, Andreas Tille wrote:
> On Tue, 21 Mar 2000 16:24:29 +0100 Stefan Gybas <email@example.com>
> > > I have included the line
> > >
> > > repositories=/usr/share/java/servlets,/usr/share/java/freetds_jdbc.jar
> > >
> > > in /etc/jserv/zones/root.properties.
> > You should not do this as the classes in the propsitory are loaded using a
> > special classloader which detects changes files. You should rather put
> > freetds_jdbc.jar into wrapper.classpath in /etc/jserv/jserv.properties and
> > make sure that the system classes (classes.zip for JDK 1.1) are also included
> > in this classpath.
> Hmm, could you be so kind to post an example?
> Im quite unsure because /etc/jserv/jserv.properties says:
> # Apache JServ entry point class (should not be changed)
> # Syntax: wrapper.class=[classname] (String)
> # Default: "org.apache.jserv.JServ"
> So what Do I have to write exactly and where can I set the global
> classpath (for Apache?) correctly?
May be someone could post me his Jserv configuration which enables
FreeTDS access or possibly it might help what exactly I have to
do that my classes can be found. I'm sorry, but I'm too stupid to
understand Stefan's hint about the wrapper.class :-(.
My /var/log/apache.error.log says:
[Wed Mar 22 08:54:01 2000] [notice] Apache/1.3.9 (Unix) Debian/GNU ApacheJServ/1.1 configured -- resuming normal operations
[Wed Mar 22 08:54:01 2000] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Thu Mar 23 09:37:35 2000] [error] JServ: ajp12: Servlet Error: java.lang.NoSuchMethodError: com.internetcds.jdbc.tds.Statement: method <init>(Ljava/sql/Connection;Lcom/internetcds/jdbc/tds/Tds;)V not found: com.internetcds.jdbc.tds.Statement: method <init>(Ljava/sql/Connection;Lcom/internetcds/jdbc/tds/Tds;)V not found
[Thu Mar 23 09:37:35 2000] [error] JServ: an error returned handling request via protocol "ajpv12"