[
http://jira.jboss.com/jira/browse/JBIDE-124?page=all ]
Pete Bennett updated JBIDE-124:
-------------------------------
Workaround Description:
When using the Eclipse package builder, make sure that you do not specify a leading
'/' when you are specifying the prefix for the packaging.
i.e. map /QuizShowPortlet/resources/WEB-INF > WEB-INF **NOT** /WEB-INF
If you do the later then an entry is created in the JAR file called '/' which is
what causes the issue with hot deployment (even in versions as recent as that bundled with
JBoss Portal 2.6 alpha), if you do the former this entry is not present.
See
http://jira.jboss.com/jira/browse/JBCOMMON-17 for more details.
Workaround: [Workaround Exists]
Hotdeployment fails with StringIndexOutOfBounds Exception
---------------------------------------------------------
Key: JBIDE-124
URL:
http://jira.jboss.com/jira/browse/JBIDE-124
Project: JBoss IDE
Issue Type: Bug
Environment: Windows XP, Sun JDK 1.4.2_05
Reporter: larswunderlich
Attachments: jarutils.patch
Deploying the sample application as described in JBoss IDE documentation 1.3.0 with 1.4.0
plugin fails with the following error. This happens in every configuration (default as
well as all). I don't know how to solve the bug, the exception does not provide any
further information what's going on.
The EAR file structure, as well as the WAR and EJB structure seems just fine.
18:43:28,986 INFO [Server] JBoss (MX MicroKernel) [4.0.1 (build: CVSTag=JBoss_4_0_1
date=200412230944)] Started in 22s:753ms
18:43:48,574 INFO [EARDeployer] Init J2EE application:
file:/D:/jboss-4.0.1/server/default/deploy/FiboApp.ear
18:43:48,824 ERROR [Tomcat5] Problem in init
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:444)
at org.jboss.util.file.JarUtils.unjar(JarUtils.java:252)
at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:262)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:848)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy8.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
18:43:48,844 ERROR [MainDeployer] Could not initialise deployment:
file:/D:/jboss-4.0.1/server/default/deploy/FiboApp.ear
org.jboss.deployment.DeploymentException: String index out of range: 0; - nested
throwable: (java.lang.StringIndexOutOfBoundsException: String index out of range: 0)
at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:312)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:848)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy8.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:444)
at org.jboss.util.file.JarUtils.unjar(JarUtils.java:252)
at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:262)
... 22 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira