www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marge Malina <gab...@club-internet.fr>
Subject mod_jserv/6006: The servlets are not executed -> Illegal access exception:Petitser (my servlet name)
Date Tue, 18 Apr 2000 14:24:29 GMT

>Number:         6006
>Category:       mod_jserv
>Synopsis:       The servlets are not executed -> Illegal access exception:Petitser
(my servlet name)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jserv
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Apr 18 07:30:00 PDT 2000
>Originator:     gabuzo@club-internet.fr
>Release:        1.3.6
Compiling java servlets under WinNT, executing them on Apache server.
jdk 1.1.8
jsdk 2
mod_jserv.log content:
[18/04/2000 15:43:52:579] (ERROR) ajp12: Servlet Error: java.lang.IllegalAccessE
xception: Petitser: Petitser
[18/04/2000 15:43:52:579] (ERROR) an error returned handling request via protoco
l "ajpv12"

jserv.log content:
[18/04/2000 15:43:52:579 CEST] java.lang.IllegalAccessException: Petitser
        at org.apache.jserv.JServServletManager.load_init(JServServletManager.ja
        at org.apache.jserv.JServServletManager.loadServlet(JServServletManager.
        at org.apache.jserv.JServConnection.processRequest(JServConnection.java:
        at org.apache.jserv.JServConnection.run(JServConnection.java:188)
        at java.lang.Thread.run(Thread.java)

My source program:
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import org.gjt.mm.mysql.*;
import java.sql.*;

class Petitser extends HttpServlet{

	public void doGet (HttpServletRequest req, HttpServletResponse res)
	  throws ServletException, IOException
		PrintWriter out = res.getWriter();	
		HttpSession session=req.getSession(true);	
		String url="jdbc:mysql://fs2:3306/keystone";
    	java.sql.Connection con = DriverManager.getConnection (url, "nobody","nobody"); 
		catch(ClassNotFoundException e){
			out.println("Driver problem: "+e.getMessage());
		catch(SQLException e){
			out.println("Driver problem: "+e.getMessage());
No. I tried to find a solution with the help of the log files but...
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message