AW: JAXB and Tomcat Problem

2002-01-31 Thread Lauer, Oliver

I'm using jaxb with TC4.0 and don't have any difficulties in using so but
I've placed the libs in common thus different apps could need that ! 
Oliver 

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer 
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _
 


-Ursprüngliche Nachricht-
Von: Paul Worrall [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 31. Januar 2002 11:42
An: [EMAIL PROTECTED]
Betreff: JAXB and Tomcat Problem


Hi,

I have tried to use the JAXB 1.0 runtime library with Tomcat 4.0.1 and
horribly strange things start to happen.

Can anyone help?  Details below.

Solaris 8 with --

java version 1.3.1_01
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)

and -- jaxb-rt-1.0-ea.jar from JAXB Early Access Release 1.0 placed in
/usr/java/jre/lib/ext

and using Apache 1.4 as the web server.

jakarta-tomcat-4.0.1 starts without errors--

$ ./bin/startup.sh
Guessing CATALINA_HOME from catalina.sh to ./bin/..
Setting CATALINA_HOME to ./bin/..
Using CLASSPATH: ./bin/../bin/bootstrap.jar:/usr/java/lib/tools.jar
Using CATALINA_BASE: ./bin/..
Using CATALINA_HOME: ./bin/..
Using JAVA_HOME: /usr/java

but produces--

 WebApp: 500 (File: pr_warp.c Line: 271) Cannot open connection conn


and when attempt to shutdown get--

$ ./bin/shutdown.sh
Guessing CATALINA_HOME from catalina.sh to ./bin/..
Setting CATALINA_HOME to ./bin/..
Using CLASSPATH: ./bin/../bin/bootstrap.jar:/usr/java/lib/tools.jar
Using CATALINA_BASE: ./bin/..
Using CATALINA_HOME: ./bin/..
Using JAVA_HOME: /usr/java
Catalina.stop: java.lang.SecurityException: sealing violation
java.lang.SecurityException: sealing violation
at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader
.java:671)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:1090)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:989)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:154)
at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:224)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:817)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

Ant ideas ?
Architect|Evangelist|Director

Apcentric Limited
The Soft Science of J2EE Deployment

t: +44 (0) 20 7663 1600
m: +44 (0) 77 1133 0213
w: www.apcentric.com


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


--
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich 
mit dem Absender der E-Mail in Verbindung zu setzen.

For legal and security reasons the information provided in this e-mail is not legally 
binding. Upon request we would be pleased to provide you with a legally binding 
confirmation in written form. Any form of unauthorised use, publication, reproduction, 
copying or disclosure of the content of this e-mail is not permitted. This message is 
exclusively for the person addressed or their representative. If you are not the 
intended recipient of this message and its contents, please notify the sender 
immediately.

==


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

AW: JAXB and Tomcat Problem

2002-01-31 Thread Lauer, Oliver

I don't know anyway but how about debugging the statement: 

java.net.URLClassLoader.defineClass(URLClassLoader.java:234)

and looking what's going on there ? 

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer 
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _
 


-Ursprüngliche Nachricht-
Von: Paul Worrall [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 31. Januar 2002 12:47
An: Tomcat Users List
Betreff: RE: JAXB and Tomcat Problem


Yes, and I have just found that it works under the j2sdkee1.3 which is
Apache Tomcat/4.0-b4-dev so I must be going wrong somewhere.

Any idea what the java.lang.SecurityException: sealing violation might
mean ?  That might help me reach some conclusions.

Thanks Oliver.



-Original Message-
From: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
Sent: 31 January 2002 10:43
To: 'Tomcat Users List'; '[EMAIL PROTECTED]'
Subject: AW: JAXB and Tomcat Problem


I'm using jaxb with TC4.0 and don't have any difficulties in using so but
I've placed the libs in common thus different apps could need that !
Oliver

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _



-Ursprüngliche Nachricht-
Von: Paul Worrall [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 31. Januar 2002 11:42
An: [EMAIL PROTECTED]
Betreff: JAXB and Tomcat Problem


Hi,

I have tried to use the JAXB 1.0 runtime library with Tomcat 4.0.1 and
horribly strange things start to happen.

Can anyone help?  Details below.

Solaris 8 with --

java version 1.3.1_01
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)

and -- jaxb-rt-1.0-ea.jar from JAXB Early Access Release 1.0 placed in
/usr/java/jre/lib/ext

and using Apache 1.4 as the web server.

jakarta-tomcat-4.0.1 starts without errors--

$ ./bin/startup.sh
Guessing CATALINA_HOME from catalina.sh to ./bin/..
Setting CATALINA_HOME to ./bin/..
Using CLASSPATH: ./bin/../bin/bootstrap.jar:/usr/java/lib/tools.jar
Using CATALINA_BASE: ./bin/..
Using CATALINA_HOME: ./bin/..
Using JAVA_HOME: /usr/java

but produces--

 WebApp: 500 (File: pr_warp.c Line: 271) Cannot open connection conn


and when attempt to shutdown get--

$ ./bin/shutdown.sh
Guessing CATALINA_HOME from catalina.sh to ./bin/..
Setting CATALINA_HOME to ./bin/..
Using CLASSPATH: ./bin/../bin/bootstrap.jar:/usr/java/lib/tools.jar
Using CATALINA_BASE: ./bin/..
Using CATALINA_HOME: ./bin/..
Using JAVA_HOME: /usr/java
Catalina.stop: java.lang.SecurityException: sealing violation
java.lang.SecurityException: sealing violation
at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader
.java:671)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:1090)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:989)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:154)
at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:224)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:817)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

Ant ideas ?
Architect|Evangelist|Director

Apcentric Limited
The Soft Science of J2EE Deployment

t: +44 (0) 20 7663 1600
m: +44 (0) 77 1133 0213
w: www.apcentric.com


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



--
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene
Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung
reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten
Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung,
Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail

AW: JAXB and Tomcat Problem

2002-01-31 Thread Lauer, Oliver

Paul, 

but now only this webapp can use JAXB and I guess it's worth it other apps
can use it, too, so how about placing jaxb within
something like the following ...\Tomcat4.0\common\lib. Within this folder
any webapp can use jaxb. 

Oliver 

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer 
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _
 


-Ursprüngliche Nachricht-
Von: Paul Worrall [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 31. Januar 2002 13:18
An: Lauer, Oliver; 'Tomcat Users List'
Betreff: RE: JAXB and Tomcat Problem


Hey, me happy.  Fixed it.

I put the jaxb runtime jar in my war file WEB-INF/lib instead and it worked.

Help much appreciated.

-Original Message-
From: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
Sent: 31 January 2002 11:53
To: 'Tomcat Users List'; '[EMAIL PROTECTED]'
Subject: AW: JAXB and Tomcat Problem


I don't know anyway but how about debugging the statement:

java.net.URLClassLoader.defineClass(URLClassLoader.java:234)

and looking what's going on there ?

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _



-Ursprüngliche Nachricht-
Von: Paul Worrall [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 31. Januar 2002 12:47
An: Tomcat Users List
Betreff: RE: JAXB and Tomcat Problem


Yes, and I have just found that it works under the j2sdkee1.3 which is
Apache Tomcat/4.0-b4-dev so I must be going wrong somewhere.

Any idea what the java.lang.SecurityException: sealing violation might
mean ?  That might help me reach some conclusions.

Thanks Oliver.



-Original Message-
From: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
Sent: 31 January 2002 10:43
To: 'Tomcat Users List'; '[EMAIL PROTECTED]'
Subject: AW: JAXB and Tomcat Problem


I'm using jaxb with TC4.0 and don't have any difficulties in using so but
I've placed the libs in common thus different apps could need that !
Oliver

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _



-Ursprüngliche Nachricht-
Von: Paul Worrall [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 31. Januar 2002 11:42
An: [EMAIL PROTECTED]
Betreff: JAXB and Tomcat Problem


Hi,

I have tried to use the JAXB 1.0 runtime library with Tomcat 4.0.1 and
horribly strange things start to happen.

Can anyone help?  Details below.

Solaris 8 with --

java version 1.3.1_01
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)

and -- jaxb-rt-1.0-ea.jar from JAXB Early Access Release 1.0 placed in
/usr/java/jre/lib/ext

and using Apache 1.4 as the web server.

jakarta-tomcat-4.0.1 starts without errors--

$ ./bin/startup.sh
Guessing CATALINA_HOME from catalina.sh to ./bin/..
Setting CATALINA_HOME to ./bin/..
Using CLASSPATH: ./bin/../bin/bootstrap.jar:/usr/java/lib/tools.jar
Using CATALINA_BASE: ./bin/..
Using CATALINA_HOME: ./bin/..
Using JAVA_HOME: /usr/java

but produces--

 WebApp: 500 (File: pr_warp.c Line: 271) Cannot open connection conn


and when attempt to shutdown get--

$ ./bin/shutdown.sh
Guessing CATALINA_HOME from catalina.sh to ./bin/..
Setting CATALINA_HOME to ./bin/..
Using CLASSPATH: ./bin/../bin/bootstrap.jar:/usr/java/lib/tools.jar
Using CATALINA_BASE: ./bin/..
Using CATALINA_HOME: ./bin/..
Using JAVA_HOME: /usr/java
Catalina.stop: java.lang.SecurityException: sealing violation
java.lang.SecurityException: sealing violation
at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader
.java:671)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:1090)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:989)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:154)
at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:224)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:817