RE: urgent help pls...

2001-12-04 Thread Jovie Castaneda

Yes I do have it registered in the security properties file
what else am i missing here?

-Original Message-
From: Carlos Telleria [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 6:51 PM
To: Tomcat Users List
Subject: Re: urgent help pls...


Did you registered JSSE security provider?

Look at point 4 on INSTALL.txt, in the JSSE package.


Jovie Castaneda wrote:

 i made it work i have missed ';' in my classpath..
 but after that im having this exception
 javax.net.ssl.SSLException: untrusted server cert chain
 i already have my .keystore ...yet im having this error...

 -Original Message-
 From: Byung Jin Chun [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 4:53 PM
 To: Jovie
 Subject: RE: urgent help pls...

  did you set the env variable JSSE_HOME and
 r u still getting the same stack trace?

 -Original Message-
 From: Jovie Castaneda
 To: 'Byung Jin Chun'
 Sent: 12/4/01 12:40 AM
 Subject: RE: urgent help pls...

 thanks for the reply...
 I already download the following:
 jsse.jar, jnet.jar, jcert.jar
 then i stored them in $CATALINA_HOME\common\lib
 yet it doesnt work...
 it doesnt seem to find my jar files, but i can
 implement https in my browser i followed that
 SSL configuration HOW TO , yet why cant i make my
 code run?

 -Original Message-
 From: Byung Jin Chun [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 4:38 PM
 To: Jovie
 Subject: RE: urgent help pls...

  Jovie,
  you need the Java Secure Socket Extension (JSSE) which you can get at
 www.javasoft.com. If you have it, then you read the SSL Configuration
 How To
 off of the tomcat install.

 Jin

 -Original Message-
 From: Jovie Castaneda
 To: 'Tomcat Users List'
 Sent: 12/4/01 12:17 AM
 Subject: urgent help pls...

 hello there...

 i hope you can help me with this problem..i have no idea on what's
 happening
 here
 the following lines are shown in the console once i do https post

 java.lang.NoClassDefFoundError: javax/net/SocketFactory
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.access$100(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at
 com.sun.net.ssl.HttpsURLConnection.clinit([DashoPro-V1.2-120198])
 at
 com.sun.net.ssl.internal.www.protocol.https.Handler.openConnection([Dash
 oPro
 -V1.2-120198])
 at java.net.URL.openConnection(Unknown Source)
 at GCProtocol.communicateRequest(GCProtocol.java:42)
 at GCServer.run(GCServer.java:56)

 your help will be very much appreciated !!
 thanks

 --
 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]

--
_

Carlos  Tellería
Area de Informática
Secretaría General de Sanidad, Consumo y Bienestar Social
Gobierno de Aragón

Tel.: 976 71 40 00 - ext. 2061
Fax: 976 71 42 11
email: [EMAIL PROTECTED]


--
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]




having problems when using packages in Tomcat 4

2001-12-03 Thread Jovie Castaneda

Hi guys,

  Im trying to load my servlet from my webapps directory with which i
created a specific working
direcory($CATALINA_HOME/webapps/test) for it. Once, I access it to my
browser i do get a 404 error and when i check the log i see a huge mesg
(below is an excerpt from that log)

2001-11-30 15:27:14
StandardWrapper[/test:org.apache.catalina.INVOKER.PureGateway]: Marking
servlet org.apache.catalina.INVOKER.PureGateway as unavailable
2001-11-30 15:27:14 invoker: Cannot allocate servlet instance for path
/test/servlet/PureGateway
javax.servlet.ServletException: Wrapper cannot find servlet class
PureGateway or a class it depends on
 .

 ..what seems to be lacking here...my servlet by the way is using packages
which i stored in
$CATALINA_HOME/webapps/test/Web-inf/lib. What else is missing then? thanks
in advance!


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




urgent help pls...

2001-12-03 Thread Jovie Castaneda

hello there...

i hope you can help me with this problem..i have no idea on what's happening
here
the following lines are shown in the console once i do https post

java.lang.NoClassDefFoundError: javax/net/SocketFactory
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at
com.sun.net.ssl.HttpsURLConnection.clinit([DashoPro-V1.2-120198])
at
com.sun.net.ssl.internal.www.protocol.https.Handler.openConnection([DashoPro
-V1.2-120198])
at java.net.URL.openConnection(Unknown Source)
at GCProtocol.communicateRequest(GCProtocol.java:42)
at GCServer.run(GCServer.java:56)

your help will be very much appreciated !!
thanks






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




urgent help pls...

2001-12-03 Thread Jovie Castaneda





thanks for the reply...
I already download the following:
jsse.jar, jnet.jar, jcert.jar
then i stored them in $CATALINA_HOME\common\lib
yet it doesnt work...
it doesnt seem to find my jar files, but i can
implement https in my browser i followed that
SSL configuration HOW TO , yet why cant i make my
code run?



-Original Message-
From: Byung Jin Chun [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 4:38 PM
To: Jovie
Subject: RE: urgent help pls...


 Jovie,
 you need the Java Secure Socket Extension (JSSE) which you can get at
www.javasoft.com. If you have it, then you read the SSL Configuration How To
off of the tomcat install.

Jin

-Original Message-
From: Jovie Castaneda
To: 'Tomcat Users List'
Sent: 12/4/01 12:17 AM
Subject: urgent help pls...

hello there...

i hope you can help me with this problem..i have no idea on what's
happening
here
the following lines are shown in the console once i do https post

java.lang.NoClassDefFoundError: javax/net/SocketFactory
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at
com.sun.net.ssl.HttpsURLConnection.clinit([DashoPro-V1.2-120198])
at
com.sun.net.ssl.internal.www.protocol.https.Handler.openConnection([Dash
oPro
-V1.2-120198])
at java.net.URL.openConnection(Unknown Source)
at GCProtocol.communicateRequest(GCProtocol.java:42)
at GCServer.run(GCServer.java:56)

your help will be very much appreciated !!
thanks






--
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]




RE: urgent help pls...

2001-12-03 Thread Jovie Castaneda

i made it work i have missed ';' in my classpath..
but after that im having this exception 
javax.net.ssl.SSLException: untrusted server cert chain
i already have my .keystore ...yet im having this error...

-Original Message-
From: Byung Jin Chun [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 4:53 PM
To: Jovie
Subject: RE: urgent help pls...


 did you set the env variable JSSE_HOME and
r u still getting the same stack trace?

-Original Message-
From: Jovie Castaneda
To: 'Byung Jin Chun'
Sent: 12/4/01 12:40 AM
Subject: RE: urgent help pls...

thanks for the reply...
I already download the following:
jsse.jar, jnet.jar, jcert.jar
then i stored them in $CATALINA_HOME\common\lib
yet it doesnt work...
it doesnt seem to find my jar files, but i can
implement https in my browser i followed that
SSL configuration HOW TO , yet why cant i make my
code run?



-Original Message-
From: Byung Jin Chun [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 4:38 PM
To: Jovie
Subject: RE: urgent help pls...


 Jovie,
 you need the Java Secure Socket Extension (JSSE) which you can get at
www.javasoft.com. If you have it, then you read the SSL Configuration
How To
off of the tomcat install.

Jin

-Original Message-
From: Jovie Castaneda
To: 'Tomcat Users List'
Sent: 12/4/01 12:17 AM
Subject: urgent help pls...

hello there...

i hope you can help me with this problem..i have no idea on what's
happening
here
the following lines are shown in the console once i do https post

java.lang.NoClassDefFoundError: javax/net/SocketFactory
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at
com.sun.net.ssl.HttpsURLConnection.clinit([DashoPro-V1.2-120198])
at
com.sun.net.ssl.internal.www.protocol.https.Handler.openConnection([Dash
oPro
-V1.2-120198])
at java.net.URL.openConnection(Unknown Source)
at GCProtocol.communicateRequest(GCProtocol.java:42)
at GCServer.run(GCServer.java:56)

your help will be very much appreciated !!
thanks






--
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]




Cannot load servlet!!!

2001-11-29 Thread Jovie Castaneda

Hi guys,

  Im trying to load my servlet from my webapps directory with twhich i
created a specific workign
direcotry for it. Once, I access it to my browser i do get a 404 error and
when i check the log i see a huge mesg (below is an excerpt from that log)

2001-11-30 15:27:14
StandardWrapper[/purecommerce:org.apache.catalina.INVOKER.PureGateway]:
Marking servlet org.apache.catalina.INVOKER.PureGateway as unavailable
2001-11-30 15:27:14 invoker: Cannot allocate servlet instance for path
/purecommerce/servlet/PureGateway
javax.servlet.ServletException: Wrapper cannot find servlet class
PureGateway or a class it depends on
 .

 ..what seems to be lacking here...my servlet by the way is using packages
which i stored in
$CATALINA_HOME/lib. what else is missing then? thanks in advance!




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




Prob Loading DB Driver

2001-11-28 Thread Jovie Castaneda

Hi All,


im encountering problems in Tomcat 4 when Im loading my database driver. I
did set into my classpath the location of my IDS Driver classes and I didnt
encounter any problems in Tomcat 3.2.3 . Maybe I missed something in Tomcat
4 which may be the reason why i cnat make it work...hope you could give me a
hand on thi thanks in advance.

-Jovie


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




How do you set up standalone Tomcat to use HTTPS?

2001-11-12 Thread Jovie Castaneda

Hi ppl,

  Can someone please help me how to make https work in my tomcat..where do I
start?

Thanks in advance


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




servlet in startup

2001-10-21 Thread Jovie Castaneda

Hi guys,

  Can someone please help me how to make my servlet run when the Tomcat
starts up. What do I have to do in my codes
to impelement this or some setup needed for my Tomcat config.?
Thanks in advance





RE: servlet in startup

2001-10-21 Thread Jovie Castaneda

Im trying to load this servlet but I think im doing some funny thing here
I edited the following tags in the web.xml
servlet-name
   Demolog
/servlet-name
servlet-class
   Demolog
/servlet-class
load-on-startup
   -2147483646--- i am not sure of this so i retained this value
/load-on-startup
...then I tried to start Tomcat and it says that it cannot load Demolog 
How do I get around with this?
Thanks in advance.

-Original Message-
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 10:07 AM
To: [EMAIL PROTECTED]
Subject: Re: servlet in startup


Look at the load on startup flag in web.xml

hth
dim

On Mon, 22 Oct 2001, Jovie Castaneda wrote:

 Hi guys,
 
   Can someone please help me how to make my servlet run when the Tomcat
 starts up. What do I have to do in my codes
 to impelement this or some setup needed for my Tomcat config.?
 Thanks in advance
 
 
 




RE: servlet in startup

2001-10-21 Thread Jovie Castaneda

thanks for the reply my Demolog servlet resides in /test/servlet/*
what I did is change the dtd for servlet-mapping into this
servlet-name
  Demolog
/servlet-name
url-pattern
  /test/servlet/*
/url-pattern
Does this make sense ?

-Original Message-
From: pero [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 10:32 AM
To: [EMAIL PROTECTED]
Subject: RE: servlet in startup


Are you sure, that 'Demolog' is the fully qualified name of your Servlet? I
mean, don't you have a package name? (property servlet-class)
To load a Servlet at startup you need to provide some positive number as the
load-on-startup property.
If you want to call your Servlet from an URL like
http://localhost:8080/Demolog then you have to add a servlet-mapping to your
web.xml. Example

servlet-mapping
servlet-nameDemolog/servlet-name
url-pattern/Demolog/url-pattern
/servlet-mapping

hope this helps.

pero





RE: servlet in startup

2001-10-21 Thread Jovie Castaneda

 -Original Message-
 From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 22, 2001 10:07 AM
 To: [EMAIL PROTECTED]
 Subject: Re: servlet in startup
 
 
 Look at the load on startup flag in web.xml
 
 hth
 dim
 
 On Mon, 22 Oct 2001, Jovie Castaneda wrote:
 
  Hi guys,
  
Can someone please help me how to make my servlet run when the Tomcat
  starts up. What do I have to do in my codes
  to impelement this or some setup needed for my Tomcat config.?
  Thanks in advance
  
  
  
Hi thanks for the reply but Im really grasping here :(
I tried to download  tomcat-manual-3.2.3-1.noarch.rpm   
but I dont know how to open this file so I can read on this..
thanks for guiding me :)




RE: servlet in startup

2001-10-21 Thread Jovie Castaneda

I tried testing my servlet to run when Tomcat starts...and I got this mesg
from my console

cannot load servlet name: StartMe
In WebCollect, this day =  296
In WebCollect, next day = 297
Starting WebCollect Server...
cannot load servlet name: StartMe
cannot load servlet name: StartMe

I just find it strange because it says that it cannot load the StartMe but
the next line are from the init method of my StartMe Servlet

Does my init method have a prob?

public void init (ServletConfig config) throws ServletException {

  System.out.println(Init Called for WebCollect ...);
  java.util.TimeZone.setDefault(java.util.TimeZone.getTimeZone(AET));
  java.text.SimpleDateFormat sdf = new
java.text.SimpleDateFormat(MMMddhhmm);

  java.util.Date thisTime = new java.util.Date();
  calendar.setTime(thisTime);
  dayOfYear = calendar.get(Calendar.DAY_OF_YEAR) ;
  dayOfYear += 1 ;
  nextDay = dayOfYear + 1 ;
  System.out.println(In WebCollect, this day =   + dayOfYear );
  System.out.println(In WebCollect, next day =  + nextDay);
  sdf = new java.text.SimpleDateFormat(dd/MM/yy hh:mm:ss a);
  System.out.println(Starting WebCollect Server...);
}

hoping for your replies...

-Original Message-
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 11:05 AM
To: [EMAIL PROTECTED]
Subject: RE: servlet in startup


On Mon, 22 Oct 2001, Jovie Castaneda wrote:

 Can someone please help me how to make my servlet run when the
Tomcat
   starts up. What do I have to do in my codes
   to impelement this or some setup needed for my Tomcat config.?
   Thanks in advance
  
 Hi thanks for the reply but Im really grasping here :(
 I tried to download  tomcat-manual-3.2.3-1.noarch.rpm
 but I dont know how to open this file so I can read on this..
 thanks for guiding me :)


this sort of stuff isn't specific to tomcat, which is why I pointed you at
the spec, rather than the tomcat manual.  however, the tomcat docs should
be included in the tomcat file you downloaded, look in tomcat/docs to see
them.

as for installing rpms , try

# rpm -ivh tomcat-manual-3.2.3-1.noarch.rpm

as root.  rpms are out of the scope of this list, you'd be better off
finding a linux book for that, but I wouldn't worry about it, you dont
need to - just look in the docs directory of tomcat, and the mailing list
acrhives:

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/

hth
dim





RE: servlet in startup

2001-10-21 Thread Jovie Castaneda

I tried putting a try catch clause but nothing has been caught..
then i made my init mehtod simple
public void init (ServletConfig config) throws ServletException {
 System.out.println(Init Called for WebCollect ...);
 System.out.println ( TEST START );
 System.out.println(Starting WebCollect Server...);
}
and the console showed this mesg

cannot load servlet name: StartMe
Init Called for WebCollect ...
TEST START
Starting WebCollect Server...
cannot load servlet name: StartMe
cannot load servlet name: StartMe

its laoding the init()of StartMe but its saying that it
cant load the StartMe..im confused now..please help!!

-Original Message-
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 11:54 AM
To: [EMAIL PROTECTED]
Subject: RE: servlet in startup


Put a try/catch around the init method, and print the stack trace.  by the
looks of it I'm guessing your date format is wrong.  btw, if you want the
default date format use DateFormat.getDateInstance() or
DateFormat.getDateTimeInstance() for the locale's normal date and
date/time formats.  THere's a host of other DateFormat.get... methods
which are also worth looking at.

hth
dim

On Mon, 22 Oct 2001, Jovie Castaneda wrote:

 I tried testing my servlet to run when Tomcat starts...and I got this mesg
 from my console

 cannot load servlet name: StartMe
 In WebCollect, this day =  296
 In WebCollect, next day = 297
 Starting WebCollect Server...
 cannot load servlet name: StartMe
 cannot load servlet name: StartMe

 I just find it strange because it says that it cannot load the StartMe
but
 the next line are from the init method of my StartMe Servlet

 Does my init method have a prob?

 public void init (ServletConfig config) throws ServletException {

   System.out.println(Init Called for WebCollect ...);
   java.util.TimeZone.setDefault(java.util.TimeZone.getTimeZone(AET));
   java.text.SimpleDateFormat sdf = new
 java.text.SimpleDateFormat(MMMddhhmm);

   java.util.Date thisTime = new java.util.Date();
   calendar.setTime(thisTime);
   dayOfYear = calendar.get(Calendar.DAY_OF_YEAR) ;
   dayOfYear += 1 ;
   nextDay = dayOfYear + 1 ;
   System.out.println(In WebCollect, this day =   + dayOfYear );
   System.out.println(In WebCollect, next day =  + nextDay);
   sdf = new java.text.SimpleDateFormat(dd/MM/yy hh:mm:ss a);
   System.out.println(Starting WebCollect Server...);
 }

 hoping for your replies...

 -Original Message-
 From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 22, 2001 11:05 AM
 To: [EMAIL PROTECTED]
 Subject: RE: servlet in startup


 On Mon, 22 Oct 2001, Jovie Castaneda wrote:

  Can someone please help me how to make my servlet run when the
 Tomcat
starts up. What do I have to do in my codes
to impelement this or some setup needed for my Tomcat config.?
Thanks in advance
   
  Hi thanks for the reply but Im really grasping here :(
  I tried to download  tomcat-manual-3.2.3-1.noarch.rpm
  but I dont know how to open this file so I can read on this..
  thanks for guiding me :)
 

 this sort of stuff isn't specific to tomcat, which is why I pointed you at
 the spec, rather than the tomcat manual.  however, the tomcat docs should
 be included in the tomcat file you downloaded, look in tomcat/docs to see
 them.

 as for installing rpms , try

 # rpm -ivh tomcat-manual-3.2.3-1.noarch.rpm

 as root.  rpms are out of the scope of this list, you'd be better off
 finding a linux book for that, but I wouldn't worry about it, you dont
 need to - just look in the docs directory of tomcat, and the mailing list
 acrhives:

 http://www.mail-archive.com/tomcat-user@jakarta.apache.org/

 hth
 dim







HELP PLS

2001-10-04 Thread Jovie Castaneda

How do i solve this prob in Tomcat when im accessing JSP sample codes? :(

java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:238)
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:149)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:161)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
at java.lang.Thread.run(Unknown Source)


Thanks in advance
*PLEASE SEND YOUR REPLY TO [EMAIL PROTECTED] coz the account
im using for subsrcibing the maillist is temporarily blocked from receiving*

THanks!!




RE: HELP PLS

2001-10-04 Thread Jovie Castaneda

Yepp got it thanls a lot it owrked now :)

-Original Message-
From: John Michael Luy [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 9:51 AM
To: [EMAIL PROTECTED]
Subject: Re: HELP PLS


i think you need to include in your classpath tools.jar which is usually
found in jdk/lib.  also remember to set your JAVA_HOME to your jdk
directory.

- Original Message -
From: Jovie Castaneda [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 05, 2001 7:40 AM
Subject: HELP PLS


 How do i solve this prob in Tomcat when im accessing JSP sample codes? :(

 java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at

org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:238)
 at
org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
 at

org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
 rvlet.java:149)
 at

org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:161)
 at
 org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
 at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
 at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
 at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
 onnectionHandler.java:160)
 at

org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
 )
 at java.lang.Thread.run(Unknown Source)


 Thanks in advance
 *PLEASE SEND YOUR REPLY TO [EMAIL PROTECTED] coz the account
 im using for subsrcibing the maillist is temporarily blocked from
receiving*

 THanks!!






Cookies not working in Tomcat why?

2001-10-04 Thread Jovie Castaneda

Hope to have some inputs from you. I'm having trouble implementing cookies
in Tomcat

I wrote the following codes

Cookie cookie1 = new Cookie(User_ID, Integer.toString(userid));
Cookie cookie2 = new Cookie(MerchantID, Integer.toString(merchantID));
Cookie cookie3 = new Cookie(SecurityLevel,
Integer.toString(SecurityLevel));
res.addCookie(cookie1);res.addCookie(cookie2);
res.addCookie(cookie3);
res.sendRedirect(/test/servlet/MyServlet);

I am expecting to get the cookies I have set when I retrieve them from
MyServlet
I check them using this code:

if (cookies !=null){
for(int i=0; i cookies.length; i++){
System.out.println(Name  : +cookiesi.getName());
System.out.println(Value : +cookiesi.getValue());
}
}


My expected result should be the following:
Name: UserID
Value: UserID Value
Name: MerchantID
Value: MerchantID value
Name: SecurityLevel
Value: SecurityLevel value

But why am i getting only 1 value which happens to be
JSESSIONID ( coming from the session created)
and its sessionid as the value
why cant it create cookies and store the values in it?

Comments and Suggestions are highly appreciated :)




RE: Problem with setting up Tomcat 3.2.3 in win98

2001-10-02 Thread Jovie Castaneda

Check your Classpaths ,JAVA_HOME and TOMCAT_HOME

-Original Message-
From: 97612384g [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 3:14 PM
To: [EMAIL PROTECTED]
Subject: Problem with setting up Tomcat 3.2.3 in win98


Hi,

I installed the Tomcat 3.2.3 in my home computer (running win98) and
followed
the Tomcat User Guide to test it.  However, I still got the exception error
in
starting Tomcat!

Exception in thread main java.lang.NoClassDefFoundError: c:\tomcat

Please advise.

Note:
- I installed the tomcat in a directory c:\tomcat so as to prevent from
DOS8.3
error.

Regards,
Patrick




REMOVE FROM MAILING LIST

2001-06-14 Thread Jovie Castaneda
Title: RE: static,synchronized and classloaders



PLEASE REMOVE ME FROM THIS MAILING 
LIST


Help !!

2001-06-14 Thread Jovie Castaneda



Where 
can I request for my unsubscription from this mailing list?
Thanks


RE: Help !!

2001-06-14 Thread Jovie Castaneda

Thanks a lot!!

-Original Message-
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 9:59 AM
To: [EMAIL PROTECTED]; Jovie
Subject: Re: Help !!


email [EMAIL PROTECTED] from your email address.


On Fri, 15 Jun 2001 09:41, Jovie Castaneda wrote:
 Where can I request for my unsubscription from this mailing list?
 Thanks


Content-Type: text/html; charset=iso-8859-1; name=Attachment: 1
Content-Transfer-Encoding: quoted-printable
Content-Description: