form authentication doesnt't work well

2003-11-24 Thread cyril vidal
Hi,

Perhaps the problem is well known.
I'm under Tomcat/4.1.18-LE-jdk14

When I use form authentication, with the following code snippet included in web.xml:

web-app
security-constraint

...
web-resource-collection

web-resource-namedeclarativetest/web-resource-name

url-pattern/servlet/chapter9.DeclarativeSecureServlet/url-pattern

http-methodPOST/http-method

/web-resource-collection

...

/security-constraint

login-config

auth-methodFORM/auth-method

form-login-config

form-login-page/formlogin.html/form-login-page

form-error-page/formerror.html/form-error-page

/form-login-config

/login-config

...

/web-app



when I access my servlet 
http://localhost:8080/servlet/chapter9.DeclarativeSecureServlet via POST method, I 
have to fill the form http://localhost:8080/security/formlogin.html: that's confrom to 
 the informations given in web.xml (form-login-page).

However, when I fill correctly this form, I have the output of doGet method of the 
DeclarativeSecureServlet and not the output of doPost method as expected!!

However, all works well when I run the same example with BASIC autthentication method 
instead of FORM one.

Is this bug fixed in a more recent version of Tomcat?



Thanks in advance for your response,

Regards,

Cyril.


getContext returns null!

2003-11-21 Thread cyril vidal
Hi,

I just would like to get a reference to the ServletContext of another web application 
as the current one, to get a RequestDispatcher object.

I know that the path should begin with / and that it is interpreted relative to the 
server's document root .

So i'm in a web application context and would like to get the context of 
c:\tomcat\webapps\tutobean application.

I've written the following code:

protected void doGet(HttpServletRequest req, HttpServletResponse rep)

