Deploying war Tomcat sun one

Our developers gave us war file they tested on tomcat and when we deloyed it on sun one it gave us this error.
failure (12525): ContextConfig[test4] WEB3524: Parse error in application web.xml org.xml.sax.SAXParseException: Element type "web-app" is not declared. at org.apache.crimson.parser.Parser2.error(Parser2.java:3354) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1502) at v
I googled it and think some things are diff in war structure specially web.xml under WEB-INF dir
Any suggestions ?

From my knowledge
Your web.xml should follow standard format.
To run the webapplication on sun one u should have sun-web.xml along with web.xml.
To get standard format of web.xml u can check tomcat installed default web applications that come with installation.
Check for dtd also.You can copy the dtd by searching for web.xml in sun one installation directory and sun-web.xml is also available at same directory.
Madhu

Similar Messages

  • How to deploy .war on Sun ONE Web Server 6.0?

    Hi Everyone
    I have been trying unsuccessfully to deploy a .war application using Sun One Web Server 6.0.
    I only installed Sun ONE for the first time this morning and don't know much about web servers - yet.
    I deployed the web application from the web-based admin console. I'm not sure exactly what to put in the URI field. I just deployed it on the only existing "virtual server". I don't really know anything about virtual servers.
    Also: I installed with the defaults, what port should I try to access my app from?
    The documentation doesn't help much - so please don't give me a URL to some docs i won't understand.
    I miss the autodeploy offered by other tools. I have deployed this app before on other servers.
    thanks in advance

    The URI is the "virtual path" at which the web application is accessible. For example, if you deploy a web application at the URI /foo, you would access the web application by requesting http://server.example.com:port/foo/.
    Unfortunately, I can't tell you what port your Web Server instance is listening on as that's configured at install time. If you don't remember the port you selected, check the server.xml configuration file. The port is recorded in that file.

  • Unzip error while deploying war using Sun One WS6.1_SP2 wdeploy

    Hi,
    We are unable to deploy using wdeploy
    [wdeploy] java.util.zip.ZipException: Error in unzipping the WAR file.
    [wdeploy] at com.sun.web.admin.util.UnZips.unzipit(UnZips.java:128)
    [wdeploy] at com.sun.web.admin.cmds.Deploy.process(Deploy.java:811)
    [wdeploy] at com.sun.web.admin.cmds.Deploy.main(Deploy.java:618)
    [wdeploy] Failed to deploy the web application: /wam
    Thanks
    Daniel

    Try to fragment the 'ear' in less than 64k blocks or don't transmit as long raw.
    Please let me know if this works.

  • Deploy axis on Sun ONE

    I am trying to deploy on axis engine installed over Sun ONE 8.
    I deployed the axis.war on Sun ONE using console.
    I also added all necessary axis jars with the dom.jar and xercesImpl.jar.After all i tried to deploy a webservice but it is giving me error as;
    C:\Sun\AppServer\domains\mydomain\applications\j2ee-modules\axis\WEB-INF\classes\samples\EmpID2>
    java -classpath %AXISCLASSPATH% org.apache.axis.client.AdminClient -h localhost -p 8080 deploy.wsdd
    Processing file deploy.wsdd
    Exception:: java.lang.NullPointerException
    Can Odabasioglu
    Thanks...

    I am trying to deploy on axis engine installed over Sun ONE 8.
    I deployed the axis.war on Sun ONE using console.
    I also added all necessary axis jars with the dom.jar and xercesImpl.jar.After all i tried to deploy a webservice but it is giving me error as;
    C:\Sun\AppServer\domains\mydomain\applications\j2ee-modules\axis\WEB-INF\classes\samples\EmpID2>
    java -classpath %AXISCLASSPATH% org.apache.axis.client.AdminClient -h localhost -p 8080 deploy.wsdd
    Processing file deploy.wsdd
    Exception:: java.lang.NullPointerException
    Can Odabasioglu
    Thanks...

  • Issues in deploying files on sun one application server 8.2.

    Hi,
    We have developed a project using java, JSP & Struts Framework. The database used is oracle 9.i. We have created a single war file as it is a small application. Initially we had deployed this project on Tomcat Apachee server and now we have migrated Sun One application server 8.2.
    During the deployment process we checked the "Verify" option. This option throws up certain errors for unknown reasons / resaons which we are not able to figure out. How ever if we do not check the "Verify" option the project gets deployed and runs sucessfully on the server.
    Here is an extract of the Log file:
    FAILED TESTS :
    Test Name : tests.web.WebArchiveClassesLoadable
    Test Assertion : All classes in this Web Archive are loadable. Please refer to J2EE 1.4 Specification Section #8.1.2 for further information.
    Test Description : For [ careers.war ]
    classes [ ] referenced by [ ] are not found
    Please either bundle the above mentioned classes in the application or use optional packaging support for them.
    Can some one throw some light onto this issue.
    Thanks
    Sanjay Subramanyam
    Mobile: 98671-84285
    email: [email protected]

    can you run standalone verifier and let us know what results it produces? to run standalone verifier:
    .../bin/verifier <path to your war file>
    If it still produces those empty [] in the resukts, then please file a bug.
    -- Sahoo

  • Error when deploy cocoon war file to sun one app server 7

    when i deploy cocoon war to sun one app server 7.
    i allways get a exception about this:
    Type: Exception Report
    Message: Internal Server Error
    Exception
    javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:949)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:229)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    Root Cause
    java.security.AccessControlException: access denied (java.lang.RuntimePermission createSecurityManager)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
    at java.security.AccessController.checkPermission(AccessController.java:401)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
    at java.lang.SecurityManager.(SecurityManager.java:280)
    at org.apache.cocoon.util.log.CocoonLogFormatter$CallStack.(CocoonLogFormatter.java:99)
    at org.apache.cocoon.util.log.CocoonLogFormatter.(CocoonLogFormatter.java:127)
    at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:730)
    at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:262)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:229)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    i want to know where i am wrong about cocoon.

    should i modify the file about
    permission java.lang.RuntimePermission "createClassLoader"
    Initialization Problem
    Message: Could not find component (key [org.apache.cocoon.components.language.generator.ServerPagesSelector])
    Description: org.apache.avalon.framework.component.ComponentException: Could not find component (key [org.apache.cocoon.components.language.generator.ServerPagesSelector])
    Sender: org.apache.cocoon.servlet.CocoonServlet
    Source: Cocoon Servlet
    cause
    java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
    request-uri
    /cocoon
    full exception chain stacktrace
    Original Exception: org.apache.avalon.framework.component.ComponentException: GeneratorSelector (key [org.apache.cocoon.components.classloader.ClassLoaderManager])
         at org.apache.cocoon.components.language.generator.GeneratorSelector.compose(GeneratorSelector.java:141)
         at org.apache.avalon.framework.container.ContainerUtil.compose(ContainerUtil.java:211)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:286)
         at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:141)
         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:266)
         at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:315)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy.lookup(DefaultComponentFactory.java:437)
         at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.compose(ProgramGeneratorImpl.java:171)
         at org.apache.avalon.framework.container.ContainerUtil.compose(ContainerUtil.java:211)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:286)
         at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:141)
         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:554)
         at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:530)
         at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
         at org.apache.cocoon.Cocoon.initialize(Cocoon.java:327)
         at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1358)
         at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:507)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3346)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:3592)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345)
         at org.apache.catalina.startup.Embedded.start(Embedded.java:957)
         at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426)
         at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514)
         at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170)
    Caused by: org.apache.avalon.framework.component.ComponentException: Could not access the Component (key [org.apache.cocoon.components.classloader.ClassLoaderManager])
         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:324)
         at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:315)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy.lookup(DefaultComponentFactory.java:437)
         at org.apache.cocoon.components.language.generator.GeneratorSelector.compose(GeneratorSelector.java:139)
         ... 28 more
    Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
         at java.security.AccessController.checkPermission(AccessController.java:401)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
         at java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:586)
         at java.lang.ClassLoader.(ClassLoader.java:186)
         at java.security.SecureClassLoader.(SecureClassLoader.java:53)
         at java.net.URLClassLoader.(URLClassLoader.java:81)
         at org.apache.cocoon.components.classloader.RepositoryClassLoader.(RepositoryClassLoader.java:87)
         at org.apache.cocoon.components.classloader.ClassLoaderManagerImpl.reinstantiate(ClassLoaderManagerImpl.java:116)
         at org.apache.cocoon.components.classloader.ClassLoaderManagerImpl.(ClassLoaderManagerImpl.java:82)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at java.lang.Class.newInstance0(Class.java:308)
         at java.lang.Class.newInstance(Class.java:261)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:212)
         at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:141)
         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:308)
         ... 31 more
    Original Exception: org.apache.avalon.framework.component.ComponentException: Could not access the Component (key [org.apache.cocoon.components.classloader.ClassLoaderManager])
         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:324)
         at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:315)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy.lookup(DefaultComponentFactory.java:437)
         at org.apache.cocoon.components.language.generator.GeneratorSelector.compose(GeneratorSelector.java:139)
         at org.apache.avalon.framework.container.ContainerUtil.compose(ContainerUtil.java:211)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:286)
         at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:141)
         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:266)
         at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:315)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy.lookup(DefaultComponentFactory.java:437)
         at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.compose(ProgramGeneratorImpl.java:171)
         at org.apache.avalon.framework.container.ContainerUtil.compose(ContainerUtil.java:211)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:286)
         at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:141)
         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:554)
         at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:530)
         at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
         at org.apache.cocoon.Cocoon.initialize(Cocoon.java:327)
         at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1358)
         at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:507)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3346)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:3592)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345)
         at org.apache.catalina.startup.Embedded.start(Embedded.java:957)
         at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426)
         at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514)
         at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170)
    Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
         at java.security.AccessController.checkPermission(AccessController.java:401)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
         at java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:586)
         at java.lang.ClassLoader.(ClassLoader.java:186)
         at java.security.SecureClassLoader.(SecureClassLoader.java:53)
         at java.net.URLClassLoader.(URLClassLoader.java:81)
         at org.apache.cocoon.components.classloader.RepositoryClassLoader.(RepositoryClassLoader.java:87)
         at org.apache.cocoon.components.classloader.ClassLoaderManagerImpl.reinstantiate(ClassLoaderManagerImpl.java:116)
         at org.apache.cocoon.components.classloader.ClassLoaderManagerImpl.(ClassLoaderManagerImpl.java:82)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at java.lang.Class.newInstance0(Class.java:308)
         at java.lang.Class.newInstance(Class.java:261)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:212)
         at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:141)
         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:308)
         ... 31 more
    Original Exception: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
         at java.security.AccessController.checkPermission(AccessController.java:401)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
         at java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:586)
         at java.lang.ClassLoader.(ClassLoader.java:186)
         at java.security.SecureClassLoader.(SecureClassLoader.java:53)
         at java.net.URLClassLoader.(URLClassLoader.java:81)
         at org.apache.cocoon.components.classloader.RepositoryClassLoader.(RepositoryClassLoader.java:87)
         at org.apache.cocoon.components.classloader.ClassLoaderManagerImpl.reinstantiate(ClassLoaderManagerImpl.java:116)
         at org.apache.cocoon.components.classloader.ClassLoaderManagerImpl.(ClassLoaderManagerImpl.java:82)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at java.lang.Class.newInstance0(Class.java:308)
         at java.lang.Class.newInstance(Class.java:261)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:212)
         at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:141)
         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:308)
         at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:315)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy.lookup(DefaultComponentFactory.java:437)
         at org.apache.cocoon.components.language.generator.GeneratorSelector.compose(GeneratorSelector.java:139)
         at org.apache.avalon.framework.container.ContainerUtil.compose(ContainerUtil.java:211)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:286)
         at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:141)
         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:266)
         at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:315)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy.lookup(DefaultComponentFactory.java:437)
         at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.compose(ProgramGeneratorImpl.java:171)
         at org.apache.avalon.framework.container.ContainerUtil.compose(ContainerUtil.java:211)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:286)
         at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:141)
         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:554)
         at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:530)
         at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
         at org.apache.cocoon.Cocoon.initialize(Cocoon.java:327)
         at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1358)
         at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:507)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3346)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:3592)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345)
         at org.apache.catalina.startup.Embedded.start(Embedded.java:957)
         at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426)
         at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514)
         at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170)
    stacktrace
    org.apache.avalon.framework.component.ComponentException: Could not find component (key [org.apache.cocoon.components.language.generator.ServerPagesSelector])
         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:275)
         at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:315)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy.lookup(DefaultComponentFactory.java:437)
         at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.compose(ProgramGeneratorImpl.java:171)
         at org.apache.avalon.framework.container.ContainerUtil.compose(ContainerUtil.java:211)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:286)
         at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:141)
         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:554)
         at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:530)
         at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
         at org.apache.cocoon.Cocoon.initialize(Cocoon.java:327)
         at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1358)
         at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:507)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3346)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:3592)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345)
         at org.apache.catalina.startup.Embedded.start(Embedded.java:957)
         at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426)
         at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514)
         at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170)
    Caused by: org.apache.avalon.framework.component.ComponentException: GeneratorSelector (key [org.apache.cocoon.components.classloader.ClassLoaderManager])
         at org.apache.cocoon.components.language.generator.GeneratorSelector.compose(GeneratorSelector.java:141)
         at org.apache.avalon.framework.container.ContainerUtil.compose(ContainerUtil.java:211)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:286)
         at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:141)
         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:266)
         ... 24 more
    Caused by: org.apache.avalon.framework.component.ComponentException: Could not access the Component (key [org.apache.cocoon.components.classloader.ClassLoaderManager])
         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:324)
         at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:315)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy.lookup(DefaultComponentFactory.java:437)
         at org.apache.cocoon.components.language.generator.GeneratorSelector.compose(GeneratorSelector.java:139)
         ... 28 more
    Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
         at java.security.AccessController.checkPermission(AccessController.java:401)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
         at java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:586)
         at java.lang.ClassLoader.(ClassLoader.java:186)
         at java.security.SecureClassLoader.(SecureClassLoader.java:53)
         at java.net.URLClassLoader.(URLClassLoader.java:81)
         at org.apache.cocoon.components.classloader.RepositoryClassLoader.(RepositoryClassLoader.java:87)
         at org.apache.cocoon.components.classloader.ClassLoaderManagerImpl.reinstantiate(ClassLoaderManagerImpl.java:116)
         at org.apache.cocoon.components.classloader.ClassLoaderManagerImpl.(ClassLoaderManagerImpl.java:82)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at java.lang.Class.newInstance0(Class.java:308)
         at java.lang.Class.newInstance(Class.java:261)
         at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:212)
         at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:141)
         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:308)
         ... 31 more
    Apache Cocoon 2.1.2

  • Deploying a web application on Sun One app server 7

    Hi,
    I am not able to deploy a web application on sun one server using Sun java studio.
    I have created Jsp, Servlet, Session bean and entity bean.
    When I am creating a web_module in the directory where JSP are kept, it is giving me error "directory is already mounted.
    I have already created EJB modules for both the Session and entity bean.
    Can some one tell me the cause / solution of this problem.

    Hi Amol,
    Thank you very much for replying my question. The contents in my application.xml are:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
    <application>
    <display-name>testwsapp</display-name>
    <description>J2EE Application testwsapp</description>
    <module>
    <web>
    <web-uri>testws_War.war</web-uri>
    <context-root>testws</context-root>
    </web>
    <alt-dd>testws_War.xml</alt-dd>
    </module>
    </application>
    The contents in jaxrpc-ri-runtime.xml are:
    <?xml version="1.0" encoding="UTF-8"?>
    <endpoints xmlns='http://java.sun.com/xml/ns/jax-rpc/ri/runtime' version='1.0'>
    <endpoint
    name='testws'
    interface='contactws.testwsGenServer.testwsRPC'
    implementation='contactws.testwsGenServer.testwsRPCBean'
    tie='contactws.testwsGenServer.testwsRPC_Tie'
    model='null'
    wsdl='/WEB-INF/testws.wsdl'
    service='{urn:testws/wsdl}Testws'
    port='{urn:testws/wsdl}testwsRPCPort'
    urlpattern='/testws'
    </endpoint></endpoints>
    I tried to access and check the web service using:
    http://servername:port/testws/testws
    The first testws is contextroot named and the second testws is url pattern, which was exactly like what you mentioned but I got "404 Not Found" error.
    By the way, using the same ear to deploy to Windows Sun ONE App. Server 7 env. and then using the same url, I can access the web service. I am wondering if there is any special for deploying Web Service on Unix Sun ONE app. Server 7 env. or I missed something?
    I hope I can hear from you soon.
    Thank you again,
    Jackie

  • Jsf error on Sun ONE v9

    I have a small app developed with jsf 1.1 spec. When I deployed this on Sun ONE V9.0 , the following is the error.
    Can't parse configuration file: jar:file:/C:/Sun/SDK/lib/jsf-impl.jar!/com/sun/faces/jsf-ri-runtime.xml: Error at line 3 column 14: jar:file:/C:/Sun/SDK/lib/jsf-impl.jar!/com/sun/faces/jsf-ri-runtime.xml<Line 3, Column 14>: XML-20149: (Error) Element 'faces-config' used but not declared.
         at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1587)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:413)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4760)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:817)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
         at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1479)
         at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1143)
         at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:171)
         at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:275)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:954)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:941)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:448)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
         at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:296)
         at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:203)
         at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:285)
         at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:119)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:541)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:585)
         at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:719)
         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:597)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:353)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
         at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
         at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
         at $Proxy1.invoke(Unknown Source)
         at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
         at com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:133)
         at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:517)
         at java.lang.Thread.run(Thread.java:619)My faces-config.xml is v1.1. any ideas ?
    Thanks

    Hi Frank,
    A couple of things to cross check.
    1) Check the package structure of the war file. And cross check with the format given by SUN at
    http://docs.sun.com/source/816-7150-10/dwdeploy.html#69868
    2) Give more detail logs, and it is available at <deployed server instance>/logs/server.log.
    3) Deploy the war file without running the verifier, and see what is the output.
    If it wont help send the war file to me.
    Thanks,
    -Parsu

  • How to deploy a WAR file to Sun One Portal Server

    Would someone please tell me the instruction of how to deploy a WAR file to Sun One Portal Server 6.2. Thank you.

    I would advise against this. We tried that and it totally hosed the server.xml file and took our staging portal server down.
    I have no idea what was "in" the server.xml or other files, but trying to deploy a .war file using the WS admin interface hosed portal server's settings.

  • HELP PLEASE: Tomcat 3 - Sun ONE Migration Problems

    Hi everybody. We are new Sun One users. We are trying unsuccessfully to migrate our tomcat application to this environment. in order to deploy it we have created a WAR file from the Netbeans Ide and we are trying to load it into Sun One AS... but it seems there is something wrong with the process becouse we don't have access to the defined jdbc resources. Any help would be very apreciated... and please, excuse my English.
    Javier Moreno

    Thanks a lot of for your fast answer, but we haven't don't too much progress...
    dbping shows a message about "java.lang.NoSuchMethodException: setdataSourceName"
    wich probably means mysql driver isn't fully implemented. anyway i will try
    to describe the steps we make to create de pool hoping you will be able to
    help us...
    That's what we do:
         - first, we create a Connection pool:
              name -> MySQLPool
              database vendor -> Other
              datasource class -> com.mysql.jdbc.jdbc2.optional.MysqlDataSource
    serverName -> localhost
    portNumber -> 3306
    user -> test
    password -> test
    databasename -> jdbc:mysql://localhost/pol
    datasourcename -> pol
         - then, we define the resource:
              jndi name -> jdbc/jdbc-pol01
              pool name -> MySQLPool
              data source enabled -> true
         - in the web.xml of the application we got (just before /webapp):
              <resource-ref>
              <description>DB Connection</description>
              <res-ref-name>jdbc/jdbc-pol01</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
    </resource-ref>
         - and we obtain the connection with a chunk of code like this:
    ctx = new InitialContext();
    dsName = "java:comp/env/jdbc/jdbc-pol01";
    ds = (javax.sql.DataSource) ctx.lookup(dsName);
    con = ds.getConnection();
    If we don't write the resource-ref element at web.xml it fails at the lookup
    step (not finding the resource). but when we add the element the appserver
    claims "Error loading new module in virtual server: javax.naming.InvalidNameException: Real jndi name cannot beempty for jdbc/jdbc-polds.
    We don't know what to do and the death line is comming here fast... any help
    would be very much apreciated.          
    Thanks in advance, good karma.
    jv

  • "Cannot find FacesContext" deploying to Sun ONE Web Server 6.1

    I got this when trying to
    deploy to Sun ONE Web Server 6.1:
    [29/Sep/2004:15:16:15] failure ( 1512): for host 127.0.0.1 trying to GET /test/Page1.jsp, service-j2ee reports: StandardWrapperValve[jsp]: WEB2792: Servlet.service() for servlet jsp threw exception
    javax.servlet.ServletException: Cannot find FacesContext
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
         at jsps.Page1_jsp._jspService(_Page1_jsp.java:1131)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:667)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:447)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:363)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
    ----- Root Cause -----
    javax.servlet.jsp.JspException: Cannot find FacesContext
         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:399)
         at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:105)
         at jsps.Page1_jsp._jspService(_Page1_jsp.java:63)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:667)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:447)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:363)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
    I already deploy successfully to Tomcat 5 and (of course) PE 8. The common denominator with the same problem on OC4J is that both servers are j2ee 1.3 (even if Sun One runs with JVM 1.4).
    I copy the jstl 1.0 jars to some directory and enter such directory in the classpath suffix of JVM.
    Do Im missing something?
    TIA

    Hello,
    Try the following:
    After deploying the WAR file, by hand, add a sun-web.xml file to
    the deployed path in WEB-INF and make sure classloader delegate is set to false.
    <class-loader delegate="false"/>
    Now the bundled libs will be considered first.
    (After building the project, see a sample sun-web.xml
    in the build/WEB-INF folder - change Project view to Filesystem
    view, by right-click on the Project top-level node in the Project
    Navigator)
    You may need to include JSF jars in the WAR file by
    modifying the JSF Support library reference (mounted
    by default in the Project Navigator) by enabling all
    libraries for deployment)
    John
    JSC QA

  • Problem deploying war created in Sun Java Studio Enterprise 8

    I have, with some help from this forum, converted a portlet application from the Sun Java Studio Enterprise 7 environment to the Sun Java
    Studio Enterprise 8 environment. This portlet application runs in SJSE 8 now but fails when I pdeploy it to the portal server (Portal Server 6
    2005 Q1). The old war created from SJSE 6 does work. The code is identical. The war files are slightly different.
    On deployment I get:
    [DEBUG] Getting Jar File from war...
    [DEBUG] Getting Portlet DD as Stream...
    [DEBUG] Creating DPProviders...
    [DEBUG] Updating the Portlet Application...
    [DEBUG] Adding Providers to DP...
    [DEBUG] Adding provider: provider=__Portlet__timetableEnt8.Timetable
    [DEBUG] Creating DPProvider...
    [DEBUG] Checking for duplicate name: name=__Portlet__timetableEnt8.Timetable
    [DEBUG] Validating modified DP doc...
    [DEBUG] Storing the DP...
    Done Updating Display Profile! Deploying War File to Web Container...
    SUCCESS.But in the logs I see:
    [#|2006-04-04T13:09:58.112-0400|SEVERE|sun-appserver-ee8.1|javax.enterprise.system.container.web|_ThreadID=10;|WebModule
    [/portlet]Error configuring application listener of class
    com.sun.portal.container.portlet.impl.PortletContainerContextListenerImpl
    java.lang.ClassNotFoundException: com.sun.portal.container.portlet.impl.PortletContainerContextListenerImpl
            at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1447)
            at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1228)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3958)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4525)
            at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
            at org.apache.catalina.core.StandardHost.start(StandardHost.java:833)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
            at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:483)
            at org.apache.catalina.startup.Embedded.start(Embedded.java:894)
            at com.sun.enterprise.web.WebContainer.start(WebContainer.java:688)
            at com.sun.enterprise.web.HttpServiceWebContainer.startInstance(HttpServiceWebContainer.java:889)
            at com.sun.enterprise.web.HttpServiceWebContainerLifecycle.onStartup(HttpServiceWebContainerLifecycle.java:50)
            at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
            at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
            at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    |#]
    [#|2006-04-04T13:09:58.114-0400|SEVERE|sun-appserver-ee8.1|tomcat.server./portlet.Context|_ThreadID=10;|
    Skipped installing application listeners due to previous error(s)|#]
    [#|2006-04-04T13:09:58.114-0400|SEVERE|sun-appserver-ee8.1|tomcat.server./portlet.Context|_ThreadID=10;|
    Error listenerStart|#]
    [#|2006-04-04T13:09:58.115-0400|SEVERE|sun-appserver-ee8.1|tomcat.server./portlet.Context|_ThreadID=10;|
    Context startup failed due to previous errors|#]When I look in the create "New Portlet Channel..." in the am console my application appears in the list but when I create a channel based on it, the whole desktop crashes with this error:
    [#|2006-04-03T11:39:41.699-0400|SEVERE|sun-appserver-ee8.1|javax.enterprise.system.container.web|_ThreadID=16;|
    StandardWrapperValve[desktopServlet]: Servlet.service() for servlet desktopServlet threw exception
    java.lang.IllegalStateException: getWriter() has already been called for this response
         at org.apache.coyote.tomcat5.CoyoteResponse.getOutputStream(CoyoteResponse.java:588)
         at org.apache.coyote.tomcat5.CoyoteResponseFacade.getOutputStream(CoyoteResponseFacade.java:166)
         at com.sun.portal.desktop.DesktopServlet.getWriter(DesktopServlet.java:444)
         at com.sun.portal.desktop.DesktopServlet.service(DesktopServlet.java:328)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:221)
         at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2072)
    |#]When I remove my custom channel the desktop renders normally.
    As I mentioned before, the war created with 7 did not cause this and the application behaved normally.
    Any insight would be appreciated.
    I am going to look at the diff between the two wars.
    Thanks,
    Allan

    I have the same problem, how do yuo resolve that?
    Edited by: 864937 on Jun 9, 2011 1:43 PM

  • .War file size too large on Sun One WebServer 6.1

    We are using Sun One Web Server 6.1. I am trying to deploy a .war file thru the admin interface, and it fails due to the .war file being too large (over 10 megs). I am new to this server and have been looking around to see if there is a config setting somewhere I can modify, but I can't find anything.
    Can anyone tell me if I can change the max size, and if so where?
    Thanks very much.

    Try this:
    Go to $SERVER_ROOT/bin/https/webapps/admin-app/WEB-INF/web.xml file and make a backup copy. Edit this file and in the servlet webappdeploy, insert an init param named maxUploadSize with a value in bytes specifying the maximum upload size. Example:
    <init-param>
    <param-name>maxUploadSize</param-name>
    <param-value>20000000</param-value>
    </init-param>
    Let us know how it goes.
    Thanks
    Manish

  • Remote Deployment W/O installing SUN One AS.

    Hi,
    I am trying to deploy an archive using wsdeploy.bat command. For this I need to have SUN One AS installed on my localmachine. Is it possible to issue the wsdeploy.bat command W/O installing the SUN One AS on my localmachine or I can copy only the needed jars (from the wsdeploy.bat) and issue the command.
    Thanks.
    Cheers,
    Vivek James.

    Because wsdeploy runs on a local server it is unlikely that you'll run it without a local installation. What you'll need to do is telnet to the box where the server is and proceed to call wsdeploy.bat. In order for this to work you have to ftp the EAR, WAR or whatever you want to deploy beforehand to the server filesystem. Maven uses Ant anyway so you guys could use the ant telnet task and the ant ftp task. Maven could just calls these from a maven.xml or from a plugin. We build a customised maven plugin to deploy portlet applications from any workstation to an integration server that follows the same process. It was OK.
    Cheers.

  • Web Service deployment on Sun One 7

    Hi,
    I'm using Netbeans 5.5 and have built a web service that targets tomcat 5.5, J2EE 1.4 and source level 1.5.
    The Service runs very well in the IDE.
    Now, the company's Web Server is Sun One 7.0 and I'm trying to deploy to this server unsuccessfully. I moved all the built files from the IDE to the Sun One 7 folders and i get the following exception on startup.
    Can anyone help please?
    Thanks.
    P.S (Do I have to install JWSDP somewhere? I see it mentioned here and there in the forum)
    Error:
    server has been shutdown
    Sun Java System Web Server 7.0-Technology-Preview-3 B09/13/2006 13:07
    info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.5.0_08] from [Sun Microsystems Inc.]
    info: WSSERVLET12: JAX-WS context listener initializing
    info: wsdl cannot be found from DD or annotation. Will generate and publish a new WSDL for SEI endpoints.
    failure: WSSERVLET11: failed to parse runtime descriptor: javax.xml.ws.WebServiceException: java.lang.ClassCastException: com.sun.xml.xwss.SystemHandlerDelegateFactory
    javax.xml.ws.WebServiceException: java.lang.ClassCastException: com.sun.xml.xwss.SystemHandlerDelegateFactory
    at com.sun.xml.ws.spi.runtime.SystemHandlerDelegateFactory.getFactory(SystemHandlerDelegateFactory.java:129)
    at com.sun.xml.ws.binding.soap.SOAPBindingImpl.setupSystemHandlerDelegate(SOAPBindingImpl.java:214)
    at com.sun.xml.ws.binding.soap.SOAPBindingImpl.<init>(SOAPBindingImpl.java:66)
    at com.sun.xml.ws.binding.BindingImpl.getBinding(BindingImpl.java:185)
    at com.sun.xml.ws.transport.http.servlet.RuntimeEndpointInfoParser.parseEndpoints(RuntimeEndpointInfoParser.java:108)
    at com.sun.xml.ws.transport.http.servlet.RuntimeEndpointInfoParser.parse(RuntimeEndpointInfoParser.java:66)
    at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:110)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4171)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4697)
    at com.sun.webserver.connector.nsapi.WebModule.start(WebModule.java:170)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1089)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:838)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1089)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:514)
    at org.apache.catalina.startup.Embedded.start(Embedded.java:917)
    at com.sun.enterprise.web.PwcWebContainer.onStartup(PwcWebContainer.java:47)
    at com.sun.webserver.connector.nsapi.WebContainer.start(WebContainer.java:464)
    at com.sun.webserver.init.J2EERunner.confPostInit(J2EERunner.java:292)
    Caused by: java.lang.ClassCastException: com.sun.xml.xwss.SystemHandlerDelegateFactory
    at com.sun.xml.ws.spi.runtime.SystemHandlerDelegateFactory.getFactory(SystemHandlerDelegateFactory.java:123)
    ... 17 more
    failure: WebModule[]PWC1275: Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener
    WSSERVLET11: failed to parse runtime descriptor: javax.xml.ws.WebServiceException: java.lang.ClassCastException: com.sun.xml.xwss.SystemHandlerDelegateFactory
    at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:128)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4171)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4697)
    at com.sun.webserver.connector.nsapi.WebModule.start(WebModule.java:170)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1089)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:838)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1089)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:514)
    at org.apache.catalina.startup.Embedded.start(Embedded.java:917)
    at com.sun.enterprise.web.PwcWebContainer.onStartup(PwcWebContainer.java:47)
    at com.sun.webserver.connector.nsapi.WebContainer.start(WebContainer.java:464)
    at com.sun.webserver.init.J2EERunner.confPostInit(J2EERunner.java:292)
    Caused by: javax.xml.ws.WebServiceException: java.lang.ClassCastException: com.sun.xml.xwss.SystemHandlerDelegateFactory
    at com.sun.xml.ws.spi.runtime.SystemHandlerDelegateFactory.getFactory(SystemHandlerDelegateFactory.java:129)
    at com.sun.xml.ws.binding.soap.SOAPBindingImpl.setupSystemHandlerDelegate(SOAPBindingImpl.java:214)
    at com.sun.xml.ws.binding.soap.SOAPBindingImpl.<init>(SOAPBindingImpl.java:66)
    at com.sun.xml.ws.binding.BindingImpl.getBinding(BindingImpl.java:185)
    at com.sun.xml.ws.transport.http.servlet.RuntimeEndpointInfoParser.parseEndpoints(RuntimeEndpointInfoParser.java:108)
    at com.sun.xml.ws.transport.http.servlet.RuntimeEndpointInfoParser.parse(RuntimeEndpointInfoParser.java:66)
    at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:110)
    ... 11 more
    Caused by: java.lang.ClassCastException: com.sun.xml.xwss.SystemHandlerDelegateFactory
    at com.sun.xml.ws.spi.runtime.SystemHandlerDelegateFactory.getFactory(SystemHandlerDelegateFactory.java:123)
    ... 17 more
    failure: PWC1306: Context startup failed due to previous errors
    failure: Null component com.sun.web-1:type=JspMonitor,name=jsp,WebModule=//wws/,J2EEApplication=none,J2EEServer=none
    info: HTTP3072: http-listener-1: http://si-gln:8500 ready to accept requests
    info: CORE3274: successful server startup

    Did you got the solution for the issue you had?

Maybe you are looking for