2 problems: either sealed violation or NoClassDefFoundError

Hi all,
i'm trying to run the JSP/XML web application mentioned by developers.java.sun.com. It consists of a jsp page, a ParserBean and a helper class. I tried to run the bean alone with a little test driver and it was all fine, but combined with the jsp page it didnt work.
The first problem with jsp was:
java.lang.NoClassDefFoundError:org/xml/sax/helpers/DefaultHandler
Then i put jaxp to the classpath of the application, but it leads to the second problem:
Type org/xml/sax/helpers/DefaultHandler was not found.
No matter was i am trying, it just wont work.
jsp:
<title>sax parser</title>
<%@ page import="java.util.*" %>
<%@ page import="saxbean.*" %>
</head>
<body bgcolor="#000000" text= c4c9cf>
<jsp:useBean id="saxparser" class="saxbean.MySAXParserBean"/>
imports for the bean:
package saxbean;
import java.io.*;
import java.util.*;
import org.xml.sax.*;
import org.xml.sax.helpers.DefaultHandler;
import javax.xml.parsers.*;
public...
Please help me
Karen

Get a chance figure it out? I'm having the same trouble as you. I tried it under all platforms: Win2K, and Unix. None of them really works.
Anybody out there tried it with success?
Thanks a loooooooot!

Similar Messages

  • Sealing violation error

    I get a sealing violation error when i run a servlet that does a XML file to Access table data transfer. I use a crimson jar file and extract it (classes) into the classes directory of my web app. How to i avoid getting this violation error. Any Ideas??

    i did that and now it doesnt pick up my jar file which is in the lib folder. I compile the java program using a batch file
    javac -classpath .;f:\etl\web-inf\lib\crimson.jar XMLToAccess.java
    but when i run the servlet i get the following error
    java.lang.NoClassDefFoundError: javax/xml/parsers/DocumentBuilderFactory
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Unknown Source)
         at desisoft.server.servlets.Context.getServletInstance(Context.java:1781)
         at desisoft.server.servlets.Context.getContextInternalDispatcher(Context.java:2583)
    but my jar file is not in the javax directory

  • Java.lang.SecurityException: sealing violation

    I got the following error after deploying application.
    I installed ADF runtime module on standalone OC4J. (I tested on both 9.0.3 and 9.0.4. I got the same result)
    I need your help asap.
    Thanks in advance.
    500 Internal Server Error
    java.lang.SecurityException: sealing violation
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].naming.ContextClassLoader.defineClass(ContextClassLoader.java:1076)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].naming.ContextClassLoader.findClass(ContextClassLoader.java:365)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].naming.ContextClassLoader.loadLocalClassFirst(ContextClassLoader.java:150)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].naming.ContextClassLoader.loadClass(ContextClassLoader.java:129)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at oracle.adf.model.servlet.ADFBindingFilter.initializeBindingContext(ADFBindingFilter.java:307)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

    Daekyun - I think you're going down the right path by installing different adf runtimes - at least thats what helped me when I was having the same problem.
    Here is what we did to solve our problem with the same exception you're getting:
    Since we deploy to linux boxes I set up samba to be able to map a drive to our oracle home directory. I mapped the drive to the oracle home "share" I created on the linux box. I then, in the same jdev that I did my development in (in a multiuser environment I'd imagine as long as you're all developing in the same version everything should be fine), I pointed the adf runtime installer to that mapped drive I created to the samba "share" of the oracle home on the linux box. Everything went great after the adf runtime was installed that matched the version I was using in development.
    HTH
    -Brian

  • Security Exception: Sealing violation

    Hi All,
    i am getting this securtiy violation exception,
    I am using the jdk1.2.2 , jaxp.jar and xalan.jar.
    i have taken this java file from one of the examples in JSP and XML of the java.sun.com
    can you please find out what could be the problem??
    here the program trying to generate the HTML file from the given XML file.
    C:\raja\xml\examples>java xmlhtml stock.xml stock.html
    Exception in thread "main" java.lang.SecurityException: sealing violation
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:236)
    at java.net.URLClassLoader.access$1(URLClassLoader.java:216)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:275)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:124)
    at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory
    .java:117)
    at xmlhtml.main(xmlhtml.java:12)

    You are probably trying to run XML parsing code from two different JAR files. The sealing violation means you are violating the seal (lock) which was put on one of the JAR files when it was created. Try rearranging your class path.

  • Sealing violation deploying Infobus Applet

    Hi:
    I'm trying to deploy an Infobus Applet. The database I'm using
    is Oracle 8.0.5, and I've installed the Java plug-in 1.2
    The connection dialog appears fine, but when I click the open
    button I get this exception
    405: sealing violation...
    I've read about sealing, and it seems to be a property in the
    manifest file generated in the JAR. But when I open the JAR I
    can't see the property referred in the documentation
    Any idea about what could be the problem?
    Thanks in advance
    Jose Luis
    null

    This is the whole text of the exception I get
    Jose Luis
    java.lang.SecurityException: sealing violation
    at java.net.URLClassLoader.defineClass(Compiled Code)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Compiled Code)
    at sun.applet.AppletClassLoader.findClass(Compiled Code)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at sun.applet.AppletClassLoader.loadClass(Compiled Code)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Compiled Code)
    at
    oracle.jbo.rt.jndi.JboInitialContextFactory.getInitialContext
    (JboInitialContextF
    actory.java:52)
    at javax.naming.spi.NamingManager.getInitialContext
    (NamingManager.java:783)
    at javax.naming.InitialContext.getDefaultInitCtx
    (InitialContext.java:165)
    at javax.naming.InitialContext.<init>
    (InitialContext.java:142)
    at oracle.dacf.dataset.SessionInfo._createAppModule
    (SessionInfo.java:1476)
    at oracle.dacf.dataset.SessionInfo.connect
    (SessionInfo.java:1186)
    at oracle.dacf.dataset.DbAccessImpl.connect(Compiled Code)
    at oracle.dacf.control.swing.LoginDlg._connectToDB
    (LoginDlg.java:1641)
    at oracle.dacf.control.swing.LoginDlg._okButtonClicked
    (LoginDlg.java:1550)
    at oracle.dacf.control.swing.LoginDlg.actionPerformed
    (LoginDlg.java:1632)
    at javax.swing.AbstractButton.fireActionPerformed(Compiled
    Code)
    at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
    (AbstractButton.ja
    va:1101)
    at javax.swing.DefaultButtonModel.fireActionPerformed
    (Compiled Code)
    at javax.swing.DefaultButtonModel.setPressed
    (DefaultButtonModel.java:250)
    at
    javax.swing.plaf.basic.BasicButtonListener.mouseReleased
    (BasicButtonListener.jav
    a:217)
    at java.awt.Component.processMouseEvent(Component.java:3126)
    at java.awt.Component.processEvent(Compiled Code)
    at java.awt.Container.processEvent(Compiled Code)
    at java.awt.Component.dispatchEventImpl(Compiled Code)
    at java.awt.Container.dispatchEventImpl(Compiled Code)
    at java.awt.Component.dispatchEvent(Compiled Code)
    at java.awt.LightweightDispatcher.retargetMouseEvent
    (Compiled Code)
    at java.awt.LightweightDispatcher.processMouseEvent(Compiled
    Code)
    at java.awt.LightweightDispatcher.dispatchEvent(Compiled
    Code)
    at java.awt.Container.dispatchEventImpl(Compiled Code)
    at java.awt.Window.dispatchEventImpl(Compiled Code)
    at java.awt.Component.dispatchEvent(Compiled Code)
    at java.awt.EventQueue.dispatchEvent(Compiled Code)
    at java.awt.EventDispatchThread.run(Compiled Code)
    null

  • WLS 10, Sealing violation at runtime, package javax.transaction is sealed.

    Hello,
    If I try to login on a LoginContext, a LoginException is thrown:
    Exception Message: javax.security.auth.login.LoginException: java.lang.SecurityException: sealing violation: package javax.transaction is sealed
    Is this a classloading problem with the package javax.transaction out of ../bea/modules ?
    Do you know how to solve this issue?
    JAAS Clientlogin in ApplicationImpl...
    Exception Message: javax.security.auth.login.LoginException: java.lang.SecurityException: sealing violation: package javax.transaction is sealed
    javax.security.auth.login.LoginException: javax.security.auth.login.LoginException: java.lang.SecurityException: sealing violation: package javax.transaction is sealed
    at weblogic.security.auth.login.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:199)
    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:585)
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
    at javax.security.auth.login.LoginContext.login(LoginContext.java:579)

    We solved the problem. We had used an external library (Castor) which included a sealed package of javax.transaction (jta_1.0.1.jar).
    To solve the problem we just had to unseal jta_1.0.1.jar

  • Sealing violation at runtime, package javax.transaction is sealed

    Hello,
    If I try to login on a LoginContext, a LoginException is thrown:
    Exception Message: javax.security.auth.login.LoginException: java.lang.SecurityException: sealing violation: package javax.transaction is sealed
    Is this a classloading problem?
    Do you know how to solve this issue?
    JAAS Clientlogin in ApplicationImpl...
    Exception Message: javax.security.auth.login.LoginException: java.lang.SecurityException: sealing violation: package javax.transaction is sealed
    javax.security.auth.login.LoginException: javax.security.auth.login.LoginException: java.lang.SecurityException: sealing violation: package javax.transaction is sealed
    at weblogic.security.auth.login.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:199)
    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:585)
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
    at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
    at ch.suva.aax.security.jaas.SuvaClientLogin.getPasswordServerSubject(SuvaClientLogin.java:179)

    You're loading a class from the same package, but from a different JAR, which the sealed package doesn't allow. Find the class that's in a different JAR and best remove it. Classpath shenanigans like re-odering the JARs might help, but not reliably in all envorinments.
    Edited by: CeciNEstPasUnProgrammeur on Oct 21, 2008 11:50 AM

  • DOM + servlet = sealing violation. Why?

    I use "JavaServer Web Development Kit (JSWDK) 1.0.1"
    ,JDK 1.3 and jaxp-1.1. The following code in servlet raise "java.lang.SecurityException: sealing violation
    ". Code:
    db = dbf.newDocumentBuilder();
    How to avoid this problem? I look a few similar questions, but no one suitable solution for me.
    Thanks.
    Max

    The reason a .jar file is sealed is to ensure that all class files in the jar come from that jar file.
    Basically the jaxp.jar and j2ee.jar file both contain the class files for the org.w3c.dom package. I believe j2ee.jar contains v1.0 of these classes. Since j2ee.jar contains multiple APIs, it may become neccessary to replace one API with a newer version. Sealing the .jar file of the new API ensures that only those classes in the .jar file (current version) are loaded from that jar file.
    If you place the JAXP .jar files (jaxp, xalan, crimson) before the j2ee.jar file in your classpath, this problem will go away. Doing this will replace the JAXP classes in the j2ee.jar file with those in the three JAXP jar files since they come first.
    If the order was j2ee.jar THEN the jaxp jars, the jaxp classes in the j2ee.jar file (old version) would be loaded, then any new classes would be loaded from the jaxp jars. This leaves open the possibility for mismatched class versions in the same API (if JAXP contained new classes or versions). This is why the jar file is sealed.
    Hope this helps.

  • Sealing Violation with EJBs in WebSphere Studio Application Developer

    I have several projects in WebSphere Studion Application Developer.
    They are an Enterprise application project, an EJB Project, a Java project which has
    common classes being used by both client and server and a Client Project. The enterprise application project
    is referencing the EJB project and the Client project. The EJB project is referencing the Common project
    and the Common project is referencing the EJB project. The client project is referencing the Common project.
    The code I have in the projects is imported from the file system.
    I am getting all the projects compiled. The build paths are fine. I have a server instance and configuration
    for the enterprise project. I have specified classpath for the server instance.
    Now when I run the instance, I get the Sealing violation as given below
    [4/15/02 10:18:55:232 MDT] dc3bd46 EJBEngine I WSVR0037I: Starting EJB jar: ejbjar
    [4/15/02 10:18:55:732 MDT] dc3bd46 SystemOut U Inside LoggerHelper(String null, String com.rac.ao.ApplicationObject)
    [4/15/02 10:18:55:748 MDT] dc3bd46 SystemOut U System property:LoggerConfigFile:null
    [4/15/02 10:18:55:748 MDT] dc3bd46 SystemOut U Default file being used:log4j.conf
    [4/15/02 10:18:55:748 MDT] dc3bd46 SystemOut U Searching for the configFile=log4j.conf
    [4/15/02 10:18:55:748 MDT] dc3bd46 SystemOut U Searching for the config file in C:/Program Files/IBM/Application Developer/plugins/com.ibm.etools.websphere.runtime/properties/
    [4/15/02 10:18:55:748 MDT] dc3bd46 SystemOut U Searching for the config file in C:/Dev/RACCommon/bin/
    [4/15/02 10:18:55:748 MDT] dc3bd46 SystemOut U Config file for LoggerHelper in the current VM=null
    [4/15/02 10:18:55:795 MDT] dc3bd46 SystemOut U Could not read the file log4j.conf. Logging is disabled.
    [4/15/02 10:18:55:810 MDT] dc3bd46 EJBEngine X WSVR0062E: Failed to start EJB, RAC#RACServer.jar#AccountAO: sealing violation
    [4/15/02 10:18:55:951 MDT] dc3bd46 SystemOut U static in EntityObject
    [4/15/02 10:18:55:951 MDT] dc3bd46 SystemOut U static in AccountEOBean
    [4/15/02 10:18:55:951 MDT] dc3bd46 SystemOut U Inside EntityObject(AccountEO)
    [4/15/02 10:18:56:045 MDT] dc3bd46 SystemOut U Inside AccountEOBean() after calling super()
    [4/15/02 10:18:56:045 MDT] dc3bd46 EJBEngine X WSVR0062E: Failed to start EJB, RAC#RACServer.jar#AccountEO: sealing violation
    [4/15/02 10:18:56:076 MDT] dc3bd46 SystemOut U Inside EntityObject(AdminEO)
    [4/15/02 10:18:56:076 MDT] dc3bd46 EJBEngine X WSVR0062E: Failed to start EJB, RAC#RACServer.jar#AdminEO: sealing violation
    [4/15/02 10:18:56:951 MDT] dc3bd46 ServletEngine A SRVE0161I: IBM WebSphere Application Server - Web Container. Copyright IBM Corp. 1998-2001
    [4/15/02 10:18:56:998 MDT] dc3bd46 ServletEngine A SRVE0162I: Servlet Specification Level: 2.2
    [4/15/02 10:18:57:013 MDT] dc3bd46 ServletEngine A SRVE0163I: Supported JSP Specification Level: 1.1
    [4/15/02 10:18:57:232 MDT] dc3bd46 ServletEngine A SRVE0167I: Session Manager is Configured - Initializing...
    [4/15/02 10:18:57:466 MDT] dc3bd46 CacheManager A DYNA0011E: Servlet cache file dynacache.xml not found; caching is disabled
    [4/15/02 10:18:57:513 MDT] dc3bd46 ServletEngine A SRVE0169I: Loading Web Module: IBM EJB Test Client.
    [4/15/02 10:18:58:045 MDT] dc3bd46 WebGroup I SRVE0091I: [Servlet LOG]: JSP 1.1 Processor: init
    [4/15/02 10:18:58:091 MDT] dc3bd46 WebGroup I SRVE0091I: [Servlet LOG]: SimpleFileServlet: init
    [4/15/02 10:18:58:310 MDT] dc3bd46 HttpTransport A SRVE0171I: Transport http is listening on port 8,080.
    [4/15/02 10:18:58:357 MDT] dc3bd46 Server A WSVR0023I: Server Default Server open for e-business
    To dig into the problem, I created a sample ejb project and added it to the same server configuration. When I server instance,
    I got the sealing violation for my sample ejb also.
    After that I created a new server configuration and added the Sample ejb project to the server configuration.
    When I started the fresh server instance with this server configuration, the server was up without any sealing violation.
    I know the concept of sealing violation. I have even solved the sealing violation in other examples.
    But now here I don't have a control over RACServer.jar which I doubt might be sealed.
    Any comments will be appreciated.

    Using Visual Source Safe with Websphere Studio Application Developer (WSAD)
    Installing Visual Source Safe Plug In
    1.     Navigate to Netservb\data1\vol1\itdw\dev\new apps\vsswasplugin (Netservb should be the S: drive).
    2.     Double click on setup.exe.
    3.     Click OK on the initial message.
    4.     Browse to the Eclipse home directory. It should be similar to: C:\Program Files\IBM\WebSphere Studio\eclipse. Click Next.
    5.     The plug in should install.
    Integrating with WSAD
    A. Joining an Existing Visual Source Safe Project:
    1.     Open WSAD.
    2.     Create a project in WSAD.
    3.     Right click on project and select Team/Share Project.
    4.     From the Share Project screen, select VSS Configuration Wizard as the repository type and click Next.
    5.     The SS.EXE path should be similar to: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE.
    6.     Enter username and password.
    7.     The VSS directory should be Netservb\MIS-PC\VSS (Netservb should be the S: drive).
    8.     Leave source directory blank
    9.     Put Visual Source Safe project name in the Relative mount point entry.
    10.     Click Finish.
    11.     Right click on the WSAD project and select Team / Refresh.
    B. Creating a New Project (doesn�t exist in Visual Source Safe)
    1.     Open WSAD.
    2.     Create a project in WSAD.
    3.     Right click on project and select Team/Share Project.
    4.     From the Share Project screen, select VSS Configuration Wizard as the repository type and click Next.
    5.     The SS.EXE path should be similar to: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE.
    6.     Enter username and password.
    7.     The VSS directory should be Netservb\MIS-PC\VSS (Netservb should be the S: drive).
    8.     Leave source directory blank
    9.     Put Visual Source Safe project name in the Relative mount point entry.
    10.     Click Finish.
    11.     Right click on the WSAD project and select Team / Add to VSS
    12.     Restart Visual Source Safe and new project should appear.
    C. Adding Source to Visual Source Safe from WSAD
    1.     Right click object to be added to Visual Source Safe.
    2.     Select Team / Add to VSS. Object should appear in Visual Source Safe.
    D. Checking out Visual Source Safe object from WSAD
    1.     Right click object to checkout and select Team / Check Out.
    2.     To undo check out, right click object and select Team / Undo Check Out.

  • SOAPException: sealing violation

    Hi,
    I have created a client test stub for a web service, and tried to run it in JDeveloper 9.0.3.1. However, I came across below error:
    [SOAPException: faultCode=SOAP-ENV:Server; msg=sealing violation]
    Would like to ask if anyone has come across a similar error. I was wondering if it might be connected to the XML parser.
    Rgds.

    i did that and now it doesnt pick up my jar file which is in the lib folder. I compile the java program using a batch file
    javac -classpath .;f:\etl\web-inf\lib\crimson.jar XMLToAccess.java
    but when i run the servlet i get the following error
    java.lang.NoClassDefFoundError: javax/xml/parsers/DocumentBuilderFactory
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Unknown Source)
         at desisoft.server.servlets.Context.getServletInstance(Context.java:1781)
         at desisoft.server.servlets.Context.getContextInternalDispatcher(Context.java:2583)
    but my jar file is not in the javax directory

  • JSP(XML+XSL)=HTML : error: sealing violation

    Hi,
    I have this jsp which will transform an xml file to html using xsl file... but its giving me a sealing violation. i tried the same code in a java application and its working...
    The error thrown is this:
    Internal Servlet Error:
    javax.servlet.ServletException: sealing violation
    Root cause:
    java.lang.SecurityException: sealing violation
    <%@ page language="java" session="true" import="java.io.*,javax.xml.parsers.*,org.w3c.dom.*,javax.xml.transform.*,javax.xml.transform.stream.*" %>
    <%
    StreamSource xml = new StreamSource( new File( "C:\\Tomcat\\webapps\\pc\\logs\\TransactionLog.xml" ) );
    StreamSource xsl = new StreamSource( new File( "C:\\Tomcat\\webapps\\pc\\logs\\TransactionLog.xsl" ) );
    StreamResult result = new StreamResult( out );
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Transformer transformer = tFactory.newTransformer( xsl );
    transformer.setParameter( "recordsPerPage", "10" );
    transformer.setParameter( "pageNumber", request.getParameter( "pageNumber" ) );
    transformer.transform( xml, result ); // this is where the error is thrown...
    %>
    i hope somebody can help me with this...
    thanks,
    mitch

    Hi
    I think that It's because of some confilict between packages, try to set more priority for your jar files in tomcat.bat file as below :
    set cp=%CLASSPATH%
    set CLASSPATH=.
    set CLASSPATH=%TOMCAT_HOME%\classes
    set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\webserver.jar
    set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jasper.jar
    set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xml.jar
    set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\servlet.jar
    set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
    if "%cp%" == "" goto next
    set CLASSPATH=%cp%;%CLASSPATH%
    ALI

  • Unable to start BPEL server - sealing violation

    Hi ,
    Im trying to run BPEL with Weblogic server.I find i got some security related violations called Sealing Violations .If anyone knows how to fix it and make it run that will be great !
    Thanks,
    Vinodh
    the exception code shown below
    <Dec 19, 2005 3:40:12 PM EST> <Error> <Management> <BEA-140002> <InvocationTarge
    tException occurred while setting attribute Properties on MBean myorabpel:Name=B
    PELServerPool,Type=JDBCConnectionPool to value {user=system, password=manager}.
    Method: public void weblogic.management.mbeans.custom.JDBCConnectionPool.setProp
    erties(java.util.Properties) throws javax.management.InvalidAttributeValueExcept
    ion.
    weblogic.security.internal.encryption.EncryptionServiceException: [Security:0902
    19]Error decrypting Secret Key java.lang.SecurityException: sealing violation: p
    ackage com.rsa.jsafe is sealed
    at weblogic.security.internal.encryption.JSafeSecretKeyEncryptor.decrypt
    SecretKey(JSafeSecretKeyEncryptor.java:120)
    at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.<ini
    t>(JSafeEncryptionServiceImpl.java:205)
    at weblogic.security.internal.encryption.JSafeEncryptionServiceFactory.g
    etEncryptionService(JSafeEncryptionServiceFactory.java:23)
    at weblogic.security.internal.SerializedSystemIni.getEncryptionService(S
    erializedSystemIni.java:230)
    at weblogic.security.internal.SerializedSystemIni.getEncryptionService(S
    erializedSystemIni.java:238)
    at weblogic.management.EncryptionHelper.getCEncryptionService(Encryption
    Helper.java:141)
    at weblogic.management.EncryptionHelper.encryptString(EncryptionHelper.j
    ava:81)
    at weblogic.management.mbeans.custom.JDBCConnectionPool.setProperties(JD
    BCConnectionPool.java:50)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBe
    anImpl.java:1662)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBe
    anImpl.java:1109)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Conf
    igurationMBeanImpl.java:369)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.j
    ava:1358)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.j
    ava:1333)
    at weblogic.management.internal.RemoteMBeanServerImpl.private_setAttribu
    te(RemoteMBeanServerImpl.java:431)
    at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(Remot
    eMBeanServerImpl.java:387)
    at weblogic.management.internal.WLSParserHandler.parseMBeanAttributes(WL
    SParserHandler.java:1189)
    at weblogic.management.internal.WLSParserHandler.startElement(WLSParserH
    andler.java:469)
    at weblogic.management.internal.xml.ConfigurationRepositoryImpl.processE
    lements(ConfigurationRepositoryImpl.java:1059)
    at weblogic.management.internal.xml.ConfigurationRepositoryImpl.processE
    lements(ConfigurationRepositoryImpl.java:1066)
    at weblogic.management.internal.xml.ConfigurationRepositoryImpl.parseThr
    ough(ConfigurationRepositoryImpl.java:468)
    at weblogic.management.AdminServerAdmin.parse(AdminServerAdmin.java:733)
    at weblogic.management.AdminServerAdmin.initializeRepository(AdminServer
    Admin.java:865)
    at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java
    :267)
    at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:770)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:669)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:343)
    at weblogic.Server.main(Server.java:32)
    >
    The WebLogic Server did not start up properly.
    Exception raised: 'weblogic.management.configuration.ConfigurationException: [Se
    curity:090219]Error decrypting Secret Key java.lang.SecurityException: sealing v
    iolation: package com.rsa.jsafe is sealed - with nested exception:
    [weblogic.security.internal.encryption.EncryptionServiceException: [Security:090
    219]Error decrypting Secret Key java.lang.SecurityException: sealing violation:
    package com.rsa.jsafe is sealed]'
    Reason: weblogic.management.configuration.ConfigurationException: [Security:0902
    19]Error decrypting Secret Key java.lang.SecurityException: sealing violation: p
    ackage com.rsa.jsafe is sealed - with nested exception:
    [weblogic.security.internal.encryption.EncryptionServiceException: [Security:090
    219]Error decrypting Secret Key java.lang.SecurityException: sealing violation:
    package com.rsa.jsafe is sealed]
    ***************************************************************************

    I found that it is happening only if i try the one with weblogic.If i try with Oracle Server it works i believe.
    Any body got this error and know how to or what is the fix?
    Thanks,
    Vinodh

  • Sealing violation

    Hi ,
    Im trying to run BPEL with Weblogic server.I find i got some security related violations called Sealing Violations .If anyone knows how to fix it and make it run that will be great !
    Thanks,
    Vinodh
    the exception code shown below
    <Dec 19, 2005 3:40:12 PM EST> <Error> <Management> <BEA-140002> <InvocationTarge
    tException occurred while setting attribute Properties on MBean myorabpel:Name=B
    PELServerPool,Type=JDBCConnectionPool to value {user=system, password=manager}.
    Method: public void weblogic.management.mbeans.custom.JDBCConnectionPool.setProp
    erties(java.util.Properties) throws javax.management.InvalidAttributeValueExcept
    ion.
    weblogic.security.internal.encryption.EncryptionServiceException: [Security:0902
    19]Error decrypting Secret Key java.lang.SecurityException: sealing violation: p
    ackage com.rsa.jsafe is sealed
    at weblogic.security.internal.encryption.JSafeSecretKeyEncryptor.decrypt
    SecretKey(JSafeSecretKeyEncryptor.java:120)
    at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.><ini
    t>(JSafeEncryptionServiceImpl.java:205)
    at weblogic.security.internal.encryption.JSafeEncryptionServiceFactory.g
    etEncryptionService(JSafeEncryptionServiceFactory.java:23)
    at weblogic.security.internal.SerializedSystemIni.getEncryptionService(S
    erializedSystemIni.java:230)
    at weblogic.security.internal.SerializedSystemIni.getEncryptionService(S
    erializedSystemIni.java:238)
    at weblogic.management.EncryptionHelper.getCEncryptionService(Encryption
    Helper.java:141)
    at weblogic.management.EncryptionHelper.encryptString(EncryptionHelper.j
    ava:81)
    at weblogic.management.mbeans.custom.JDBCConnectionPool.setProperties(JD
    BCConnectionPool.java:50)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBe
    anImpl.java:1662)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBe
    anImpl.java:1109)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Conf
    igurationMBeanImpl.java:369)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.j
    ava:1358)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.j
    ava:1333)
    at weblogic.management.internal.RemoteMBeanServerImpl.private_setAttribu
    te(RemoteMBeanServerImpl.java:431)
    at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(Remot
    eMBeanServerImpl.java:387)
    at weblogic.management.internal.WLSParserHandler.parseMBeanAttributes(WL
    SParserHandler.java:1189)
    at weblogic.management.internal.WLSParserHandler.startElement(WLSParserH
    andler.java:469)
    at weblogic.management.internal.xml.ConfigurationRepositoryImpl.processE
    lements(ConfigurationRepositoryImpl.java:1059)
    at weblogic.management.internal.xml.ConfigurationRepositoryImpl.processE
    lements(ConfigurationRepositoryImpl.java:1066)
    at weblogic.management.internal.xml.ConfigurationRepositoryImpl.parseThr
    ough(ConfigurationRepositoryImpl.java:468)
    at weblogic.management.AdminServerAdmin.parse(AdminServerAdmin.java:733)
    at weblogic.management.AdminServerAdmin.initializeRepository(AdminServer
    Admin.java:865)
    at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java
    :267)
    at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:770)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:669)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:343)
    at weblogic.Server.main(Server.java:32)
    >
    The WebLogic Server did not start up properly.
    Exception raised: 'weblogic.management.configuration.ConfigurationException: [Se
    curity:090219]Error decrypting Secret Key java.lang.SecurityException: sealing v
    iolation: package com.rsa.jsafe is sealed - with nested exception:
    [weblogic.security.internal.encryption.EncryptionServiceException: [Security:090
    219]Error decrypting Secret Key java.lang.SecurityException: sealing violation:
    package com.rsa.jsafe is sealed]'
    Reason: weblogic.management.configuration.ConfigurationException: [Security:0902
    19]Error decrypting Secret Key java.lang.SecurityException: sealing violation: p
    ackage com.rsa.jsafe is sealed - with nested exception:
    [weblogic.security.internal.encryption.EncryptionServiceException: [Security:090
    219]Error decrypting Secret Key java.lang.SecurityException: sealing violation:
    package com.rsa.jsafe is sealed]

    You probably have two incompatible-version jar files in action. My guess is jaxp.jar or crimson.jar.
    You're compiling against one set, and on deployment running against another.

  • Java.lang.SecurityException:- sealing violation !!! Urgent

    i m writing a client for EJBs which receives XML from EJB, parses it and then use the information. while parsing it gives the following exception.
    while the same parser is used in EJB deployed in WebLogic works well ....
    any one know please help me ....
    Parser: parseSchedule() called
    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 org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder
    (DocumentBuilderFactoryImpl.java:82)
    at iac.tango.client.system.Parser.parseSchedule(Parser.java:52)

    hai,
    conflict between the class files that the appserver accesses and what the appserver it is supposed to access. try changing the classpath or jar file which gets accessed. this will be solving the err.

  • Problem invoking WLST - java.lang.NoClassDefFoundError: weblogic.management

    Hi Guys!
    I want craete the new user 'jdoe' for domain 'tst2_domain' (WebLogic Server Version: 10.3.5.0)
    For it I have script 'create_user.sh':
    # Set the Environment Variables
    /home/testuser/Oracle/Middleware/user_projects/domains/tst2_domain/bin/setDomainEnv.sh
    export JAVA_HOME=/home/testuser/Oracle/Middleware/jdk160_24/
    export PATH=$PATH:$JAVA_HOME/bin/
    export CLASSPATH=/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/home/testuser/Oracle/Middleware/Oracle_OSB1/modules/com.bea.common.configfwk_1.5.0.0.jar:/home/testuser/Oracle/Middleware/Oracle_OSB1/lib/sb-kernel-api.jar:/home/testuser/Oracle/Middleware/Oracle_OSB1/lib/sb-kernel-impl.jar:/home/testuser/Oracle/Middleware/Oracle_OSB1/lib/sb-kernel-common.jar:/home/testuser/Oracle/Middleware/Oracle_OSB1/lib/sb-kernel-resources.jar
    # Execute the WLST script..
    cd resources
    java weblogic.WLST createUsers.py.../resources/createUsers.py:
    url = 'localhost:7001'
    username = 'weblogic'
    password = 'welcome1'
    print 'Adding users to DefaultAuthenticator.'
    connect(username, password, url)
    # Check if user already exists
    cd('/')
    authProvider = cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider("DefaultAuthenticator")
    if authProvider.userExists('jdoe'):
         print 'User jdoe already exists'
         exit()
    else:
         # Create users
         print 'Creating new user: jdoe'
         authProvider.createUser('jdoe','welcome2','a sample service bus administrator')
         authProvider.addMemberToGroup('Administrators','jdoe')
    print 'Users created successfully.'
    exit()Domain 'tst2_domain' is running...
    I started the create_user.sh and then i had the error:
    $ ./create_user.sh
    Initializing WebLogic Scripting Tool (WLST) ...
    Problem invoking WLST - java.lang.NoClassDefFoundError: weblogic.management.scripting.WLScriptContext
    Could you please help me? Which the problem in the script?
    $ ./setWLSEnv.sh
    CLASSPATH=/home/testuser/Oracle/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/patch_oepe1050/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/jrockit_160_24_D1.1.2-4/lib/tools.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/home/testuser/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/home/testuser/Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/testuser/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:
    PATH=/home/testuser/Oracle/Middleware/wlserver_10.3/server/bin:/home/testuser/Oracle/Middleware/modules/org.apache.ant_1.7.1/bin:/home/testuser/Oracle/Middleware/jrockit_160_24_D1.1.2-4/jre/bin:/home/testuser/Oracle/Middleware/jrockit_160_24_D1.1.2-4/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/testuser/bin
    Your environment has been set.
    $ java weblogic.WLST
    Exception in thread "main" java.lang.NoClassDefFoundError: weblogic.WLST
       at gnu.java.lang.MainThread.run(libgcj.so.7rh)
    Caused by: java.lang.ClassNotFoundException: weblogic.WLST not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
       at java.net.URLClassLoader.findClass(libgcj.so.7rh)
       at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
       at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
       at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
       at gnu.java.lang.MainThread.run(libgcj.so.7rh)

    But if run script as $ ./wlst.sh /home/testuser/create_user/resources/createUsers.py - its ok!
    $ ./wlst.sh /home/testuser/labs/Practice_05/create_user/resources/createUsers.py
    CLASSPATH=/home/testuser/Oracle/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/patch_oepe1050/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/jrockit_160_24_D1.1.2-4/lib/tools.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/home/testuser/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/home/testuser/Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/testuser/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:
    PATH=/home/testuser/Oracle/Middleware/wlserver_10.3/server/bin:/home/testuser/Oracle/Middleware/modules/org.apache.ant_1.7.1/bin:/home/testuser/Oracle/Middleware/jrockit_160_24_D1.1.2-4/jre/bin:/home/testuser/Oracle/Middleware/jrockit_160_24_D1.1.2-4/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/testuser/bin
    Your environment has been set.
    CLASSPATH=/home/testuser/Oracle/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/patch_oepe1050/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/jrockit_160_24_D1.1.2-4/lib/tools.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/home/testuser/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/home/testuser/Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/testuser/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/home/testuser/Oracle/Middleware/utils/config/10.3/config-launch.jar::/home/testuser/Oracle/Middleware/wlserver_10.3/common/derby/lib/derbynet.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/common/derby/lib/derbyclient.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/common/derby/lib/derbytools.jar::
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    Adding users to DefaultAuthenticator.
    Connecting to t3://localhost:7001 with userid weblogic ...
    Successfully connected to Admin Server 'tst2_as_server' that belongs to domain 'tst2_domain'.
    Warning: An insecure protocol was used to connect to the
    server. To ensure on-the-wire security, the SSL port or
    Admin port should be used instead.
    Creating new user: jdoe
    Users created successfully.
    Exiting WebLogic Scripting Tool.

Maybe you are looking for

  • How do I get an image from Picasa and transfer it to photoshop to work on it.?

    how do I obtain an image from picasa and bring it to ps to work on it?

  • Preview and Links

    I was happy to find the link feature in Leopard, and followed the directions in the help section. I selected the text, clicked the link button, went the the area where I want to go to in the same document, clicked on the beginning of the page and the

  • Conflict checking issues for package XYZ on zones a, b, c

    Hello. I'm trying to install postfix from Blastwave on a Solaris 10 U4 Sparc system with two non-global zones installed. To do that, I do: adm@winds02 ~ $ sudo pkg-get -i postfix No existing install of CSWpostfix found. Installing... Pre-existing loc

  • AppleMobileDeviceSupport script required error when installing iTUNES 10.5.2

    hi there, Trying to upgrade to 10.5.2 version of iTUNES and I received the following error message: The following install step failed: run preupgrade script for AppleMobileDeviceSupport.  Contact the software manufacturer for assistance. Do you know

  • Render Issues - Vertical lines

    Speed Grade sure knows to handle CinemaDNG, realtime playback, very smooth, ... But when I render, the result has a vertical striping pattern all over the image. And it happens with every output format possible (DPX, ProRes mov, H264 mov, CineForm, .