throws ServletException, IOException {

ServletContext currentSC = getServletContext(); //reference to the current 
ServletContext

ServletContext distantSC = currentSC.getContext(/tutobean); //reference to the 
ServletContext of tutobean webappl, corresponding to http://localhost:8080/tutobean.

distantSC.getRequestDispatcher(/index.html).forward(req,rep); //NullPOinterException 
here because distantSC is null!!!



What's wrong in my code?

Thanks for your response,

Regards,

Cyril.


Re: getContext returns null!

2003-11-21 Thread cyril vidal
You're right Jon.
Thanks for the tip!

Cyril.
- Original Message -
From: Jon Wingfield [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, November 21, 2003 11:19 AM
Subject: Re: getContext returns null!


 I think you may need to set your Context to be crossContext.

 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

 HTH,

 Jon


 cyril vidal wrote:
  Hi,
 
  I just would like to get a reference to the ServletContext of another
web application as the current one, to get a RequestDispatcher object.
 
  I know that the path should begin with / and that it is interpreted
relative to the server's document root .
 
  So i'm in a web application context and would like to get the context of
c:\tomcat\webapps\tutobean application.
 
  I've written the following code:
 
  protected void doGet(HttpServletRequest req, HttpServletResponse rep)
 
  throws ServletException, IOException {
 
  ServletContext currentSC = getServletContext(); //reference to the
current ServletContext
 
  ServletContext distantSC = currentSC.getContext(/tutobean);
//reference to the ServletContext of tutobean webappl, corresponding to
http://localhost:8080/tutobean.
 
  distantSC.getRequestDispatcher(/index.html).forward(req,rep);
//NullPOinterException here because distantSC is null!!!
 
 
 
  What's wrong in my code?
 
  Thanks for your response,
 
  Regards,
 
  Cyril.
 




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Number of instances with SingleThreadModel

2003-11-14 Thread cyril vidal
Hi,

I would like to know if it is possible in Tomcat's configuration to specify
the number of servlet instances created when this servlet implements the
javax.servlet.SingleThreadModel interface.

Thanks in advance for your response,
Regards,
Cyril.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Number of instances with SingleThreadModel

2003-11-14 Thread cyril vidal
Hi,

These infos are useful but have nothing to deal with my initial question;-))
So, I ask it again, if some people know about THIS subject:

is it possible in Tomcat's configuration to specify
the number of servlet instances created when this servlet implements the
javax.servlet.SingleThreadModel interface.

Thanks in advance for your response,
Regards,
Cyril.

Please don't use this thread to initiate another subject...

- Original Message -
From: Jon Wingfield [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, November 14, 2003 10:58 AM
Subject: Re: Number of instances with SingleThreadModel


 Useful methods on the Runtime class:
 In jdk 1+  Runtime.getRuntime().getTotalMemory();
 In jdk 1+  Runtime.getRuntime().getFreeMemory();
 In jdk 1.4 Runtime.getRuntime().getMaxMemory();
 These methods are diagnostic. You'll need to find out why you are
 getting OutOfMemory errors. Time to profile your app...

 HTH,

 Jon


 Neal wrote:

  Does anyone know how I can check to see how much memory is in use or
  available on Tomcat at any point in time?  I've been getting a
  java.error.OutOfMemory error lately and I need to be able to track
  what's going on.
 
  Thanks.
  Neal
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Number of instances with SingleThreadModel

2003-11-14 Thread cyril vidal
thanks all for your responses.

Regards,
Cyril.

- Original Message -
From: Remy Maucherat [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, November 14, 2003 2:57 PM
Subject: Re: Number of instances with SingleThreadModel


 cyril vidal wrote:

  Hi,
 
  These infos are useful but have nothing to deal with my initial
question;-))
  So, I ask it again, if some people know about THIS subject:
 
  is it possible in Tomcat's configuration to specify
  the number of servlet instances created when this servlet implements the
  javax.servlet.SingleThreadModel interface.

 No. The value is 20 instances.

 There's a constant you can change in the StandardWrapper class, of
 course, and a parameter could be added in StandardContext to set it.

 --
 x
 Rémy Maucherat
 Senior Developer  Consultant
 JBoss Group (Europe) SàRL
 x


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Example form-based authentication

2003-11-08 Thread cyril vidal
Hi,

I'm under Tomcat/4.1.18-LE-jdk14 and just have tested form based example.

Unfortunately, when I access 
http://localhost:8080/examples/jsp/security/protected/index.jsp
 i'm well redirected to login.jsp as mentionned in web.xml

 form-login-config
form-login-page/jsp/security/protected/login.jsp/form-login-page
form-error-page/jsp/security/protected/error.jsp/form-error-page
  /form-login-config


but I've got the following error message:

Generated servlet error:
[javac] Compiling 1 source file

C:\java\plateforme\tomcat\work\Standalone\localhost\examples\jsp\security\protected\login_jsp.java:1:
  expected
package org.apache.jsp.jsp.security.protected;
^
1 error

I've changed nothing to examples directory, so is it an known error?
How may i fix this?

Thanks in advance for your response,
Regards,
Cyril.

tomcat + svg + context

2002-12-16 Thread cyril vidal
Hi,

I would like to know two things:
1°)First, is it possible for a servlet to produce directly SVG picture on the screen?
I've tried to write the following code for the PrintWriter:
PrintWriter out = res.getWriter();

res.setContentType(image/svg-xml; charset=iso-8859-1);

But it doesn't seem to work.



2°)For the moment, I've written a new file svg, like this, via JAXP:

Source input = new DOMSource(doc);

idTransform.transform(input,new StreamResult(out));

idTransform.transform(input,new StreamResult(new 
FileOutputStream(c:/tomcat/webapps/tuto/WEB-INF/classes/sortie.svg)));

But I've indicated an absolute adress for the file. I know it's possible to indicate 
juste a reltive URL, relative to the web application.

I've looked in the Servlet.API, and it seems to be done via the object ServletContext 
returned by rhe method getServletContext() of ServletConfig.

But I don't know exactly how it works.

I would be very grateful for any assistance.

Th anks in advance,

CYril.

___

Cyril Vidal
Email: [EMAIL PROTECTED]
Web: http://www.planetexml.com



Re: TOmcat 4.0.1 and JDOM b8

2002-10-08 Thread Cyril Vidal

Hi Malachi,

Thanks for your responses.
I've uncompressed the two jar files (xercesImpl.jar that I use before and
xerces.jar from JDOM).
But there are so many classes...
Which of them should I remplace from a version to another?

Regards,
Cyril.
___

Cyril Vidal
Email: [EMAIL PROTECTED]
Web: http://www.planetexml.com
- Original Message -
From: Malachi de AElfweald [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, October 08, 2002 5:44 AM
Subject: Re: TOmcat 4.0.1 and JDOM b8


 Incompatible object argument for function call

 Sounds like the API changed and one of your servlets expected one
 format, and the other servlet expected another...  If you open the
 jars, you should be able to compare the two files

 Malachi

 10/7/2002 2:48:00 PM, Cyril Vidal [EMAIL PROTECTED] wrote:

 Yes, in fact, I've put the xerces.jar given with JDOM  in
 $JAVA_HOME/jre/lib/ext.
 And I've no more the SAXNotRecognized Exception.
 
 But, it's very strange, I've got now the following error when I run
another
 servlet that was running well before the manipulation.
 Here is the beggining of my very basic code:
 
 // Imported TraX classes
 import javax.xml.transform.TransformerFactory;
 import javax.xml.transform.Transformer;
 import javax.xml.transform.stream.StreamSource;
 import javax.xml.transform.stream.StreamResult;
 import javax.xml.transform.TransformerException;
 import javax.xml.transform.TransformerConfigurationException;
 
 
 // Imported java classes
 import java.io.FileOutputStream;
 import java.io.FileNotFoundException;
 import java.io.IOException;
 import org.apache.xerces.parsers.DOMParser;
 import org.w3c.dom.Document;
 import org.w3c.dom.NodeList;
 import java.io.*;
 import javax.servlet.*;
 import javax.servlet.http.*;
 
 
 public class TransformServlet extends HttpServlet {
 
  public  void doGet(HttpServletRequest request, HttpServletResponse
 response)
  throws IOException, ServletException
   {
 
 String thisProduct_id = request.getParameter(product_id);
 
 and here is the Exception generated by Tomcat:
 root cause
 
 java.lang.VerifyError: (class: TransformServlet, method: doGet signature:

(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResp
o
 nse;)V) Incompatible object argument for function call
  at java.lang.Class.newInstance0(Native Method)
  at java.lang.Class.newInstance(Class.java:237)
  at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820)
  at

org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
  at

org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.jav
a
 :396)
  at

org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 What do you think is still wrong?
 Do I have to do something especially with TOmcat?
 Thanks for your responses,
 Cyril.
 ___
 
 Cyril Vidal
 Email: [EMAIL PROTECTED]
 Web: http://www.planetexml.com
 - Original Message -
 From: Malachi de AElfweald [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]; Tomcat Users
 List [EMAIL PROTECTED]
 Sent: Monday, October 07, 2002 10:28 PM
 Subject: Re: TOmcat 4.0.1 and JDOM b8
 
 
  Also, make sure that an older version is not in $JAVA_HOME/jre/lib/ext
  cuz that would get used first
 
  Malachi
 
 
  10/7/2002 1:14:36 PM, Padhu Vinirs [EMAIL PROTECTED] wrote:
 
  JDOM is only a easy-to-use-wrapper for java programmers around
standard
  xml parsers. The 'SAXNotRecognizedOption is an object in xerces.jar.
  make sure the xerces.jar that comes with JDOM beta 8 is in your web
  app's classpath. Maybe JDOM beta 8 supports a version of xerces that
  Tomcat is not supporting.
  
  -- padhu
  
  
  
  cyril vidal wrote:
  
  Hi,
  
  I'm using Tomcat 4.0.1 and I have such a code snippet, using JDOM
beta
 8:
  import java.io.*;
  import javax.servlet.*;
  import javax.servlet.http.*;
  import org.jdom.Element;
  import org.jdom.Document;
  import org.jdom.output.XMLOutputter;
  import org.jdom.input.SAXBuilder;
  import org.jdom.JDOMException;
  
  
  public class AddToOrder extends HttpServlet {
  
  public Document getDocument(File sourceFile, PrintWriter errorsOut) {
  try {
SAXBuilder builder = new SAXBuilder();
  Document document = builder.build(sourceFile);
return document;
  
  } catch (JDOMException e) {
  errorsOut.print(Un problème s'est produit pendant la
construction
 du
  document : 
 +e.getMessage() + br/  + Un document vide est
retourné.);
 return new Document(new Element(blank));
  ...
  
  I receive systematically the following error message :
  
  root cause
  
  java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException
   at AddToOrder.getDocument(AddToOrder.java:15)
   at AddToOrder.doGet(AddToOrder.java:68

Re: TOmcat 4.0.1 and JDOM b8

2002-10-08 Thread Cyril Vidal

hi Malachi,

thanks for all the time you spend for me...
I think the error comes anyway from the xerces.jar because when I remove the
xerces.jar from JDOM distribution from the JAVA_HOME\jre\lib\ext, I don't
have the exception...
But I still really don't understand why...

Regards,
 Cyril.
___

Cyril Vidal
Email: [EMAIL PROTECTED]
Web: http://www.planetexml.com
- Original Message -
From: Malachi de AElfweald [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, October 08, 2002 6:25 PM
Subject: Re: TOmcat 4.0.1 and JDOM b8


 I apologize, but on closer inspection, I am not sure it will be in
xerces...

 The error says:
 org.apache.catalina.servlets.InvokerServlet.doGet

 and:
 java.lang.VerifyError: (class: TransformServlet, method: doGet signature:

(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
nse;)V)
 Incompatible object argument for function call


 now, running 'java JWhich org.apache.catalina.servlets.InvokerServlet'
(JWhich can be found
 at http://eoti.org/~malachi/java/jwhich.html), it says that class is
located in
 /usr/local/jakarta-tomcat4.1.12/server/lib/servlets-invoker.jar


 Now, I tried to find the class TransformServlet...  not an easy one to
find, since we don't
 know the package name... is it org.apache.xml, org.apache.xalan,
javax.xml, javax.servlet, etc...
 I haven't been able to find it on my system

 My guess is that you have two copies of this file... but I am not sure
where...

 I wouldn't suggest replacing a FILE inside a jar... but figuring out which
jar is causing the conflict
 and seeing if you can (temporarily) remove that conflicting jar to get the
problem to go away...


 Malachi


 10/8/2002 12:36:25 AM, Cyril Vidal [EMAIL PROTECTED] wrote:

 Hi Malachi,
 
 Thanks for your responses.
 I've uncompressed the two jar files (xercesImpl.jar that I use before and
 xerces.jar from JDOM).
 But there are so many classes...
 Which of them should I remplace from a version to another?
 
 Regards,
 Cyril.
 ___
 
 Cyril Vidal
 Email: [EMAIL PROTECTED]
 Web: http://www.planetexml.com
 - Original Message -
 From: Malachi de AElfweald [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, October 08, 2002 5:44 AM
 Subject: Re: TOmcat 4.0.1 and JDOM b8
 
 
  Incompatible object argument for function call
 
  Sounds like the API changed and one of your servlets expected one
  format, and the other servlet expected another...  If you open the
  jars, you should be able to compare the two files
 
  Malachi
 
  10/7/2002 2:48:00 PM, Cyril Vidal [EMAIL PROTECTED] wrote:
 
  Yes, in fact, I've put the xerces.jar given with JDOM  in
  $JAVA_HOME/jre/lib/ext.
  And I've no more the SAXNotRecognized Exception.
  
  But, it's very strange, I've got now the following error when I run
 another
  servlet that was running well before the manipulation.
  Here is the beggining of my very basic code:
  
  // Imported TraX classes
  import javax.xml.transform.TransformerFactory;
  import javax.xml.transform.Transformer;
  import javax.xml.transform.stream.StreamSource;
  import javax.xml.transform.stream.StreamResult;
  import javax.xml.transform.TransformerException;
  import javax.xml.transform.TransformerConfigurationException;
  
  
  // Imported java classes
  import java.io.FileOutputStream;
  import java.io.FileNotFoundException;
  import java.io.IOException;
  import org.apache.xerces.parsers.DOMParser;
  import org.w3c.dom.Document;
  import org.w3c.dom.NodeList;
  import java.io.*;
  import javax.servlet.*;
  import javax.servlet.http.*;
  
  
  public class TransformServlet extends HttpServlet {
  
   public  void doGet(HttpServletRequest request, HttpServletResponse
  response)
   throws IOException, ServletException
{
  
  String thisProduct_id = request.getParameter(product_id);
  
  and here is the Exception generated by Tomcat:
  root cause
  
  java.lang.VerifyError: (class: TransformServlet, method: doGet
signature:
 

(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRes
p
 o
  nse;)V) Incompatible object argument for function call
   at java.lang.Class.newInstance0(Native Method)
   at java.lang.Class.newInstance(Class.java:237)
   at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820)
   at
 

org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615
)
   at
 

org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.ja
v
 a
  :396)
   at
 

org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  
  What do you think is still wrong?
  Do I have to do something especially with TOmcat?
  Thanks for your responses,
  Cyril.
  ___
  
  Cyril Vidal
  Email: [EMAIL

Tomcat 4.0.1 and JDOM beta 8

2002-10-07 Thread Cyril Vidal

Hi,

I'm using Tomcat 4.0.1 and I have such a code snippet, using JDOM beta 8:

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.jdom.Element;
import org.jdom.Document;
import org.jdom.output.XMLOutputter;
import org.jdom.input.SAXBuilder;
import org.jdom.JDOMException;


public class AddToOrder extends HttpServlet {

public Document getDocument(File sourceFile, PrintWriter errorsOut) {
try {
  SAXBuilder builder = new SAXBuilder();
Document document = builder.build(sourceFile);
  return document;

} catch (JDOMException e) {
errorsOut.print(Un problème s'est produit pendant la construction du
document : 
   +e.getMessage() + br/  + Un document vide est retourné.);
   return new Document(new Element(blank));
...

I receive systematically the following error message :

root cause

java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException
 at AddToOrder.getDocument(AddToOrder.java:15)
 at AddToOrder.doGet(AddToOrder.java:68)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247

Waht's this class? I can't find it into xercesImpl.jar in the lib directory
of Tomcat, so why this method is called and by which component?

Thanks a lot for your response,
Best,
Cyril.





___

Cyril Vidal
Email: [EMAIL PROTECTED]
Web: http://www.planetexml.com



Incompatible object argument for function call

2002-10-07 Thread Cyril Vidal

Hi,

I've fixed the problem with JDOM. In fact, I've had to put the xerces.jar given with 
the JDOM distribution in the tomcat/lib folder (to be use instead of XercesImpl.jar).
But now, I have such an error message when I try to run a servlet that was workin well 
before to put the xerces.jar in the Tomcat's folder:
java.lang.VerifyError: (class: TransformServlet, method: doGet signature: 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) 
Incompatible object argument for function call

Where the error can come from?
Thanks for your responses,
Cyril.
___

Cyril Vidal
Email: [EMAIL PROTECTED]
Web: http://www.planetexml.com



TOmcat 4.0.1 and JDOM b8

2002-10-07 Thread cyril vidal

Hi,

I'm using Tomcat 4.0.1 and I have such a code snippet, using JDOM beta 8:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.jdom.Element;
import org.jdom.Document;
import org.jdom.output.XMLOutputter;
import org.jdom.input.SAXBuilder;
import org.jdom.JDOMException;


public class AddToOrder extends HttpServlet {

public Document getDocument(File sourceFile, PrintWriter errorsOut) {
try {
  SAXBuilder builder = new SAXBuilder();
Document document = builder.build(sourceFile);
  return document;

} catch (JDOMException e) {
errorsOut.print(Un problème s'est produit pendant la construction du
document : 
   +e.getMessage() + br/  + Un document vide est retourné.);
   return new Document(new Element(blank));
...

I receive systematically the following error message :

root cause

java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException
 at AddToOrder.getDocument(AddToOrder.java:15)
 at AddToOrder.doGet(AddToOrder.java:68)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247

Waht's this class? I can't find it into xercesImpl.jar in the lib directory
of Tomcat, so why this method is called and by which component?

Thanks a lot for your response,
Best,
Cyril.







--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: TOmcat 4.0.1 and JDOM b8

2002-10-07 Thread Cyril Vidal

Yes, in fact, I've put the xerces.jar given with JDOM  in
$JAVA_HOME/jre/lib/ext.
And I've no more the SAXNotRecognized Exception.

But, it's very strange, I've got now the following error when I run another
servlet that was running well before the manipulation.
Here is the beggining of my very basic code:

// Imported TraX classes
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerConfigurationException;


// Imported java classes
import java.io.FileOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import org.apache.xerces.parsers.DOMParser;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;


public class TransformServlet extends HttpServlet {

 public  void doGet(HttpServletRequest request, HttpServletResponse
response)
 throws IOException, ServletException
  {

String thisProduct_id = request.getParameter(product_id);

and here is the Exception generated by Tomcat:
root cause

java.lang.VerifyError: (class: TransformServlet, method: doGet signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
nse;)V) Incompatible object argument for function call
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Class.java:237)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
 at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:396)
 at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

What do you think is still wrong?
Do I have to do something especially with TOmcat?
Thanks for your responses,
Cyril.
___

Cyril Vidal
Email: [EMAIL PROTECTED]
Web: http://www.planetexml.com
- Original Message -
From: Malachi de AElfweald [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; Tomcat Users
List [EMAIL PROTECTED]
Sent: Monday, October 07, 2002 10:28 PM
Subject: Re: TOmcat 4.0.1 and JDOM b8


 Also, make sure that an older version is not in $JAVA_HOME/jre/lib/ext
 cuz that would get used first

 Malachi


 10/7/2002 1:14:36 PM, Padhu Vinirs [EMAIL PROTECTED] wrote:

 JDOM is only a easy-to-use-wrapper for java programmers around standard
 xml parsers. The 'SAXNotRecognizedOption is an object in xerces.jar.
 make sure the xerces.jar that comes with JDOM beta 8 is in your web
 app's classpath. Maybe JDOM beta 8 supports a version of xerces that
 Tomcat is not supporting.
 
 -- padhu
 
 
 
 cyril vidal wrote:
 
 Hi,
 
 I'm using Tomcat 4.0.1 and I have such a code snippet, using JDOM beta
8:
 import java.io.*;
 import javax.servlet.*;
 import javax.servlet.http.*;
 import org.jdom.Element;
 import org.jdom.Document;
 import org.jdom.output.XMLOutputter;
 import org.jdom.input.SAXBuilder;
 import org.jdom.JDOMException;
 
 
 public class AddToOrder extends HttpServlet {
 
 public Document getDocument(File sourceFile, PrintWriter errorsOut) {
 try {
   SAXBuilder builder = new SAXBuilder();
 Document document = builder.build(sourceFile);
   return document;
 
 } catch (JDOMException e) {
 errorsOut.print(Un problème s'est produit pendant la construction
du
 document : 
+e.getMessage() + br/  + Un document vide est retourné.);
return new Document(new Element(blank));
 ...
 
 I receive systematically the following error message :
 
 root cause
 
 java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException
  at AddToOrder.getDocument(AddToOrder.java:15)
  at AddToOrder.doGet(AddToOrder.java:68)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
on
 FilterChain.java:247
 
 Waht's this class? I can't find it into xercesImpl.jar in the lib
directory
 of Tomcat, so why this method is called and by which component?
 
 Thanks a lot for your response,
 Best,
 Cyril.
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 
 




 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomcat and XSLT transformations

2002-04-22 Thread cyril vidal



Hy,

Does Tomcat 4.0.1 assume some xslt transformations by default?
 I've put the following .jar files (xalanservlet.jar,
xalan.jar,xercesImpl.jar, xml-apis.jar, xsltc.jar) in C:\tomcat\lib, as
written in thedoc of tomcat, so that these files may be shared by all the
applications.But it doesn't run.

Unfortunelately, I get the following exception:
type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Cannot allocate servlet instance for path
/examples/servlet/TransformServlet
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:415)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:472)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:484)


root cause

java.lang.NoClassDefFoundError: javax/xml/transform/Source
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:396)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at 

Tomcat and XSLT transformations

2002-04-22 Thread cyril vidal





 Nobody has the solution for my problem, please?

 Does Tomcat 4.0.1 assume some xslt transformations by default?
  I've put the following .jar files (xalanservlet.jar,
 xalan.jar,xercesImpl.jar, xml-apis.jar, xsltc.jar) in C:\tomcat\lib, as
 written in thedoc of tomcat, so that these files may be shared by all the
 applications.But it doesn't run.

 Unfortunelately, I get the following exception:
 type Exception report

 message Internal Server Error

 description The server encountered an internal error (Internal Server Error)
 that prevented it from fulfilling this request.

 exception

 javax.servlet.ServletException: Cannot allocate servlet instance for path
 /examples/servlet/TransformServlet
 at
 org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
 :415)
 at
 org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:247)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
 at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:213)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
 at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:213)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:243)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:201)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
 .java:472)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
 )
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
 java:170)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
 )
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
 :163)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
 1011)
 at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
 )
 at java.lang.Thread.run(Thread.java:484)


 root cause

 java.lang.NoClassDefFoundError: javax/xml/transform/Source
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Class.java:237)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820)
 at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
 at
 org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
 :396)
 at
 org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:247)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
 at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
 at
 

problems with XSLT transformations

2002-04-21 Thread cyril vidal

Hy,

I'm under Tomcat 4.0.1 and I would like this server to execute some xslt 
transformations.
My class begin with the following import:


Unfortunelately, I get the following exception:
type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.

exception 

javax.servlet.ServletException: Cannot allocate servlet instance for path 
/examples/servlet/TransformServlet
at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:415)
at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:484)


root cause 

java.lang.NoClassDefFoundError: javax/xml/transform/Source
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396)
at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 

java.net.BindException

2002-03-19 Thread cyril vidal

Hi,

When I start Tomcat 4.0.1 by commandline, I always obtain the same message:
Server. run /init:java.net.BindExecption:Adress in use:bind
java.net.BindException:Adress in use:bind
at java.net.PlainSocketImpl.socketBind(nativMethod)

...
Sitemap location = sitemap.xmap
Checking sitemap reload=true
...
Starting service Tomcat-Apache
Apache Tomcat/4.0.1

I guess it means Tomcat is already running. Could someone tell me what I have to do so 
that no more happens?
Thanks a lot for your answers,
Cyril.



Re: java.net.BindException

2002-03-19 Thread cyril vidal


Does anybody have the solution for this problem?
When I start Tomcat 4.0.1 by commandline, I always obtain the same message:
Server. run /init:java.net.BindExecption:Adress in use:bind
java.net.BindException:Adress in use:bind
at java.net.PlainSocketImpl.socketBind(nativMethod)

...
Sitemap location = sitemap.xmap
Checking sitemap reload=true
...
Starting service Tomcat-Apache
Apache Tomcat/4.0.1

I guess it means Tomcat is already running. Could someone tell me what I
have to do so that no more happens?
Thanks a lot for your answers,
Cyril.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: java.net.BindException

2002-03-19 Thread cyril vidal





 Does anybody have the solution for this problem?
 When I start Tomcat 4.0.1 by commandline, I always obtain the same
message:
 Server. run /init:java.net.BindExecption:Adress in use:bind
 java.net.BindException:Adress in use:bind
 at java.net.PlainSocketImpl.socketBind(nativMethod)
 
 ...
 Sitemap location = sitemap.xmap
 Checking sitemap reload=true
 ...
 Starting service Tomcat-Apache
 Apache Tomcat/4.0.1

 I guess it means Tomcat is already running. Could someone tell me what I
 have to do so that no more happens?
 Thanks a lot for your answers,
 Cyril.



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




don't found packages...

2002-03-05 Thread cyril vidal

Hello!

I'm a new french user of Apache Tomcat/4.0.3.
The installation was successfull!
But not the compilation of my first HelloWorld servlet.
The compilator does not found the right classes like javax.servlet, javax.servlet.http 
and  so  although I'well configurated my classpath like SET 
CLASSPATH=c:\tomcat\common\lib.
What do you think it's wrong? By the way, I'm under Windows Milllenium.

Thanks a lot for you answers
Cyril.



Re: don't found packages...

2002-03-05 Thread cyril vidal

Thanks a lot for having helped me!!!
It's OK now!

- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 05, 2002 11:45 AM
Subject: AW: don't found packages...


You have to add the jars to the classpath, not the directory.

SET CLASSPATH=c:\tomcat\common\lib\a.jar;c:\tomcat\common\lib\b.jar

 -Ursprüngliche Nachricht-
 Von: cyril vidal [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 5. März 2002 11:36
 An: [EMAIL PROTECTED]
 Betreff: don't found packages...
snip/
 SET CLASSPATH=c:\tomcat\common\lib.
snip/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]