WL Bug: StringIndexOutOfBoundsException when deploying war

When deploying a war file in WLS 6.1 SP2 I get below exception. This seems
to be a WL bug caused by a line in WebAppHelper.resolveManifestName s4 =
s4.substring(0, s4.length() - 1); There is no check if s4.length() is 0.
Is there a fix included in a later service pack?
####<Apr 29, 2002 12:12:56 PM EDT> <Info> <HTTP> <nykcorsun03> <myserver>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <system> <>
<101053> <[HTTP myserver] Loading web app: si>
####<Apr 29, 2002 12:12:56 PM EDT> <Info> <HTTP> <nykcorsun03> <myserver>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <system> <>
<101059> <[myserver] Loading si from WAR file:
/export/home/lenzb01/bea/./config/devel/applications/.wlnotdelete/wl_comp316
2.war>
####<Apr 29, 2002 12:12:56 PM EDT> <Info> <HTTP> <nykcorsun03> <myserver>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <system> <>
<101031> <[WebAppServletContext(2728330,si,/si)] extracting classfiles to
/export/home/lenzb01/bea/config/devel/applications/.wlnotdelete/WEB-INF/_tmp
warmyserver_myserver_si:>
####<Apr 29, 2002 12:12:56 PM EDT> <Debug> <HTTP> <nykcorsun03> <myserver>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <system> <>
<101158> <Exception thrown while loading si:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1>
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1525)
at
weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java
:469)
at
weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:1
77)
at
weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServl
etContext.java:3405)
at
weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletConte
xt.java:3376)
at
weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.jav
a:862)
at
weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.j
ava:815)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:163)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:329)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:144)
at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
76)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:636)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
21)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy36.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
t(WebServerMBean_CachingStub.java:1121)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:315)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:636)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
21)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
gurationMBeanImpl.java:491)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:361)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy13.addDeployment(Unknown Source)
at
weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBean
Impl.java:1516)
at
weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
java:895)
at
weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
java:847)
at
weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
onMBeanImpl.java:295)
at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
6)
at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
1)
at
weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
at $Proxy131.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanA
ttribute.java:92)
at
weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMB
eanAction.java:135)
at
weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:171)
at
weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
let.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
####<Apr 29, 2002 12:12:56 PM EDT> <Error> <J2EE> <nykcorsun03> <myserver>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <system> <>
<160001> <Error deploying application si: Could not load si>
####<Apr 29, 2002 12:12:56 PM EDT> <Info> <Management> <nykcorsun03>
<myserver> <ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'>
<system> <> <140009> <Configuration changes for domain saved to the
repository.>

Hi.
There are a couple of known issues like this for WLS 6.1 sp2. These will be
addressed in sp3 but sp3 won't be available for awhile yet. I recommend you
contact BEA support for a patch.
Regards,
Michael
Bernhard Lenz wrote:
I did some more research. When deploying a war weblogic goes through all the
jars deployed in the war's WEB-INF/lib directory.
It parses the CLASS-PATH entry of each jar's MANIFEST.MF.
If the CLASS-PATH references e.g. "." or a file that does not exists in the
WEB-INF/lib directory WL bombs out with a StringIndexOutOfBoundsException.
Can anybody tell me if that problem was fixed for WL6.1 in a SP later than
SP2? If not where do I have to report this bug?
Greetings
Bernie
"Bernhard Lenz" <[email protected]> wrote in message
news:[email protected]...
When deploying a war file in WLS 6.1 SP2 I get below exception. This seems
to be a WL bug caused by a line in WebAppHelper.resolveManifestName s4 =
s4.substring(0, s4.length() - 1); There is no check if s4.length() is 0.
Is there a fix included in a later service pack?
####<Apr 29, 2002 12:12:56 PM EDT> <Info> <HTTP> <nykcorsun03> <myserver>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <system> <>
<101053> <[HTTP myserver] Loading web app: si>
####<Apr 29, 2002 12:12:56 PM EDT> <Info> <HTTP> <nykcorsun03> <myserver>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <system> <>
<101059> <[myserver] Loading si from WAR file:
/export/home/lenzb01/bea/./config/devel/applications/.wlnotdelete/wl_comp316
2.war>
####<Apr 29, 2002 12:12:56 PM EDT> <Info> <HTTP> <nykcorsun03> <myserver>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <system> <>
<101031> <[WebAppServletContext(2728330,si,/si)] extracting classfiles to
/export/home/lenzb01/bea/config/devel/applications/.wlnotdelete/WEB-INF/_tmp
warmyserver_myserver_si:>
####<Apr 29, 2002 12:12:56 PM EDT> <Debug> <HTTP> <nykcorsun03> <myserver>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <system> <>
<101158> <Exception thrown while loading si:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1>
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1525)
at
weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java
:469)
at
weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:1
77)
at
weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServl
etContext.java:3405)
at
weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletConte
xt.java:3376)
at
weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.jav
a:862)
at
weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.j
ava:815)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:163)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:329)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:144)
at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
76)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:636)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
21)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:359)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy36.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
t(WebServerMBean_CachingStub.java:1121)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:315)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:636)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
21)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:359)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
gurationMBeanImpl.java:491)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:361)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy13.addDeployment(Unknown Source)
at
weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBean
Impl.java:1516)
at
weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
java:895)
at
weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
java:847)
at
weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
onMBeanImpl.java:295)
at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
6)
at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
1)
at
weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
at $Proxy131.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanA
ttribute.java:92)
at
weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMB
eanAction.java:135)
at
weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:171)
at
weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
let.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
####<Apr 29, 2002 12:12:56 PM EDT> <Error> <J2EE> <nykcorsun03> <myserver>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <system> <>
<160001> <Error deploying application si: Could not load si>
####<Apr 29, 2002 12:12:56 PM EDT> <Info> <Management> <nykcorsun03>
<myserver> <ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'>
<system> <> <140009> <Configuration changes for domain saved to the
repository.>
Michael Young
Developer Relations Engineer
BEA Support

Similar Messages

  • BUG - Error when deploying to 10.1.3 AS Preview 4 on Linux

    I am using JDeveloper 10.1.3 EA on a Windows machine and am deploying to Oracle Application Server 10g 10.1.3 Preview 4 on a Linux box. I'm deploying an ADF Struts web project that is having troubles displaying my sceens. When I try to view any one of my JSPs, I get this error:
    java.lang.NoSuchMethodError: oracle.adf.share.http.ServletADFContext.setVariableResolver(Ljava/lang/Object;)V
    at oracle.adf.share.http.ServletADFContext.initialize(ServletADFContext.java:222)
    at oracle.adf.share.http.ServletADFContext.initThreadContext(ServletADFContext.java:211)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:178)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 4].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:699)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 4].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:397)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 4].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:833)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 4].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:430)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 4].server.http.AJPRequestHandler.run(AJPRequestHandler.java:290)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 4].server.http.AJPRequestHandler.run(AJPRequestHandler.java:179)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:215)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:232)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$1000(ServerSocketAcceptHandler.java:35)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:819)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 4].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:534)
    Using a java decompiler, I've been able to locate the method setVariableResolver() in the ADFContext class which ServletADFContext.java extends. This can be found in the adfshare.jar. So I have no idea why the server can't find this method when I know it exists. I thought maybe I had an old adfshare.jar and so I replaced it everywhere I found it on the app server with the jar file that comes with JDev 10.1.3 EA. But this proved to be a dead end, as well as everything else I've tried. I've even tried reinstalling the app server. Has anyone else installed App Server 10.1.3 Preview 4 on a Linux box? Is there some qwerk that you found to get it working?
    Additionally I have created a very simple project with nothing but a JSP and it works. So I'm led to believe that there is some ADF JAR file that is not quite right. My ADF Struts web project worked using the same app server on Windows 2003. However I ran into a different problem with that: BUG - Connection pooling with 10g 10.1.3 Preview 4 App Server
    So we have decided to make the move to Linux but I can't get past this error. I have updated the ADF Runtime Libraries and I've swapped out the JDK and JRE with 1.5. Any help would be greatly appreciated.

    The adfshare.jar does not get included with my app. I've checked my WAR file and this JAR is not found there. I'm completely stumped at this point. Have you had success using Oracle App Server 10.1.3 Preview 4 on Linux?
    I have made some progress narrowing down where the error occurs. When I add data bindings to a JSP, the following code gets added to my web.xml:
       <filter>
         <filter-name>ADFBindingFilter</filter-name>
         <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
         <init-param>
           <param-name>encoding</param-name>
           <param-value>windows-1252</param-value>
         </init-param>
       </filter>
       <filter-mapping>
         <filter-name>ADFBindingFilter</filter-name>
         <url-pattern>*.jsp</url-pattern>
       </filter-mapping>
       <filter-mapping>
         <filter-name>ADFBindingFilter</filter-name>
         <url-pattern>*.jspx</url-pattern>
       </filter-mapping>
       <filter-mapping>
         <filter-name>ADFBindingFilter</filter-name>
         <servlet-name>action</servlet-name>
       </filter-mapping>
    If I delete this code out of my web.xml file, that error message goes away. The ADFBindingFilter class is also included in the error stacktrace. So I'm thinking that this class is the culprit. I'm convinced this is a BUG with Oracle ADF and Linux.
    Another idea perhaps is that the error occurs because I'm developing in JDeveloper on Windows and then deploying to an app server on Linux. My embedded server on Windows runs my app just fine. I have the same OS setup for JDev 10.1.2 and the app server 10.1.2 and I have no problems with that. But I really don't want to have to go back to 10.1.2.

  • Error when deploying war file into application server

    I wrote a web service in java using RAD and managed to check it using a web service client with no errors.
    However, after creating a war file and tried to deploy this into the Sun application server, the following can be seen at the application server console:
    Deploying application in domain failed; Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception ; requested operation cannot be completed Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception
    In the server.log file, the following appears:
    loyment|_ThreadID=13;|DPL5035:Error while running ejbc
    com.sun.enterprise.deployment.backend.IASDeploymentException: Fatal Error from EJB Compiler -- j axrpc compilation exception
    at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:206 )
    at com.sun.enterprise.deployment.WebBundleDescriptor.visit(WebBundleDescriptor.java:1101 )
    at com.sun.enterprise.deployment.Application.visit(Application.java:1346)
    at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.run(JaxRpcRICodegen.java:103)
    at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:785)
    at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:563)
    at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployModule(EJBCompiler.java:42 7)
    at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:213)
    at com.sun.enterprise.deployment.backend.ModuleDeployer.runEJBC(ModuleDeployer.java:967)
    at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java :193)
    at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.j ava:140)
    at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:146)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.ja va:71)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentS ervice.java:633)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService. java:188)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService. java:520)
    at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:143)
    at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:172)
    |#]
    [#|2007-11-14T11:21:10.083+0930|INFO|sun-appserver-ee8.1_02|javax.enterprise.system.tools.deploy ment|_ThreadID=13;|Total Deployment Time: 14145 msec, Total EJB Compiler Module Time: 0 msec, Po rtion spent EJB Compiling: 0%|#]
    [#|2007-11-14T11:21:10.116+0930|SEVERE|sun-appserver-ee8.1_02|javax.enterprise.system.tools.depl oyment|_ThreadID=13;|Exception occured in J2EEC Phase
    com.sun.enterprise.deployment.backend.IASDeploymentException: Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception
    at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:206 )
    at com.sun.enterprise.deployment.WebBundleDescriptor.visit(WebBundleDescriptor.java:1101 )
    at com.sun.enterprise.deployment.Application.visit(Application.java:1346)
    at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.run(JaxRpcRICodegen.java:103)
    at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:785)
    at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:563)
    at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployModule(EJBCompiler.java:42 7)
    at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:213)
    at com.sun.enterprise.deployment.backend.ModuleDeployer.runEJBC(ModuleDeployer.java:967)
    at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java :193)
    at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.j ava:140)
    at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:146)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.ja va:71)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentS ervice.java:633)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService. java:188)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService. java:520)
    at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:143)
    at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:172)
    |#]

    I got a similar error deploying to Weblogic with JBuilder 6 and it proved to be
    the Manifest.mf file inside war, which is very sensitive to CLASSPATH entry. Finally
    I used the file generated by JBuilder and it worked ...
    Stefan
    Frank Sun <[email protected]> wrote:
    Hi, this is Frank.
    I have a war file and want to deploy it. but somehow I got java.lang.StringIndexOutOfBoundsException:
    String index out of range: -1
    error
    Would anyone please help me?
    This war file is able to be deplyed using Tomcat 4.0.3.
    Please help.

  • StringIndexOutOfBoundsException when deploying exploded

    I'm trying to deploy an application by copying it into <domain>/applications.
    I've pasted the exception below. It mentions ManifestEntry issues. I don't understand this. I'm not deploying a .war, .ear or .jar file, so why is WebLogic complaining about manifests? Is it trying to deploy a .jar in /APP-INF/lib or <web-app>/WEB-INF/lib before it's fully copied into the auto-deploy directory?
    All help will be appreciated.
    - Laran
    <Dec 15, 2004 11:45:50 AM GMT-05:00> <Info> <WebLogicServer> <BEA-000377> <Start
    ing WebLogic Server with Java HotSpot(TM) Client VM Version 1.4.2-b28 from Sun M
    icrosystems Inc.>
    <Dec 15, 2004 11:45:51 AM GMT-05:00> <Info> <Configuration Management> <BEA-1500
    16> <This server is being started as the administration server.>
    <Dec 15, 2004 11:45:51 AM GMT-05:00> <Info> <Management> <BEA-141107> <Version:
    WebLogic Server 8.1 SP3 Tue Jun 29 23:11:19 PDT 2004 404973
    WebLogic XMLX Module 8.1 SP3 Tue Jun 29 23:11:19 PDT 2004 404973 >
    <Dec 15, 2004 11:45:51 AM GMT-05:00> <Notice> <Management> <BEA-140005> <Loading
    domain configuration from configuration repository at C:\bea\user_projects\doma
    ins\mydomain\.\config.xml.>
    <Dec 15, 2004 11:45:52 AM GMT-05:00> <Notice> <Log Management> <BEA-170019> <The
    server log file C:\bea\user_projects\domains\mydomain\myserver\myserver.log is
    opened. All server side log events will be written to this file.>
    <Dec 15, 2004 11:45:53 AM GMT-05:00> <Notice> <Security> <BEA-090082> <Security
    initializing using security realm myrealm.>
    <Dec 15, 2004 11:45:53 AM GMT-05:00> <Notice> <WebLogicServer> <BEA-000327> <Sta
    rting WebLogic Admin Server "myserver" for domain "mydomain">
    <Dec 15, 2004 11:45:56 AM GMT-05:00> <Notice> <WebLogicServer> <BEA-000331> <Sta
    rted WebLogic Admin Server "myserver" for domain "mydomain" running in Developme
    nt Mode>
    <Dec 15, 2004 11:45:56 AM GMT-05:00> <Notice> <WebLogicServer> <BEA-000360> <Ser
    ver started in RUNNING mode>
    <Dec 15, 2004 11:45:56 AM GMT-05:00> <Notice> <WebLogicServer> <BEA-000355> <Thr
    ead "ListenThread.Default" listening on port 7001, ip address *.*>
    <Dec 15, 2004 11:50:00 AM GMT-05:00> <Warning> <Deployer> <BEA-149004> <Failures
    were detected while initiating Deploy task for application dfaFinSys2.>
    <Dec 15, 2004 11:50:00 AM GMT-05:00> <Error> <Deployer> <BEA-149201> <Failed to
    complete the deployment task with ID 0 for the application dfaFinSys2.
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1444)
    at weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:171)
    at weblogic.utils.jars.Manifest.stream(Manifest.java:78)
    at weblogic.utils.classloaders.ExtractionHelper.resolveManifestName(Extr
    actionHelper.java:410)
    at weblogic.utils.classloaders.ExtractionHelper.extractClassFiles(Extrac
    tionHelper.java:238)
    at weblogic.utils.classloaders.LibDirClassFinder.<init>(LibDirClassFinde
    r.java:33)
    at weblogic.j2ee.J2EEApplicationContainer.getNewApplicationClassLoader(J
    2EEApplicationContainer.java:711)
    at weblogic.j2ee.J2EEApplicationContainer.access$300(J2EEApplicationCont
    ainer.java:182)
    at weblogic.j2ee.J2EEApplicationContainer$CLNode.<init>(J2EEApplicationC
    ontainer.java:4068)
    at weblogic.j2ee.J2EEApplicationContainer.initClassLoaderTree(J2EEApplic
    ationContainer.java:3425)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
    er.java:989)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.
    prepareContainer(SlaveDeployer.java:2444)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createCon
    tainer(SlaveDeployer.java:2394)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
    laveDeployer.java:2310)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
    veDeployer.java:866)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
    oyer.java:594)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
    loyer.java:508)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
    dler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    --------------- nested within: ------------------
    weblogic.management.ManagementException: - with nested exception:
    [java.lang.StringIndexOutOfBoundsException: String index out of range: -1]
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
    laveDeployer.java:2327)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
    veDeployer.java:866)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
    oyer.java:594)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
    loyer.java:508)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
    dler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >

    I'm trying to deploy an application by copying it into <domain>/applications.
    I've pasted the exception below. It mentions ManifestEntry issues. I don't understand this. I'm not deploying a .war, .ear or .jar file, so why is WebLogic complaining about manifests? Is it trying to deploy a .jar in /APP-INF/lib or <web-app>/WEB-INF/lib before it's fully copied into the auto-deploy directory?
    All help will be appreciated.
    - Laran
    <Dec 15, 2004 11:45:50 AM GMT-05:00> <Info> <WebLogicServer> <BEA-000377> <Start
    ing WebLogic Server with Java HotSpot(TM) Client VM Version 1.4.2-b28 from Sun M
    icrosystems Inc.>
    <Dec 15, 2004 11:45:51 AM GMT-05:00> <Info> <Configuration Management> <BEA-1500
    16> <This server is being started as the administration server.>
    <Dec 15, 2004 11:45:51 AM GMT-05:00> <Info> <Management> <BEA-141107> <Version:
    WebLogic Server 8.1 SP3 Tue Jun 29 23:11:19 PDT 2004 404973
    WebLogic XMLX Module 8.1 SP3 Tue Jun 29 23:11:19 PDT 2004 404973 >
    <Dec 15, 2004 11:45:51 AM GMT-05:00> <Notice> <Management> <BEA-140005> <Loading
    domain configuration from configuration repository at C:\bea\user_projects\doma
    ins\mydomain\.\config.xml.>
    <Dec 15, 2004 11:45:52 AM GMT-05:00> <Notice> <Log Management> <BEA-170019> <The
    server log file C:\bea\user_projects\domains\mydomain\myserver\myserver.log is
    opened. All server side log events will be written to this file.>
    <Dec 15, 2004 11:45:53 AM GMT-05:00> <Notice> <Security> <BEA-090082> <Security
    initializing using security realm myrealm.>
    <Dec 15, 2004 11:45:53 AM GMT-05:00> <Notice> <WebLogicServer> <BEA-000327> <Sta
    rting WebLogic Admin Server "myserver" for domain "mydomain">
    <Dec 15, 2004 11:45:56 AM GMT-05:00> <Notice> <WebLogicServer> <BEA-000331> <Sta
    rted WebLogic Admin Server "myserver" for domain "mydomain" running in Developme
    nt Mode>
    <Dec 15, 2004 11:45:56 AM GMT-05:00> <Notice> <WebLogicServer> <BEA-000360> <Ser
    ver started in RUNNING mode>
    <Dec 15, 2004 11:45:56 AM GMT-05:00> <Notice> <WebLogicServer> <BEA-000355> <Thr
    ead "ListenThread.Default" listening on port 7001, ip address *.*>
    <Dec 15, 2004 11:50:00 AM GMT-05:00> <Warning> <Deployer> <BEA-149004> <Failures
    were detected while initiating Deploy task for application dfaFinSys2.>
    <Dec 15, 2004 11:50:00 AM GMT-05:00> <Error> <Deployer> <BEA-149201> <Failed to
    complete the deployment task with ID 0 for the application dfaFinSys2.
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1444)
    at weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:171)
    at weblogic.utils.jars.Manifest.stream(Manifest.java:78)
    at weblogic.utils.classloaders.ExtractionHelper.resolveManifestName(Extr
    actionHelper.java:410)
    at weblogic.utils.classloaders.ExtractionHelper.extractClassFiles(Extrac
    tionHelper.java:238)
    at weblogic.utils.classloaders.LibDirClassFinder.<init>(LibDirClassFinde
    r.java:33)
    at weblogic.j2ee.J2EEApplicationContainer.getNewApplicationClassLoader(J
    2EEApplicationContainer.java:711)
    at weblogic.j2ee.J2EEApplicationContainer.access$300(J2EEApplicationCont
    ainer.java:182)
    at weblogic.j2ee.J2EEApplicationContainer$CLNode.<init>(J2EEApplicationC
    ontainer.java:4068)
    at weblogic.j2ee.J2EEApplicationContainer.initClassLoaderTree(J2EEApplic
    ationContainer.java:3425)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
    er.java:989)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.
    prepareContainer(SlaveDeployer.java:2444)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createCon
    tainer(SlaveDeployer.java:2394)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
    laveDeployer.java:2310)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
    veDeployer.java:866)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
    oyer.java:594)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
    loyer.java:508)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
    dler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    --------------- nested within: ------------------
    weblogic.management.ManagementException: - with nested exception:
    [java.lang.StringIndexOutOfBoundsException: String index out of range: -1]
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
    laveDeployer.java:2327)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
    veDeployer.java:866)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
    oyer.java:594)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
    loyer.java:508)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
    dler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >

  • Tomcat error when deploying WAR file

    Hi
    I have written my first program using Creator 2. It runs with no problems when i use the sun appserver. however I wanted it to run on tomcat and having deplowed the war file on tomcat when i run the program I get the following error message which i will add at the end of the message.
    Is this because tomcat is using java \jre1.5.0_06 library and Creator 2 deploy using j2ee1.4 ?
    ERROR MESSAGE:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    root cause
    java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:123)
         com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.

    hi Marco
    Thanks for the advice. I have made some progress but still getting an error when i deploy on tomcat but not on the bundeled server. I will add the error at the end and hope you may be able to directly me again. There is another Q regarding the page you adviced me to look at . It suggests in step 2 copying two .jar files but fails to indicate copying them to which directory. Can u help?
    ERROR:
    Cannot read USERS database: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'users' at line 1)
    Thanks
    zak

  • Error when deploying war file

    Hi,
    I develop application using visual web pack + netbeans, it work fine with tomcat but when i want deploy it in our prod environment (Oracle ias) i have the following error:
    Base Exception:
    java.rmi.RemoteException
    deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Unknown assembly root-tag attribute: version. deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Unknown assembly root-tag attribute: version
    the web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"><context-param><param-name>javax.faces.STATE_SAVING_METHOD</param-name><param-value>server</param-value></context-param><context-param><param-name>javax.faces.CONFIG_FILES</param-name><param-value>/WEB-INF/navigation.xml,/WEB-INF/managed-beans.xml</param-value></context-param><context-param><param-name>com.sun.faces.validateXml</param-name><param-value>true</param-value></context-param><context-param><param-name>com.sun.faces.verifyObjects</param-name><param-value>false</param-value></context-param><filter><filter-name>UploadFilter</filter-name><filter-class>com.sun.rave.web.ui.util.UploadFilter</filter-class><init-param><description>
    The maximum allowed upload size in bytes. If this is set
    to a negative value, there is no maximum. The default
    value is 1000000.
    </description><param-name>maxSize</param-name><param-value>1000000</param-value></init-param><init-param><description>
    The size (in bytes) of an uploaded file which, if it is
    exceeded, will cause the file to be written directly to
    disk instead of stored in memory. Files smaller than or
    equal to this size will be stored in memory. The default
    value is 4096.
    </description><param-name>sizeThreshold</param-name><param-value>4096</param-value></init-param></filter><filter-mapping><filter-name>UploadFilter</filter-name><servlet-name>Faces Servlet</servlet-name></filter-mapping><servlet><servlet-name>Faces Servlet</servlet-name><servlet-class>javax.faces.webapp.FacesServlet</servlet-class><load-on-startup> 1 </load-on-startup></servlet><servlet><servlet-name>ExceptionHandlerServlet</servlet-name><servlet-class>com.sun.errorhandler.ExceptionHandler</servlet-class><init-param><param-name>errorHost</param-name><param-value>localhost</param-value></init-param><init-param><param-name>errorPort</param-name><param-value>24444</param-value></init-param></servlet><servlet><servlet-name>ThemeServlet</servlet-name><servlet-class>com.sun.rave.web.ui.theme.ThemeServlet</servlet-class></servlet><servlet-mapping><servlet-name>Faces Servlet</servlet-name><url-pattern>/faces/*</url-pattern></servlet-mapping><servlet-mapping><servlet-name>ExceptionHandlerServlet</servlet-name><url-pattern>/error/ExceptionHandler</url-pattern></servlet-mapping><servlet-mapping><servlet-name>ThemeServlet</servlet-name><url-pattern>/theme/*</url-pattern></servlet-mapping><welcome-file-list><welcome-file>faces/Page4.jsp</welcome-file></welcome-file-list><error-page><exception-type>javax.servlet.ServletException</exception-type><location>/error/ExceptionHandler</location></error-page><error-page><exception-type>java.io.IOException</exception-type><location>/error/ExceptionHandler</location></error-page><error-page><exception-type>javax.faces.FacesException</exception-type><location>/error/ExceptionHandler</location></error-page><error-page><exception-type>com.sun.rave.web.ui.appbase.ApplicationException</exception-type><location>/error/ExceptionHandler</location></error-page><jsp-config><jsp-property-group><url-pattern>*.jspf</url-pattern><is-xml>true</is-xml></jsp-property-group></jsp-config>
    <resource-ref>
    <description>Creator generated DataSource Reference</description>
    <res-ref-name>jdbc/dataSource32</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    thanks for your help
    Walid

    Quick and short answer:
    Oracle AS/OC4J 10.1.2.x only supports J2EE 1.3
    Oracle AS/OC4J 10.1.3.x supports J2EE 1.4
    --olaf                                                                                                                                                                                                                                                               

  • Error 160078 when deploying WAR file after EAR file

    I am tetsing an application which does automatic deployment to WebLogic 8.1 running on Windows XP using ejbgen tool through Ant.
    The following deployment sequence produces an error. I deploy an EAR file with EJB JAR and WAR file inside. It deploys correctly. I then undeploy the EAR file. This also works. Next I deploy a WAR file using the same deployment name as for the EAR file (the 'name' parameter of weblogic.Deployer command). This deployment fails. If I restart WebLogic server, the same deployment of the WAR file succeeds.
    Any idea what goes wrong?
    Thank you.
    Michael
    Here is the command used for deployment (as reported by Ant):
    [java] 'weblogic.Deployer'
    [java] '-debug'
    [java] '-verbose'
    [java] '-noexit'
    [java] '-remote'
    [java] '-upload'
    [java] '-name'
    [java] 'discoverytestproject'
    [java] '-source'
    [java] 'C:/Projects/Jetson/Toolbox/Tests/Projects/DiscoveryTestProject/build/staging/discoverytestproject-ws.war'
    [java] '-targets'
    [java] 'myserver'
    [java] '-adminurl'
    [java] 't3://10.10.0.123:7001'
    [java] '-user'
    [java] 'system'
    [java] '-password'
    [java] 'password'
    [java] '-deploy'
    This is the error message:
    <Oct 13, 2006 3:04:21 PM EDT> <Warning> <J2EE> <BEA-160018> <ComponentMBean: Nam
    e = discoverytestproject-ws, Type = WebAppComponentConfig - Targeted on this ser
    ver but, no corresponding module found in application descriptor. The component
    mbean is being Ignored.>
    <Oct 13, 2006 3:04:21 PM EDT> <Error> <J2EE> <BEA-160078> <None of the modules o
    f application 'discoverytestproject' in 'META-INF/application.xml' are configure
    d in the 'Application' entry in 'config.xml' to be targetted to 'myserver'.>
    <Oct 13, 2006 3:04:21 PM EDT> <Warning> <Deployer> <BEA-149004> <Failures were d
    etected while initiating Deploy task for application discoverytestproject.>
    <Oct 13, 2006 3:04:21 PM EDT> <Error> <Deployer> <BEA-149201> <Failed to complet
    e the deployment task with ID 6 for the application discoverytestproject.
    weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: [J2EE:160078]None of the mod
    ules of application 'discoverytestproject' in 'META-INF/application.xml' are con
    figured in the 'Application' entry in 'config.xml' to be targetted to 'myserver'
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createCon
    tainer(SlaveDeployer.java:2556)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
    laveDeployer.java:2474)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
    veDeployer.java:798)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
    oyer.java:507)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
    loyer.java:465)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
    dler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    --------------- nested within: ------------------
    weblogic.management.ManagementException: - with nested exception:
    [weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: [J2EE:160078]None of the mod
    ules of application 'discoverytestproject' in 'META-INF/application.xml' are con
    figured in the 'Application' entry in 'config.xml' to be targetted to 'myserver'
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
    laveDeployer.java:2491)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
    veDeployer.java:798)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
    oyer.java:507)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
    loyer.java:465)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
    dler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >

    I am tetsing an application which does automatic deployment to WebLogic 8.1 running on Windows XP using ejbgen tool through Ant.
    The following deployment sequence produces an error. I deploy an EAR file with EJB JAR and WAR file inside. It deploys correctly. I then undeploy the EAR file. This also works. Next I deploy a WAR file using the same deployment name as for the EAR file (the 'name' parameter of weblogic.Deployer command). This deployment fails. If I restart WebLogic server, the same deployment of the WAR file succeeds.
    Any idea what goes wrong?
    Thank you.
    Michael
    Here is the command used for deployment (as reported by Ant):
    [java] 'weblogic.Deployer'
    [java] '-debug'
    [java] '-verbose'
    [java] '-noexit'
    [java] '-remote'
    [java] '-upload'
    [java] '-name'
    [java] 'discoverytestproject'
    [java] '-source'
    [java] 'C:/Projects/Jetson/Toolbox/Tests/Projects/DiscoveryTestProject/build/staging/discoverytestproject-ws.war'
    [java] '-targets'
    [java] 'myserver'
    [java] '-adminurl'
    [java] 't3://10.10.0.123:7001'
    [java] '-user'
    [java] 'system'
    [java] '-password'
    [java] 'password'
    [java] '-deploy'
    This is the error message:
    <Oct 13, 2006 3:04:21 PM EDT> <Warning> <J2EE> <BEA-160018> <ComponentMBean: Nam
    e = discoverytestproject-ws, Type = WebAppComponentConfig - Targeted on this ser
    ver but, no corresponding module found in application descriptor. The component
    mbean is being Ignored.>
    <Oct 13, 2006 3:04:21 PM EDT> <Error> <J2EE> <BEA-160078> <None of the modules o
    f application 'discoverytestproject' in 'META-INF/application.xml' are configure
    d in the 'Application' entry in 'config.xml' to be targetted to 'myserver'.>
    <Oct 13, 2006 3:04:21 PM EDT> <Warning> <Deployer> <BEA-149004> <Failures were d
    etected while initiating Deploy task for application discoverytestproject.>
    <Oct 13, 2006 3:04:21 PM EDT> <Error> <Deployer> <BEA-149201> <Failed to complet
    e the deployment task with ID 6 for the application discoverytestproject.
    weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: [J2EE:160078]None of the mod
    ules of application 'discoverytestproject' in 'META-INF/application.xml' are con
    figured in the 'Application' entry in 'config.xml' to be targetted to 'myserver'
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createCon
    tainer(SlaveDeployer.java:2556)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
    laveDeployer.java:2474)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
    veDeployer.java:798)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
    oyer.java:507)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
    loyer.java:465)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
    dler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    --------------- nested within: ------------------
    weblogic.management.ManagementException: - with nested exception:
    [weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: [J2EE:160078]None of the mod
    ules of application 'discoverytestproject' in 'META-INF/application.xml' are con
    figured in the 'Application' entry in 'config.xml' to be targetted to 'myserver'
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
    laveDeployer.java:2491)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
    veDeployer.java:798)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
    oyer.java:507)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
    loyer.java:465)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
    dler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >

  • Error message when deploying war file to sun web server 6.1

    i've been trying to deploy an application developed locally in tomcat to a local install of sun web server 6.1, and can't seem to get it to work. the error message i am getting now is:
    [05/Dec/2008:12:44:08] config ( 1640): for host xxx.xxx.xxx.xx trying to GET /cart/index.jsp, handle-processed reports: HTTP2205: The request method is not applicable to the requested resource.
    but that is the only error showing up. i've found some other forum topics involving memory issues (not the case here) and mime.type issues (not the case here), but nothing where this is the only error message showing up.
    any ideas? anyone?

    I deployed the application using a WAR file I created and the Server Manager.
    I've been able to get a JSP running in the $INSTALL_DIR/docs directory (database connectivity, result set printing, session data storing) but not outside of there.
    I switched to "finest" error reporting, but that isn't really helping much either.
    I even deployed one of the sample WAR files that came with the installation (webapps-simple.war), and it failed too, the error message I got was:
    [09/Dec/2008:10:35:51] fine ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, ntrans-j2ee reports: mapped uri "/jsp/num/numguess.jsp" in context "/simple" to resource "jsp"
    [09/Dec/2008:10:35:51] fine ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: context = StandardEngine[null].StandardHost[https-arlll3n4244.arcds.com].StandardContext[simple]
    [09/Dec/2008:10:35:51] fine ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: contextPath = /simple
    [09/Dec/2008:10:35:51] fine ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: wrapper = null
    [09/Dec/2008:10:35:51] fine ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: servletPath =
    [09/Dec/2008:10:35:51] fine ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: pathInfo = null
    [09/Dec/2008:10:35:51] finer ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: Authenticator[simple]: Security checking request GET /simple/jsp/num/numguess.jsp
    [09/Dec/2008:10:35:51] finer ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: Authenticator[simple]: Checking constraint 'SecurityConstraint[Protected Area]' against GET /jsp/num/numguess.jsp --> false
    [09/Dec/2008:10:35:51] finer ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: Authenticator[simple]: No applicable constraint located
    [09/Dec/2008:10:35:51] finer ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: Authenticator[simple]: Not subject to any constraint
    [09/Dec/2008:10:35:51] finer ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: WebModule[simple]: Mapping contextPath='/simple' with requestURI='/simple/jsp/num/numguess.jsp' and relativeURI='/jsp/num/numguess.jsp'
    [09/Dec/2008:10:35:51] finer ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: WebModule[simple]: Decoded relativeURI='/jsp/num/numguess.jsp'
    [09/Dec/2008:10:35:51] finer ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: WebModule[simple]: Trying exact match
    [09/Dec/2008:10:35:51] finer ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: WebModule[simple]: Trying prefix match
    [09/Dec/2008:10:35:51] finer ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: WebModule[simple]: Trying extension match
    [09/Dec/2008:10:35:51] finer ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: WebModule[simple]: Mapped to servlet 'jsp' with servlet path '/jsp/num/numguess.jsp' and path info 'null' and update=true
    [09/Dec/2008:10:35:51] info ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: WEB2798: [cart/] ServletContext.log(): JspEngine --> /jsp/num/numguess.jsp
    [09/Dec/2008:10:35:51] info ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: WEB2798: [cart/] ServletContext.log(): ServletPath: /jsp/num/numguess.jsp
    [09/Dec/2008:10:35:51] info ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: WEB2798: [cart/] ServletContext.log(): PathInfo: null
    [09/Dec/2008:10:35:51] info ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: WEB2798: [cart/] ServletContext.log(): RealPath: C:\Sun\WebServer6.1\https-ARLLL3N4244.arcds.com\webapps\https-ARLLL3N4244.arcds.com\simple\jsp\num\numguess.jsp
    [09/Dec/2008:10:35:51] info ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: WEB2798: [cart/] ServletContext.log(): RequestURI: /simple/jsp/num/numguess.jsp
    [09/Dec/2008:10:35:51] info ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: WEB2798: [cart/] ServletContext.log(): QueryString: null
    [09/Dec/2008:10:35:51] failure ( 5384): for host 192.168.112.96 trying to GET /simple/jsp/num/numguess.jsp, service-j2ee reports: StandardWrapperValve[jsp]: WEB2792: Servlet.service() for servlet jsp threw exception
    java.lang.IllegalArgumentException: WEB3446: setAttribute: Non-serializable attribute
         at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1280)
         at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)
         at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)
         at org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.java:271)
         at jsps.jsp._num._numguess_jsp._jspService(_numguess_jsp.java:81)
         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:688)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:460)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:376)
         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:218)
         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:157)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:579)

  • Exception when deploying wars

    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1525)
         at
    weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java:469)
         at
    weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:234)
    Can anyone shed any light as to why this happens? I will include the
    full stack trace below.
    The exception ie very cryptic - I have no idea wtf is wrong.
    Thanks in advance,
    Scott
    ####<19/02/2002 17:34:34> <Info> <HTTP> <GROVER> <myserver> <Application
    Manager Thread> <> <> <101053> <[HTTP myserver] Loading web app: jira1>
    ####<19/02/2002 17:34:34> <Info> <HTTP> <GROVER> <myserver> <Application
    Manager Thread> <> <> <101060> <[myserver] Loading "jira1" from
    directory: ".\config\mydomain\applications\jira1">
    ####<19/02/2002 17:34:34> <Info> <HTTP> <GROVER> <myserver> <Application
    Manager Thread> <> <> <101160> <Deployment descriptor is malformed,
    check against the DTD: org.xml.sax.SAXParseException: XML version "2.0"
    is not supported..>
    ####<19/02/2002 17:34:34> <Warning> <J2EE> <GROVER> <myserver>
    <Application Manager Thread> <> <> <160007> <You are running WebLogic
    Server with J2EE 1.3 features enabled. The implementation of specific
    J2EE 1.3 features (EJB 2.0, JSP 1.2, Servlet 2.3, and J2EE Connector
    Architecture 1.0) in BEA WebLogic Server 6.1 is of a non-final version
    of the appropriate specification. It is subject to change in future
    releases once the specification becomes finalized. This may cause
    application code developed for BEA WebLogic Server 6.1 that uses the new
    features of J2EE 1.3 to be incompatible with the J2EE 1.3 platform
    supported in future releases of BEA WebLogic Server.>
    ####<19/02/2002 17:34:34> <Info> <HTTP> <GROVER> <myserver> <Application
    Manager Thread> <> <> <101160> <Deployment descriptor is malformed,
    check against the DTD: org.xml.sax.SAXParseException: The content of
    element type "web-app" must match
    "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)"..>
    ####<19/02/2002 17:34:34> <Info> <HTTP> <GROVER> <myserver> <Application
    Manager Thread> <> <> <101031>
    <[WebAppServletContext(5334830,jira1,/jira1)] extracting classfiles to
    C:\dev\tools\bea\wlserver6.1\.\config\mydomain\applications\jira1\WEB-INF\_tmp_war_myserver_myserver_jira1:>
    ####<19/02/2002 17:34:34> <Debug> <HTTP> <GROVER> <myserver>
    <Application Manager Thread> <> <> <101158> <Exception thrown while
    loading jira1: java.lang.StringIndexOutOfBoundsException: String index
    out of range: -1>
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1525)
         at
    weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java:469)
         at
    weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:234)
         at
    weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3407)
         at
    weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3376)
         at
    weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:862)
         at
    weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:815)
         at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
         at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
         at weblogic.j2ee.Application.addComponent(Application.java:163)
         at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
         at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
         at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
         at
    weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
         at java.lang.reflect.Method.invoke(Native Method)
         at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
         at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
         at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
         at $Proxy29.addWebDeployment(Unknown Source)
         at
    weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1121)
         at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315)
         at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
         at java.lang.reflect.Method.invoke(Native Method)
         at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
         at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
         at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at
    weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:491)
         at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:361)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at
    weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:984)
         at
    weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:971)
         at
    weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.java:956)
         at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:648)
         at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
         at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
         at $Proxy11.addTarget(Unknown Source)
         at
    weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(ApplicationManager.java:867)
         at
    weblogic.management.mbeans.custom.ApplicationManager.addApplication(ApplicationManager.java:966)
         at
    weblogic.management.mbeans.custom.ApplicationManager.addApplication(ApplicationManager.java:886)
         at
    weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:802)
         at
    weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:733)
         at
    weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206)
         at
    weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1050)
    ####<19/02/2002 17:34:34> <Error> <J2EE> <GROVER> <myserver>
    <Application Manager Thread> <> <> <160001> <Error deploying application
    jira1: Could not load jira1>
    ####<19/02/2002 17:34:34> <Error> <Management> <GROVER> <myserver>
    <Application Manager Thread> <> <> <141042> <Error deploying application
    .\config\mydomain\applications\jira1:
    java.lang.reflect.UndeclaredThrowableException>

    If you have a manifest file packaged in your application, check to make sure that
    all entries in the manifest class path entry actually exist.
    You should also check the manifest classpath of any JAR files in web-inf/lib to
    make sure they don't contain entries that don't exist.
    [email protected] wrote:
    java.lang.StringIndexOutOfBoundsException: String index out of range:
    -1
         at java.lang.String.substring(String.java:1525)
         at
    weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java:469)
         at
    weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:234)
    Can anyone shed any light as to why this happens? I will include the
    full stack trace below.
    The exception ie very cryptic - I have no idea wtf is wrong.
    Thanks in advance,
    Scott
    ####<19/02/2002 17:34:34> <Info> <HTTP> <GROVER> <myserver> <Application
    Manager Thread> <> <> <101053> <[HTTP myserver] Loading web app: jira1>
    ####<19/02/2002 17:34:34> <Info> <HTTP> <GROVER> <myserver> <Application
    Manager Thread> <> <> <101060> <[myserver] Loading "jira1" from
    directory: ".\config\mydomain\applications\jira1">
    ####<19/02/2002 17:34:34> <Info> <HTTP> <GROVER> <myserver> <Application
    Manager Thread> <> <> <101160> <Deployment descriptor is malformed,
    check against the DTD: org.xml.sax.SAXParseException: XML version "2.0"
    is not supported..>
    ####<19/02/2002 17:34:34> <Warning> <J2EE> <GROVER> <myserver>
    <Application Manager Thread> <> <> <160007> <You are running WebLogic
    Server with J2EE 1.3 features enabled. The implementation of specific
    J2EE 1.3 features (EJB 2.0, JSP 1.2, Servlet 2.3, and J2EE Connector
    Architecture 1.0) in BEA WebLogic Server 6.1 is of a non-final version
    of the appropriate specification. It is subject to change in future
    releases once the specification becomes finalized. This may cause
    application code developed for BEA WebLogic Server 6.1 that uses the
    new
    features of J2EE 1.3 to be incompatible with the J2EE 1.3 platform
    supported in future releases of BEA WebLogic Server.>
    ####<19/02/2002 17:34:34> <Info> <HTTP> <GROVER> <myserver> <Application
    Manager Thread> <> <> <101160> <Deployment descriptor is malformed,
    check against the DTD: org.xml.sax.SAXParseException: The content of
    element type "web-app" must match
    "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)"..>
    ####<19/02/2002 17:34:34> <Info> <HTTP> <GROVER> <myserver> <Application
    Manager Thread> <> <> <101031>
    <[WebAppServletContext(5334830,jira1,/jira1)] extracting classfiles to
    C:\dev\tools\bea\wlserver6.1\.\config\mydomain\applications\jira1\WEB-INF\_tmp_war_myserver_myserver_jira1:>
    ####<19/02/2002 17:34:34> <Debug> <HTTP> <GROVER> <myserver>
    <Application Manager Thread> <> <> <101158> <Exception thrown while
    loading jira1: java.lang.StringIndexOutOfBoundsException: String index
    out of range: -1>
    java.lang.StringIndexOutOfBoundsException: String index out of range:
    -1
         at java.lang.String.substring(String.java:1525)
         at
    weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java:469)
         at
    weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:234)
         at
    weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3407)
         at
    weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3376)
         at
    weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:862)
         at
    weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:815)
         at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
         at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
         at weblogic.j2ee.Application.addComponent(Application.java:163)
         at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
         at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
         at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
         at
    weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
         at java.lang.reflect.Method.invoke(Native Method)
         at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
         at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
         at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
         at $Proxy29.addWebDeployment(Unknown Source)
         at
    weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1121)
         at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315)
         at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
         at java.lang.reflect.Method.invoke(Native Method)
         at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
         at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
         at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at
    weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:491)
         at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:361)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at
    weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:984)
         at
    weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:971)
         at
    weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.java:956)
         at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:648)
         at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
         at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
         at $Proxy11.addTarget(Unknown Source)
         at
    weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(ApplicationManager.java:867)
         at
    weblogic.management.mbeans.custom.ApplicationManager.addApplication(ApplicationManager.java:966)
         at
    weblogic.management.mbeans.custom.ApplicationManager.addApplication(ApplicationManager.java:886)
         at
    weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:802)
         at
    weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:733)
         at
    weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206)
         at
    weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1050)
    ####<19/02/2002 17:34:34> <Error> <J2EE> <GROVER> <myserver>
    <Application Manager Thread> <> <> <160001> <Error deploying application
    jira1: Could not load jira1>
    ####<19/02/2002 17:34:34> <Error> <Management> <GROVER> <myserver>
    <Application Manager Thread> <> <> <141042> <Error deploying application
    ..\config\mydomain\applications\jira1:
    java.lang.reflect.UndeclaredThrowableException>

  • Re: Exception when deploying wars

    this message is in continuation of the message described with the above subject on Tue Feb 19 14:11:25 PST 2002.
    the error I'm getting is similar to the error described. however my application works well with Weblogic 6.0 (sp2) but gives the error when I deploy it on Weblogic 6.1 (sp2)
    any help would be appreciated.
    thanks,
    Hary

    this message is in continuation of the message described with the above subject on Tue Feb 19 14:11:25 PST 2002.
    the error I'm getting is similar to the error described. however my application works well with Weblogic 6.0 (sp2) but gives the error when I deploy it on Weblogic 6.1 (sp2)
    any help would be appreciated.
    thanks,
    Hary

  • Deploying War File in OC4J

    Hi,
    I am a new bee to OC4J. I tried to deploy a war file OC4J server, which comes along with Jdeveloper release 10.1.3.
    Steps which I followed.
    1. Copied the war file to <10g-Jdev>\j2ee\home\applications\
    2. added <web-app application="testapp" name="testapp" root="/testapp" access-log="false"/> in <10g-Jdev>\j2ee\home\config\default-web-site.xml
    3. added <application name="testapp" path="../../home/applications/tesapp.war" parent="system" start="true" /> in <10g-Jdev>\j2ee\home\config\server.xml
    4. started the 0c4j using <10g-Jdev>\jdk\start_oc4j.bat
    I got following log
    Starting OC4J with command: "..\..\jdk\bin\java.exe" -jar oc4j.jar
    06/02/15 14:53:13 [SEVERE]: Error instantiating application at file:/X:/10g/j2ee/home/applications/webapp1.war: Unable to get ApplicationConfig for testapp : Unable to find/read file META-INF/application.xml in X:\10g\j2ee\home\applications\webapp1.war archive (META-INF/application.xml)
    2006-02-15 14:53:32.609 NOTIFICATION JMS Router is initiating ...
    2006-02-15 14:53:35.906 ERROR J2EE HTTP0004 Internal error raised tyring to instantiate web-application: testapp defined in web site OC4J 10g (10.1.3) Default Web Site. Application: testapp does not exist. Error creating Web application: testapp
    06/02/15 14:53:35 Oracle Containers for J2EE 10g (10.1.3.0.0) initialized
    06/02/15 14:58:03 Shutting down...
    Can anyone explain me wat should i do for deploying successfully.
    Thanks,
    Siva

    Hello,
    As a word of caution I would strongly recommend that you use proper deploy techniques when deploying WAR/EARs to OC4J (or any J2EE container). You should not be copying files into the applications directory and modifying xml files (even though it might be neccessary at times).
    Please try to follow good J2EE techiniques and write ANT scripts or batch files to do your deployment, its easy to do and reusable. Please also review the deployment guide to familiarise yourself with OC4J deployment tools.
    Thanks,
    Deepak

  • ClassCastException when deploying jsf war on Weblogic 10.3.2

    Hello everybody,
    We 're having an issue when deploying jsf war on Weblogic 10.3.2
    The war works fine on Tomcat 6.
    When deploying on Weblogic we got the following exception:
    java.lang.ClassCastException: weblogic.xml.jaxp.RegistryXMLReader cannot be cast to org.xml.sax.XMLReader
    I've already put <prefer-web-inf-classes>true</prefer-web-inf-classes> in weblogic.xml
    After "googling", people suggest to remove xml-apis jar from WEB-INF/lib, but doing so results in other exceptions.
    Is there any fix for this issue? Please help it's been more than a month that we are crawling in the dark with this error.
    Thanks in advance.

    Hello everybody,
    We 're having an issue when deploying jsf war on Weblogic 10.3.2
    The war works fine on Tomcat 6.
    When deploying on Weblogic we got the following exception:
    java.lang.ClassCastException: weblogic.xml.jaxp.RegistryXMLReader cannot be cast to org.xml.sax.XMLReader
    I've already put <prefer-web-inf-classes>true</prefer-web-inf-classes> in weblogic.xml
    After "googling", people suggest to remove xml-apis jar from WEB-INF/lib, but doing so results in other exceptions.
    Is there any fix for this issue? Please help it's been more than a month that we are crawling in the dark with this error.
    Thanks in advance.

  • Error when deploying ear with war module.

    Can somebody help me with a problem? This problem is realy strange.
    I have three projects: ordinary project (jar project), war project and ear project.
    The war project uses classes form jar project and it is a part of ear project.
    There is an abstract class in jar:
    public abstract class MyDataTable {
    public abstract String method1();
    public abstract String method2();
    //And some others abstract methods
    Class MyResultSetTable extends MyDataTable class:
    public class MyResultSetTable extends MyDataTable {
    private ResultSet rs;
    public MyResultSetTable(ResultSet resSet) {
    rs = resSet;
    //Implementation of abstract methods
    In jar there is another class MyDataPacket, which performs transformation between MyDataTable and XML document (Delphi data packet):
    public class MyDataPacket {
    public static String tableToXML(MyDataTable table) {/Implementation}
    public static MyDataTable xmlToTable(String xmlSource) {/Implementation}
    In war there is a simple Web service which interact with clients by means of the data packets:
    @WebService
    public class MyWebService {
    @WebMethod
    public String myMethod(){
    //Creating connection and opening ResultSet rs
    MyDataTable t = new MyResultSetTable(rs);
    return MyDataPacket.tableToXML(t);
    This war application belongs to Enterprise Application (ear project). I use Sun Java System
    Application Server Platform Edition 9.0_01 (build b02-p01). When I deploy ear into server an
    error occurs:
    Exception occured in J2EEC Phase
    java.lang.NoClassDefFoundError: jarSource/MyDataTable
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
    at java.lang.Class.privateGetPublicMethods(Class.java:2519)
    at java.lang.Class.getMethods(Class.java:1406)
    When I change abstract class MyDataTable on MyResultSetTable in static method
    tableToXML, the error disappears. I think that the problem is that I use abstract
    class in this method. Please, can somebody explanes me this situation.
    PS: Sorry for my bad English. I jast start to study this language.
    PSS: You can copy-past these classes for simple testing this misunderstanding:
    jar:
    public abstract class MyDataTable {
    public abstract String method1() throws Exception;
    public abstract String method2() throws Exception;
    public class MyResultSetTable extends MyDataTable{  
    public String method1() throws Exception {return "method1";}
    public String method2() throws Exception {return "method2";}
    public class MyDataPacket {
    public static String tableToXML(MyDataTable t) {return "tableToXML";}
    war:
    import jarSource.MyDataPacket;
    import jarSource.MyDataTable;
    import jarSource.MyResultSetTable;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    @WebService()
    public class MyView {
    @WebMethod
    public String myMethod1(){
    MyDataTable t = new MyResultSetTable();
    return MyDataPacket.tableToXML(t);
    ear: Adding war to ear.

    I beleive this is a classpath problem, namely the classespath does not exist for the .jar file when the .war is trying to access the files. I would think if the .jar file is in WEB-INF/classes in your .war your error would go away. If you are placing the .jar in the root of the .ear then you must set the classpath.

  • Struts2 webapp is not starting up when deployed as unexploded war file

    Whereas if I deploy as exploded war file it works just fine.
    I am seeing following error when deploying as unexploded war file. I am deploying in weblogic 10.3. Using struts 2 with Spring as object factory.
    'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1235449766296> <BEA-101165> <Could not load user defined filter in web.xml: org.apache.struts2.dispatcher.FilterDispatcher.
    Action class [logAction] not found - action - zip:C:/servers/bea10/user_projects/domains/ro_domain/servers/AdminServer/tmp/_WL_user/loginWeb/tlbxoe/war/WEB-INF/lib/_wl_cls_gen.jar!/struts.xml:60:60
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:374)
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:329)
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:429)
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)
    at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
    at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)
    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
    at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
    at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
    at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:329)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.FilterManager.loadFilter(FilterManager.java:95)
    Thanks in advance for your help.

    Post your question in WebLogic forum here:
    WebLogic Server - General

  • Error when deploying as ear, ok when deploying as war, why?

    Hello all,
    I have a strange problem with a JSF project that uses myfaces and shale. I'm using Netbeans 5.5, and all works fine when the web application is deployed independently as a war, but when deploy the full ear i have the following error:
    java.lang.NullPointerException
    at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:75)
    . I'm using a 'mock' application with no complex ejbs and jsps, so I discard a component problem. Someone have experimented this problem?
    Thanks in advance.

    Thanks vbk,
    I resolved 'partially' the problem not including the myfaces jars in the ear. So the application server uses the sun jsf implementation and all works fine. lamentably I don't know the answer, i suppose a class loading preference problem ... I any case, i would be interested if someone uses the myfaces implementation in the sun app server 9 (myfaces includes some interesting features). I proved the myfaces 1.1.3, 1.1.4 and 1.1.5 versions and all have the same problem.
    In relation with this same post, i found anohter problem: shale tiger annotations make jee5 annotations fail. I looked in the shale forums and seems this combination is incompatible. Someone use tiger annotations?
    Thanks.

Maybe you are looking for

  • How can I add social media icons to my email signature in thunderbird?

    Hi there, I have already a signature with my logo but I would also like to add some social media icons. Do you know how can I do that? Thanks K.

  • How can I increase the number of R3trans in the SHADOW_IMPORT_INC ?

    Hello , we have a problem with ehp installation .  The Prepare Phase for EHP4  have we start on monday . But we have closed development on Thursday and now the SHADOW_IMPORT_INC is to slow. How can I increase the number of R3trans in SHADOW_IMPORT__I

  • Days Before Password Expires

    Hi, Our customer would not like to make their users change ME login password. However, I don't know the valid range of "Days Before Password Expires" in system rule maintenance. Could anybody tell me the current specification? I wonder it maybe possi

  • Pages format that unfolds?

    For years I've been using Microsoft's Publisher to create a newsletter. It's one sheet of A4 paper printed on both sides and is folded twice so it can stand up. Fold 1 is horizontal, fold 2 is vertical (I have more material printed on the 'inside' bu

  • Does material status control MRP running?

    Hi experts May I just check if material status could conrol the MRP running?  LIke we setup some parts as Y0- obsolete. but we found it still could generate Pr or Plan order.... So does material status control the MRP running? Could we let obsolete p