Tomcat 4.0.x and OpenSSL

2002-04-17 Thread Jordan C N Chong

Dear all,

I am sorry that I have to ask this question again. Is there anyone having
experience in integrating the Tomcat 4.0.x with OpenSSL, with maybe
mod_jk.dll or maybe Apache?

Please help me. Thank you very much.


Best regards,

Jordan Cheun Ngen, Chong
INF-4067 Universiteit Twente
Postbus 217
7500 AE Enschede
The Netherlands

Distributed and Embedded Systems (DIES)

Office Phone: +31 53 4894655
Web site: http://www.cs.utwente.nl/~chong
Email Add.: [EMAIL PROTECTED]



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




javax.servlet.ServletException: InvocationTargetException: javax.security.cert.CertificateException: X.509 not found

2002-04-13 Thread Jordan C N Chong

Dear all,

I am using Tomcat 4.0, Maverick 2.0, IAIK JCE 3.0 signed version and also
SunJCE. I wish to make a servlet that read in an X509 certificate, and
extracting the information from the certificate by the following procedures:

FileInputStream certin = new FileInputStream("example.crt");
clientPKCert = X509Certificate.getInstance(certin);

I got the following exception, which I have been struggling of:

javax.servlet.ServletException: InvocationTargetException:
javax.security.cert.CertificateException: X.509 not found
at org.infohazard.maverick.ctl.Throwaway.perform(Throwaway.java:58)
at
org.infohazard.maverick.flow.ThrowawayControllerAdapter.perform(ThrowawayCon
trollerAdapter.java:40)
at org.infohazard.maverick.flow.CommandBase.go(CommandBase.java:46)
at org.infohazard.maverick.Dispatcher.service(Dispatcher.java:115)
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
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:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
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:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
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:468)
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
:174)
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:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:536)

Please help me. Thank you very much.


Best regards,

Jordan Cheun Ngen, Chong
INF-4067 Universiteit Twente
Postbus 217
7500 AE Enschede
The Netherlands

Distributed and Embedded Systems (DIES)

Office Phone: +31 53 4894655
Web site: http://www.cs.utwente.nl/~chong
Email Add.: [EMAIL PROTECTED]



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Local Directory Access using Tomcat 4.0 (SORRY TO REPOST)

2002-04-11 Thread Jordan C N Chong

Dear Shawn

Thank you very much for your email. I just figure out myself...
All I have to do is to put the files inside the webapps\

But... if I want to do this outside the webapps...
does it mean I couldn't use the standalone Apache Tomcat 4.0 to do that?

Thank you very much.


Best regards,

Jordan Cheun Ngen, Chong
INF-4067 Universiteit Twente
Postbus 217
7500 AE Enschede
The Netherlands

Distributed and Embedded Systems (DIES)

Office Phone: +31 53 4894655
Web site: http://www.cs.utwente.nl/~chong
Email Add.: [EMAIL PROTECTED]



> -Original Message-
> From: Shawn A. Wilson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 11, 2002 8:42 PM
> To: Tomcat Users List
> Subject: Re: Local Directory Access using Tomcat 4.0 (SORRY TO REPOST)
>
>
> Jordan, can you please provide the stack trace of the exception thrown by
> Tomcat?
>
> Thanks,
> -shawn
>
> http://www.shawn-wilson.com
>
> On Thu, 11 Apr 2002, Jordan C N Chong wrote:
>
> > Dear all,
> >
> > I am really really sorry that I have to repost the question
> cause I really
> > couldnt find any solution for that. I really wish there is
> someone out there
> > could help me me out here...
> >
> > I wish to render the Tomcat 4.0 to access my local directory,
> what I mean
> > is, I store some files in a directory, and that I could use servlet to
> > download these files. I have tried to do the following:
> >
> > FileInputStream file = new
> > FileInputStream("C:\\Inetpub\\content\\test.txt");
> >
> > or replace the "\\" with File.Separator, but the Tomcat 4.0 keeps
> > complaining that the directory is not accessible. I presume I have to do
> > some modification on the server setting or configuration, but I
> have no idea
> > at all how to proceed.
> >
> > Please help. Thank you very much.
> >
> > Best regards,
> > Jo
> >
> >
> > --
> > 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]>
>
>


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




Local Directory Access using Tomcat 4.0 (SORRY TO REPOST)

2002-04-11 Thread Jordan C N Chong

Dear all,

I am really really sorry that I have to repost the question cause I really
couldnt find any solution for that. I really wish there is someone out there
could help me me out here...

I wish to render the Tomcat 4.0 to access my local directory, what I mean
is, I store some files in a directory, and that I could use servlet to
download these files. I have tried to do the following:

FileInputStream file = new
FileInputStream("C:\\Inetpub\\content\\test.txt");

or replace the "\\" with File.Separator, but the Tomcat 4.0 keeps
complaining that the directory is not accessible. I presume I have to do
some modification on the server setting or configuration, but I have no idea
at all how to proceed.

Please help. Thank you very much.

Best regards,
Jo


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Access local directory with Tomcat 4.0

2002-04-10 Thread Jordan C N Chong

Dear all,

Sorry to post this question again, cause I didn't receive any reply... so I
think I should rephrase my question.

I am using standalone Apache Tomcat 4.0, on my Windows 2000 machine.

I am making a servlet for file downloading using the Tomcat 4.0, but I am
not sure how to setup or configure the local directory, cause when I do
this:

FileInputStream filein = new FileInputStream("C:\\temp\\text.txt");

I got IOException for that, because Tomcat 4.0 complains the directory is
not accessible... Please help me. Thank you very much.


Best regards,
Jo


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Local directory access with Apache Tomcat 4.0

2002-04-10 Thread Jordan C N Chong

Dear all,

I am not sure how to configure the standalone Tomcat, so that it allows
me to access the directory on my machine... mmm... let me give you an
example... I wish to read in the certificate directly as a file, but the
Tomcat complains that the directory, where the file is located is not
accessible. And it happens the same when I wish to send a file back to the
local machine... So, is there any settings I need to do? And I wish you
understand my broken English... sorry

Please help. Thank you very much.


Best regards,

Jordan Cheun Ngen, Chong
INF-4067 Universiteit Twente
Postbus 217
7500 AE Enschede
The Netherlands

Distributed and Embedded Systems (DIES)

Office Phone: +31 53 4894655
Web site: http://www.cs.utwente.nl/~chong
Email Add.: [EMAIL PROTECTED]



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Access the file in a directory.

2002-04-08 Thread Jordan C N Chong

Dear Emmanuel :)

I am sorry I typed the wrong thing here, I have tried this instead, which
caused the problem:

FileInputStream file = new FileInputStream("C:\\Apache Tomcat
4\webapps\\examples\\file.txt");

Sorry for the mistake...

-Original Message-
From: Emmanuel Guyot [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 12:51 PM
To: Tomcat Users List
Subject: Re: Access the file in a directory.



Remember that \ is a special character. Instead use :
FileInputStream file = new FileInputStream("C:\\Apache Tomcat
4\webapps\\examples\\file.txt");

or

FileInputStream file = new FileInputStream("C:/Apache Tomcat
4/webapps/examples/file.txt");

E.G.

Emmanuel Guyot
8 Rue des Montées
45100 Orléans
France

- Original Message -
From: Jordan C N Chong
To: [EMAIL PROTECTED]
Sent: Monday, April 08, 2002 12:01 PM
Subject: Access the file in a directory.


Dear all,

I have installed the standalone version of Apache Tomcat 4.0 on my Windows
2000 machine. And everything is running well. However when I wish to, like
access a file:

FileInputStream file = new FileInputStream("C:\Apache Tomcat
4\webapps\examples\file.txt");

Tomcat complains that the directory is not accessible. Please help me out
with this setting. Thank you very much. Wish you all the best.


Best regards,
Jo


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



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




Access the file in a directory.

2002-04-08 Thread Jordan C N Chong

Dear all,

I have installed the standalone version of Apache Tomcat 4.0 on my Windows
2000 machine. And everything is running well. However when I wish to, like
access a file:

FileInputStream file = new FileInputStream("C:\Apache Tomcat
4\webapps\examples\file.txt");

Tomcat complains that the directory is not accessible. Please help me out
with this setting. Thank you very much. Wish you all the best.


Best regards,
Jo


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat 4 and OpenSSL

2002-04-01 Thread Jordan C N Chong

Dear all experts

I am a newbie of Tomcat. I have installed Apache-Tomcat-4.0 on my Windows
2000. However I wish to install OpenSSL, to handle the certificates. I am
not sure how to do it... I found some information about installing Tomcat3.2
with Openssl. But I couldn't find any about Tomcat4.0. Please help me. Thank
you very much.


Best regards,

Jordan Cheun Ngen, Chong
INF-4067 Universiteit Twente
Postbus 217
7500 AE Enschede
The Netherlands

Distributed and Embedded Systems (DIES)

Office Phone: +31 53 4894655
Web site: http://www.cs.utwente.nl/~chong
Email Add.: [EMAIL PROTECTED]



--
To unsubscribe:   
For additional commands: 
Troubles with the list: