facebook

JSP Context Root Problem

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

    – System Setup ——————————-
    Operating System and version: WinXP SP2
    Eclipse version: 3.0
    Eclipse build id: 200402122000
    Fresh Eclipse install (y/n): Y
    If not, was it upgraded to its current version using the update manager?
    Other installed external plugins:
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 8
    MyEclipse version: 3.7
    Eclipse JDK version: 1.4.2_01-b06
    Application Server JDK version: 1.4.2_01-b06
    Are there any exceptions in the Eclipse log file? No

    – Message Body ——————————-

    I am experiencing a strange problem in setting up context root of my application.

    Strange in the sense that it was working fine … till yesterday. I didn’t know what happened, when I removed (not Redeploy) and then deployed the application, the web context root has been changed from bpms to bpms\WEB-INF.

    I stoped WebLogic and used the approach given in the Notice in MyEclipse-Web properties without any success. I removed the application manually from the WebLogic console, the problem still persists.

    Also when I use external Ant build file to deploy it, it is working fine.

    Please help.

    #205483 Reply

    support-michael
    Keymaster

    1) Are you deploying a WebProject or an EnterpriseProject?

    2) How are you deploying, exploded or packaged archive?

    3) When you say context-root is changed do you mean the deployment location? For example a WebProject’s <web-root> contents are being copied to <myWLS>/applications/myWebApp/WEB-INF instead of 1 directory higher. Or is it some other problem?

    4) Lastly you can manually reset ME’s deployment state by removing the file <eclipse-install>/eclipse/.metadata/.plugins/com.genuitec.eclipse.ast.deploy.core/pref_store.ini. MyEclipse must be shutdown before deleting this file.

    #205649 Reply

    Thanks … meanwhile, I was doing it outside of Eclipse using Ant build and it was working fine. Now I decided to go for MyEclipse feature … So here my answer and a new question …

    1) Are you deploying a WebProject or an EnterpriseProject?
    A) WebProject … split directory sturture.

    2) How are you deploying, exploded or packaged archive?
    A) exploded

    3) When you say context-root is changed do you mean the deployment location? For example a WebProject’s <web-root> contents are being copied to <myWLS>/applications/myWebApp/WEB-INF instead of 1 directory higher. Or is it some other problem?
    A) No … it is some other problem.

    4) Lastly you can manually reset ME’s deployment state by removing the file <eclipse-install>/eclipse/.metadata/.plugins/com.genuitec.eclipse.ast.deploy.core/pref_store.ini. MyEclipse must be shutdown before deleting this file.
    A) I did this and the Context-Root problem solved! … thanks

    Now … as I was working with the Ant I had had my output folder to be <context-root>/build. So after resolving the context-root problem. I changed the output folder to be <context-root>/build for the projects properties. And started the build …

    I had a nasty surprise 😮 waiting for me … the eclipse has got shutdown … and I had the following message in the .log file.

    !SESSION Mar 29, 2004 09:22:58.888 ———————————————
    java.version=1.4.2_01
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    !ENTRY org.eclipse.osgi Mar 29, 2004 09:22:58.899
    !MESSAGE Bundle reference:file:d:/eclipse3M7/eclipse/plugins/org.eclipse.debug.ui_3.0.0 [19] was not resolved
    !ENTRY org.eclipse.osgi Mar 29, 2004 09:22:58.929
    !MESSAGE Bundle reference:file:d:/eclipse3M7/eclipse/plugins/org.eclipse.jdt.debug_3.0.0 [28] was not resolved
    !ENTRY org.eclipse.debug.ui 4 120 Mar 29, 2004 09:48:44.365
    !MESSAGE Error logged from Debug UI:
    !STACK 1
    org.eclipse.core.internal.resources.ResourceException: Marker id: 213 not found.
    at org.eclipse.core.internal.resources.Marker.checkInfo(Marker.java:55)
    at org.eclipse.core.internal.resources.Marker.getType(Marker.java:179)
    at org.eclipse.debug.internal.ui.views.breakpoints.BreakpointsSorter.compare(BreakpointsSorter.java:63)
    at org.eclipse.jface.viewers.TableViewer.indexForElement(TableViewer.java:337)
    at org.eclipse.jface.viewers.TableViewer.add(TableViewer.java:115)
    at org.eclipse.jface.viewers.TableViewer.add(TableViewer.java:134)
    at org.eclipse.debug.internal.ui.views.breakpoints.BreakpointsViewEventHandler$1.run(BreakpointsViewEventHandler.java:78)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:102)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2325)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2033)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1550)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:265)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:257)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:104)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
    at org.eclipse.core.launcher.Main.run(Main.java:742)
    at org.eclipse.core.launcher.Main.main(Main.java:581)
    !ENTRY org.eclipse.core.resources 4 376 Mar 29, 2004 09:48:44.525
    !MESSAGE Marker id: 213 not found.
    !ENTRY org.eclipse.ui 4 4 Mar 29, 2004 10:08:18.985
    !MESSAGE Invalid Menu Extension (Path is invalid): com.genuitec.myeclipse.webproject.action.strutsconvert
    !ENTRY org.eclipse.ui 4 4 Mar 29, 2004 10:08:20.598
    !MESSAGE Invalid Menu Extension (Path is invalid): com.genuitec.myeclipse.webproject.action.projectconvert
    !ENTRY org.eclipse.ui 4 4 Mar 29, 2004 10:27:31.575
    !MESSAGE Invalid Menu Extension (Path is invalid): com.genuitec.myeclipse.webproject.action.projectconvert
    !ENTRY org.eclipse.ui 4 4 Mar 29, 2004 10:28:43.525
    !MESSAGE Invalid Menu Extension (Path is invalid): com.genuitec.myeclipse.webproject.action.strutsconvert
    !ENTRY org.eclipse.ui 4 4 Mar 29, 2004 10:28:45.27
    !MESSAGE Invalid Menu Extension (Path is invalid): com.genuitec.myeclipse.webproject.action.projectconvert
    !SESSION Mar 29, 2004 11:46:00.149 ———————————————

    Please help.

    Thanks
    Special

    #205685 Reply

    support-michael
    Keymaster

    The stacktrace looks nasty. On some occasions we have seen Eclipse 3.0Mx experience startup problems manifested with a stacktrace similar to that you provided. Does the problem persist if you recycle MyEclipse?

    If yes, try this little experiment. With MyEclipse stopped, delete the directory <eclipse>/eclipse/.config/. Restart MyEclipse and see if the problem remains.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JSP Context Root Problem

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