facebook

migration existing project

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #198722 Reply

    elyas
    Member

    Hello,

    I am trying to migrate my existing project to my eclipse. For all my jsp’s i get following error.

    Exception during execution: String index out of range: -43 – java.lang.StringIndexOutOfBoundsException: String index out of range: -43
    at java.lang.String.substring(Unknown Source)
    at java.lang.String.substring(Unknown Source)
    at de.bb.bje.eclipse.IncrementalJspBuilder.compile(Unknown Source)
    at de.bb.bje.eclipse.IncrementalJspBuilder.visit(Unknown Source)
    at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
    at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:50)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:76)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
    at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:119)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:60)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:82)
    at de.bb.bje.eclipse.IncrementalJspBuilder.buildProject(Unknown Source)
    at de.bb.bje.eclipse.IncrementalJspBuilder.fullBuild(Unknown Source)
    at de.bb.bje.eclipse.IncrementalJspBuilder.build(Unknown Source)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:427)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:889)
    at org.eclipse.core.runtime.Platform.run(Platform.java:413)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:125)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:181)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:191)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:151)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:889)
    at org.eclipse.core.runtime.Platform.run(Platform.java:413)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:165)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:243)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:212)
    at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:181)
    at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:174)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)

    I did right click the context menu and did Recompile All JSPs..No luck..problem persists..

    Following are the details.

    operating system – windows XP

    Eclipse version and build id – Version: 2.1.0 Build id: 200303272130

    – Was Eclipse freshly installed for MyEclipse? No

    – If not, was it upgraded to its current version using the update manager? No

    – Are any other external plugins installed? No

    -What MyEclipse version – 2.6.2

    What JDK version are you using to run Eclipse? (java -version) 1.3.1_02

    What steps did you take that resulted in the issue?
    Had existing j2ee project say C:\hp\jboss\server\default\deploy\hpovact.sar\activator.war
    I am creating a new webproject in myeclipse using
    project name – activator
    location – C:\hp\jboss\server\default\deploy\hpovact.sar\activator.war
    WebRootfolder-C:\hp\jboss\server\default\deploy\hpovact.sar\activator.war
    context root – activator

    After theses steps myeclipse shows the above mentioned error for all jsps.

    Regards,
    Elyas

    #198731

    Scott Anderson
    Participant

    Elyas,

    Could you try running Eclipse with a newer JDK? Some of the old 1.3.1 JDK’s had several bugs that have since been fixed and if memory serves this looks like one of them. To run Eclipse with a different VM, open the alias you’re using to launch Eclipse and add the following option to eclipse.exe:
    -vm <path_to_1.4.2_jdk_dir>\bin\java2.exe

    When you relaunch Eclipse, recompile your JSP’s and see if this solves the problem. Please let us know what you find.

    –Scott
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: migration existing project

You must be logged in to post in the forum log in