• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Problems with axis and tomcat4.0

 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I am trying to execute examples which come with axis on Tomcat4.0. I get a security exception called as 'sealing exceptin'. Has anyone faced the same problem???
Cheers
Jayram
------------------
What if this is as good as it gets ?
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a guess, but it sounds like you've run into a problem where it's either asking you to seal your packages in a JAR, or where the current AXIS build doesn't correctly seal one if it's packages in a JAR.
See here: http://java.sun.com/docs/books/tutorial/jar/basics/manifest.html
for a discussion of package sealing. Could you post the stack trace and the example that's failing?
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
jayram
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here's the dump
I am trying to run example2
D:\tomcat\webapps\axis\WEB-INF\classes\samples\userguide\example2>java CalcClient -p8080 add 2 5
Exception in thread "main" java.lang.SecurityException: sealing violation
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 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 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 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 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 org.apache.axis.encoding.SOAPTypeMappingRegistry.<init>(SOAPTypeMappi
ngRegistry.java:191)
at org.apache.axis.deployment.SimpleDeploymentManager.<init>(SimpleDeplo
ymentManager.java:102)
at org.apache.axis.deployment.wsdd.SimpleWsddDeploymentManager.<init>(Si
mpleWsddDeploymentManager.java:66)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:100)
at org.apache.axis.client.AxisClient.<init>(AxisClient.java:83)
at org.apache.axis.client.Call.<init>(Call.java:160)
at org.apache.axis.client.Call.<init>(Call.java:171)
at org.apache.axis.client.ServiceClient.<init>(ServiceClient.java:168)
at CalcClient.main(CalcClient.java:83)

------------------
What if this is as good as it gets ?
 
Ranch Hand
Posts: 782
Python Chrome Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is from the Tomcat readme:
-WARNING: Tomcat 4.0 now ships with a modified version of the JAXP/1.1
-(Final) "jaxp.jar" and "crimson.jar" files in the "jasper" subdirectory.
-The "sealed" attribute has been removed from the manifest file for these
-two JARs, to avoid "package sealing violation" errors that were caused by
-them in a JDK 1.3 environment. You MUST NOT replace these files with a
-different (or later) release of JAXP, unless that later release has had
-the sealed attribute removed, or you will encounter "package sealing violation"
-errors when trying to use a different XML parser in a web application.
-
 
jayram
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks that should solve my problem
------------------
What if this is as good as it gets ?
 
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is AXIS on tomcat 4? Is this relevant to webservices or SOAP?
Faisal
 
jayram
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it is relevant
Axis is an open source project hosted at xml.apache.org/axis. Its an implementation of SOAP. And from whatever i have seen so far i think many people would like it.
"Axis is essentially Apache SOAP 3.0. It is a from-scratch rewrite, designed around a streaming model (using SAX internally rather than DOM). The intention is to create a more modular, more flexible, and higher-performing SOAP implementation (relative to Apache SOAP 2.0). "
Cheers
Jayram
------------------
What if this is as good as it gets ?
 
faisal mahmood
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does AXIS stand for anything? i.e. Apache ? ? ? etc.
Is there a weblink for it
Faisal
 
jayram
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well its hosted at apache
Link is
http://xml.apache.org/axis
Cheers
Jayram
------------------
What if this is as good as it gets ?
 
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get the same exception with Tomcat_3_2. Do I have to do the same thing?
Thanks
Sanjay
 
Tiger Scott
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I not only get the error when I try to run tomcat but also when I try to execute a class:
My Class Path is - C:\xerces\xerces.jar;C:\soap\lib\soap.jar;C:\wstk\wsdl4j\lib\wsdl4j.jar;C:\wstk\uddi4j\lib\uddi4j.jar;C:\wstk\lib\soapenc.jar;C:\wstk\lib\wstk.jar;C:\wstk\lib\xalan.jar;C:\wstk\lib \xss4j.jar;C:\jsse\lib\jsse.jar;C:\jsse\lib\jnet.jar;C:\jsse\lib\jcert.jar;C:\wstk\soap\lib\pop3.jar;C:\wstk\soap\lib\mail.jar;C:\wstk\soap\lib\mailapi.jar;C:\wstk\soap\lib\activat ion.jar;C:\wstk\soap\lib\smtp.jar;C:\soap\SOAPEnv\SOAPEnvelope.jar;c:\webservices\classes;.;C:\jsdk2 .1\server.jar;C:\jsdk2 .1\servlet.jar; c:\ant\lib\ant.jar;C:\Kawa4.1\kawaclasses.zip;c:\jdk1.3\lib\tools.jar;c:\jdk1.3\jre\lib\rt.jar;c:\jdk1.3\jre\lib\i18n.jar
I get the error:
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 java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:88)
at com.ibm.uddi.client.UDDIProxy.send(UDDIProxy.java:1180)
at com.ibm.uddi.client.UDDIProxy.find_business(UDDIProxy.java:192)
at tutorial.UDDI1.main(UDDI1.java:78)
java.lang.NullPointerException at com.ibm.uddi.request.FindBusiness.saveToXML(FindBusiness.java:194)
at com.ibm.uddi.client.UDDIProxy.send(UDDIProxy.java:1186)
at com.ibm.uddi.client.UDDIProxy.find_business(UDDIProxy.java:192)
at tutorial.UDDI1.main(UDDI1.java:78)
Exception in thread "main" Process Exit...

When I try to run Tomcat: C:\> tomcat run
FATAL: configuration error
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 java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
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:92)
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
Tomcat classpath is:
CLASSPATH=.;c:\jdk1.3\lib\rt.jar;jswdk-1.0.1\lib\jspengine.jar;C:\jsdk2 .1\server.jar;C:\jsdk2 .1\servlet.jar; c:\ant\lib\ant.jar;c:\xerces\xerces.jar;c:\soap\lib\soap.jar;c:\wstk\uddi4j\lib\uddi4j.jar;c:\wstk\wsdli4j\lib\wsdl4j.jar;c:\wstk\lib\wstk.jar;;c:\wstk\lib\xss4j.jar;c:\wstk\soap\l ib\smtp.jar;c:\wstk\soap\lib\mail.jar;c:\wstk\soap\lib\smtp.jar;c:\wstk\soap\lib\mailapi.jar;c:\wstk\soap\lib\activation.jar;c:\webservices\classes;c:\jsse\lib\jcert.jar;c:\jsse\li b\jnet.jar;c:\jsse\lib\jsse.jar;c:\tomcat\classes;c:\tomcat\lib\SERVLET.JAR;c:\tomcat\lib\PARSER.JAR;c:\tomcat\lib\JAXP.JAR;c:\tomcat\lib\ANT.JAR;c:\tomcat\lib\WEBSER~1.JAR;c:\tomc at\lib\JASPER.JAR;C:\jdk1.3\lib\tools.jar
I am using tomcat_3_2,soap_2_2,jdk1.3 on Windows 98.
Thanks
Sanjay
 
Slime does not pay. Always keep your tiny ad dry.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic