Re: 5.0.28 errors on startup of web apps

2004-12-09 Thread Julie McCabe
On Thursday 09 December 2004 17:38, Shapira, Yoav wrote:
> Hi,
> Before I even start dissecting this, where did you get the documentation
> that led you down this path?  I don't see any mention of HTTPSValve on
> the Tomcat (or FWIW, the entire apache.org) site.
>
> A general Google search shows only one place with this mention: the
> Globus site.  I see that you're using their connector, so I assume they
> must be supplying the valve as well.  If that's the case, why are you
> asking here and not bugging them instead? ;)
That is all correct and I am bugging them also - I saw a common problem on 
different web apps on various mailing lists and was wondering was there 
s'thing specific to Tomcat which I was not configuring properly.

>
> >I started to get ClassNotFoundException about classes in the
>
> catalina.jar.
>
> >So
> >I modified the CLASSPATH in the bin/catalina.sh file as follows:
>
> That CLASSPATH is not very relevant.  Please consult the Tomcat
> Classloader How-To document
> (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html
> ) to see what classloading repositories are applicable to you.  You
> would probably need to place the Globus jars in common/lib, and NOT
> modify the bootstrap classpath.
>
> >[main] ERROR startup.HostConfig  - Error deploying configuration
>
> descriptor
>
> >admin.xml
> >java.io.IOException: java.lang.NullPointerException
>
> Did you modify admin.xml or the server/webapps/admin directory?
No I didnt make any modifications to the installed Tomcat.
>
> >Any ideas greatly apprecipated.
>
> Go yell at someone at Globus, it's their fault.
>
> Yoav Shapira http://www.yoavshapira.com
>
>
>
>
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
> proprietary and/or privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not be saved, copied,
> printed, disclosed or used by anyone else.  If you are not the(an) intended
> recipient, please immediately delete this e-mail from your computer system
> and notify the sender.  Thank you.
>
>
> -
> 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]



5.0.28 errors on startup of web apps

2004-12-09 Thread Julie McCabe
Hello,

I'm using Tomcat 5.0.28, Java 1.4.2_02 and Red Hat linux 9.  I was able to 
start Tomcat ok but when deployed a web application and added the following 
to the conf/server.xml 



and



I started to get ClassNotFoundException about classes in the catalina.jar.  So 
I modified the CLASSPATH in the bin/catalina.sh file as follows:
CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/bootstrap.jar:"$CATALINA_HOME"/bin/commons-logging-api.jar:"$CATALINA_HOME"/common/lib/commons-digester.jar:"$CATALINA_HOME"/common/lib/commons-collections-3.0.jar:"$CATALINA_HOME"/common/lib/naming-common.jar:"$CATALINA_HOME"/common/lib/commons-beanutils.jar:"$CATALINA_HOME"/common/lib/commons-modeler.jar:"$CATALINA_HOME"/common/lib/servlet.jar:"$CATALINA_HOME"/common/lib/cog-jglobus.jar:"$CATALINA_HOME"/common/lib/naming-resources.jar:"$CATALINA_HOME"/common/lib/puretls.jar:"$CATALINA_HOME"/common/lib/cryptix32.jar:"$CATALINA_HOME"/common/lib/cryptix-asn1.jar:"$CATALINA_HOME"/server/lib/catalina.jar:"$CATALINA_HOME"/server/lib/tomcat-util.jar:"$CATALINA_HOME"/server/lib/tomcat-coyote.jar:"$CATALINA_HOME"/server/lib/cog-tomcat.jar:"$CATALINA_HOME"/server/lib/tomcat-http11.jar:"$CATALINA_HOME"/server/lib/tomcat-jk2.jar

I then started to get the following error:
[main] ERROR digester.Digester  - End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
..
...
[main] ERROR startup.HostConfig  - Error deploying configuration descriptor 
admin.xml
java.io.IOException: java.lang.NullPointerException
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:494)
at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)

I have seen similar error message on the web regarding deploying web 
applications but I cant find a concrete answer on its cause.  I get the error 
message for every web application deployed.

Any ideas greatly apprecipated.

Many thanks,
Julie.





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



Re: Betr.: Re: X509 certificates and https

2004-05-27 Thread Julie McCabe
Hello,

I should have included this in my original mail but I am using Mozilla 1.4.1 
on RedHat Linuz 9.0 - any ideas?

Julie.

On Thursday 27 May 2004 15:47, [EMAIL PROTECTED] wrote:
> If you use Internet Explorer you simple go to the Trusted Certificate
> Authorties, select the CA certificate and export it to some format.
> You should then be able to import it into your trusted keystore.
>
> Ron
>
>
>
>
>
> Julie McCabe <[EMAIL PROTECTED]>
> 27-05-2004 16:21
> Antwoord a.u.b. aan "Tomcat Users List"
>
>
> Aan:"Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
> Onderwerp:  Re: X509 certificates and https
>
>
> Hi,
>
> I tried the following command
>
> keytool -import -alias tomcat -keystore server.ks -trustcacerts -file
> server.crt
>
> with my certificate and key which are in pem format and it returned
> keytool error: java.lang.Exception: Input not an X.509 certificate
>
>
> I have the CA certifcate stored in my browser but cant see how I can
> export
> it?
>
> Thanks
> Julie.
>
> On Thursday 27 May 2004 15:24, [EMAIL PROTECTED] wrote:
> > The only thing you have to do is running the java keytool utily with
> > following command:
> >
> > keytool -import -alias tomcat -keystore server.ks -trustcacerts -file
> > server.crt
> >
> > This inserts thet server.crt certificate into the keystore that tomcat
> > uses.
> >
> > Your CA scertificate needs to be in the trusted keystore of your JRE
>
> under
>
> > which Tomcat runs.
> > If this is not the case put it in there as follows:
> >
> > keytool -import -keystore %JAVA_HOME%/lib/security/cacerts -file ca.pem
> > -alias my_alias
> >
> > This inserts the root certificate ca.pem into the trusted keystore of
>
> the
>
> > JRE being used.
> >
> > This should work.
> >
> > Ron Blom
>
> -
> 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: X509 certificates and https

2004-05-27 Thread Julie McCabe
Hi,

I tried the following command 

keytool -import -alias tomcat -keystore server.ks -trustcacerts -file
server.crt

with my certificate and key which are in pem format and it returned 
keytool error: java.lang.Exception: Input not an X.509 certificate


I have the CA certifcate stored in my browser but cant see how I can export 
it?

Thanks
Julie.

On Thursday 27 May 2004 15:24, [EMAIL PROTECTED] wrote:
> The only thing you have to do is running the java keytool utily with
> following command:
>
> keytool -import -alias tomcat -keystore server.ks -trustcacerts -file
> server.crt
>
> This inserts thet server.crt certificate into the keystore that tomcat
> uses.
>
> Your CA scertificate needs to be in the trusted keystore of your JRE under
> which Tomcat runs.
> If this is not the case put it in there as follows:
>
> keytool -import -keystore %JAVA_HOME%/lib/security/cacerts -file ca.pem
> -alias my_alias
>
> This inserts the root certificate ca.pem into the trusted keystore of the
> JRE being used.
>
> This should work.
>
> Ron Blom


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



X509 certificates and https

2004-05-27 Thread Julie McCabe
Hello,

I am trying to use SSL authenitcation with X509 certificates.  The certifcates 
are not in the Java keystore.  I would like to know how to get my certificate 
whichi is signed by a specific CA into the keystore and use the https 
connector. 

I have found some documentation on the web but have had little success with 
getting my certificates into the keystore and SSL Connector configuration.  I 
know my certificates are valid, maybe I am missing something with regards to 
the CA which signed the certifcate.  I am using tomcat 4.1.27, Red Hat Linix 
9.0.

Thanks,
Julie.



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



Inconsistent path to files

2004-05-25 Thread Julie McCabe
Hello,

My setup is Tomcat 4.1.27, Java 1.4.2_02, Red Hat Linux 9.0.

I have a JSP located in the webapps directory I would like it to read a file 
in the WEB-INF directory using a custom tag, eg,

File f = new File("WEB-INF/fileToRead.txt");

depending on which directory I start tomcat from the file will be located on 
not - if I start tomcat from the $CATALINA_HOME directory it will work but if 
I start tomcat from $CATALINA_HOME/webapps/webApp directory it will not pick 
up the file because the location is wrong!  I thought the code in the JSP 
should work regardless of which directory tomcat is started from.

In addition, I have noticed the behaviour of the 



Re: encoding problems with XML

2003-11-10 Thread Julie McCabe
try &

On Monday 10 November 2003 14:50, Edson Alves Pereira wrote:
>   Hello folks, i´m trying to write some special characters in a XML
> file, like:
>Doubs & Noble
>
>   But i don´t known the right encoding to [ & ] be validate properly,
> any idea?
>
>   Regards,
>   Edson

-- 

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



modifying shutdown behaviour?

2003-10-27 Thread Julie McCabe
Hello,

Config details: tomcat 4.1.24; java 1.4.1_02

When the $CATALINA_HOME/bin/shutdown.sh script is called I would like a 
particular web application to release its resources cleanly and perform tidy 
up operations before Tomcat shuts down.  

What is the best method of doing this?  Does it involve modifying the  
$CATALINA_HOME/bin/catalina.sh script?

Many thanks,
Julie.




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