This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 50610 - Deployment error, when "Run Project"
Summary: Deployment error, when "Run Project"
Status: RESOLVED DUPLICATE of bug 50410
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-19 12:34 UTC by yyamazaki
Modified: 2004-10-19 16:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yyamazaki 2004-10-19 12:34:22 UTC
Web application does not run by "Run project".

Error message in Deployment Progress Monitor:
Deployment error: String index out of range: -1
See the message.log file for detail.

Message in Output Window.

init:...seems ok.
deps-jar:...semms ok.
Created dir: ...seems ok.
compile:...seems ok.
compile-jsps:...seems ok.
run-deploy:...seems ok.

Deployment error: String index out of range: -1. 
See the messages.log file for details.
/home/yyamazaki/development/nbsample/TomcatServletExample/nbproject/build-impl.xml:278:
org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment$DeploymentException:
Deployment error: String index out of range: -1. 
See the messages.log file for details.
BUILD FAILED (total time: 0 seconds)

Error in message.log:
INFORMATIONAL *********** Exception occurred
************ at 5:32 PM on Oct 19, 2004
java.lang.StringIndexOutOfBoundsException: String
index out of range: -1
        at
java.lang.String.substring(String.java:1768)
        at
java.lang.String.substring(String.java:1735)
        at
org.netbeans.modules.tomcat5.TomcatManagerImpl.list(TomcatManagerImpl.java:324)
        at
org.netbeans.modules.tomcat5.TomcatManager.modules(TomcatManager.java:753)
        at
org.netbeans.modules.tomcat5.TomcatManager.getAvailableModules(TomcatManager.java:587)
        at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.getAvailableTMIDsMap(TargetServer.java:275)
        at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.checkUndeployForSharedReferences(TargetServer.java:242)
        at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.checkUndeployForSameReferences(TargetServer.java:192)
        at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.processLastTargetModules(TargetServer.java:294)
        at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.init(TargetServer.java:110)
        at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:518)
[catch] at
org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:98)
        at
org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:56)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at
org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.Target.execute(Target.java:341)
        at
org.apache.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:216)
        at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:236)
        at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
Comment 1 David Konecny 2004-10-19 13:14:09 UTC
Passing to web, please reassign.
Comment 2 Sherold Dev 2004-10-19 13:51:10 UTC
Marking as a duplicate of issue 50410.

*** This issue has been marked as a duplicate of 50410 ***