facebook

Tomcat 5.0.12, Eclipse 3.0.M3, Myeclipse 3.6.2 problem.

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #199035 Reply

    First, I’m running Mac OS X 1.2.6, with the latest release of JDK 1.4.1.

    The installation worked fine.

    I used the web project converter without problem, and I have a single project, a myeclipse web project, without errors.

    I’ve enabled tomcat 5 in the preferences, and set it’s home and base directories to the install of tomcat 5 (parent of the conf and webapp dirs).

    When I try to add a deployment project however things stop working. I select my project by name from the dropdown fine. I can choose “add”, and I select “tomcat 5,” and “exploded archive”. However The deploy location is listed as “INVALID” in a non-editable field. I see no place to edit this, and again my home and base dirs for tomcat 5 are correctly set to their installation.

    I’m also able to start and stop the server without a problem, but of course, my webapp isn’t visible to the app server.

    Great work by the way. I see a TON of improvement in this release, and am very excited about using this tool. Scott, really appreciate your attentiveness and careful, kind replies to this list. This may be my first post, but I’ve read lots of yours 🙂

    Stu

    #199043 Reply

    Scott Anderson
    Participant

    Stu,

    I can choose “add”, and I select “tomcat 5,” and “exploded archive”. However The deploy location is listed as “INVALID” in a non-editable field.

    The exploded deployment directory location for Tomcat5 is in <Tomcat5>/webapps. From the error I’m guessing that this directory either doesn’t exist in your installation or it isn’t writable given your login permissions. Could you verify both of these? If both of these check out OK then you should check the Eclipse log file at <eclipse>/.metadata/.log and see what the exception stack says.

    Great work by the way. I see a TON of improvement in this release

    Thanks, we’re trying. 🙂

    Scott, really appreciate your attentiveness and careful, kind replies to this list. This may be my first post, but I’ve read lots of yours 🙂

    Thank you very much. Actually, just telling me that you read my posts probably implies that you also search the forums too. That’s something I definately like to encourage as it keeps my workload a little more managable.

    –Scott
    MyEclipse Support

    #199052 Reply

    When I get home tonight I’ll check all of the things you suggested, and send you the log info if that isn’t the problem.

    Yup, I read through a bunch of posts, checked the FAQ, etc. Lots of good info there, just didn’t find anything on this particular problem.

    Thanks for the typical, lightning fast response Scott.

    Stu

    #199077 Reply

    Scott, the permissions in my tomcat dir look ok. They’re owned by my user, and the webapps dir is present. Here’s the listings:

    [stu-powerbook:jakarta/tomcat/5.0.12] sturobertson% ls -l
    total 24
    -rwxr-xr-x 1 sturober staff 4635 Sep 15 19:22 LICENSE
    -rwxr-xr-x 1 sturober staff 8028 Sep 15 19:22 RELEASE-NOTES
    -rwxr-xr-x 1 sturober staff 5881 Sep 15 19:22 RUNNING.txt
    drwxr-xr-x 31 sturober staff 1054 Sep 15 19:22 bin
    drwxr-xr-x 5 sturober staff 170 Sep 15 19:22 common
    drwxr-xr-x 9 sturober staff 306 Oct 7 00:37 conf
    -rw-r–r– 1 sturober staff 0 Oct 7 21:51 for_scott.txt
    drwxr-xr-x 5 sturober staff 170 Oct 7 00:34 logs
    drwxr-xr-x 5 sturober staff 170 Sep 15 19:22 server
    drwxr-xr-x 4 sturober staff 136 Sep 15 19:22 shared
    drwxr-xr-x 2 sturober staff 68 Sep 15 19:22 temp
    drwxr-xr-x 6 sturober staff 204 Sep 15 19:22 webapps
    drwxr-xr-x 3 sturober staff 102 Oct 7 00:34 work
    [stu-powerbook:jakarta/tomcat/5.0.12] sturobertson% echo $USER
    sturobertson

    The .log info contains the following… Note that the create EAR project wizard isn’t working for me too. I don’t see anything related to the failing tomcat 5 install.

    !ENTRY org.eclipse.ui 4 0 Oct 07, 2003 00:20:07.921
    !MESSAGE java.lang.ClassCastException
    !STACK 0
    java.lang.ClassCastException
    at org.eclipse.ui.internal.Workbench.updateActiveWorkbenchWindowMenuMana
    ger(Workbench.java:491)
    at org.eclipse.ui.internal.Workbench$10.windowDeactivated(Workbench.java
    :333)
    at org.eclipse.ui.internal.Workbench.fireWindowDeactivated(Workbench.jav
    a:850)
    at org.eclipse.ui.internal.WorkbenchWindow$12.shellDeactivated(Workbench
    Window.java:1937)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
    163)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1027)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2180)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1878)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2036)
    at org.eclipse.ui.internal.Workbench.run(Workbench.java:2019)
    at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoa
    der.java:858)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:295)
    at org.eclipse.core.launcher.Main.run(Main.java:751)
    at org.eclipse.core.launcher.Main.main(Main.java:587)
    !ENTRY org.eclipse.core.runtime 4 2 Oct 07, 2003 00:59:58.185
    !MESSAGE Plug-in “com.genuitec.eclipse.j2eedt.core” was unable to instantiate cl
    ass “com.genuitec.eclipse.j2eedt.ui.wizard.NewEARProjectWizard”.
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.j2eedt.ui.wizard.NewJ2EEProjectDetailsWizardPage
    .<C4><81>(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.wizard.NewJ2EEProjectDetailsWizardPage
    .setProjectGroupEnabled(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.wizard.NewJ2EEProjectDetailsWithSpecWi
    zardPage.<C4><98>(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.wizard.NewJ2EEProjectDetailsWithSpecWi
    zardPage.<C4><81>(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.wizard.NewJ2EEProjectDetailsWizardPage
    .<C4><82>(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.wizard.NewJ2EEProjectDetailsWizardPage
    .<C4><8A>(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.wizard.NewEARMainProjectWizardPage$B.d
    ialogFieldChanged(Unknown Source)
    at org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField.dialogFi
    eldChanged(DialogField.java:67)
    at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.dial
    ogFieldChanged(ListDialogField.java:471)
    at org.eclipse.jdt.internal.ui.wizards.dialogfields.CheckedListDialogFie
    ld.dialogFieldChanged(CheckedListDialogField.java:106)
    at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.setE
    lements(ListDialogField.java:547)
    at com.genuitec.eclipse.j2eedt.ui.wizard.NewEARMainProjectWizardPage.<in
    it>(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.wizard.NewEARProjectWizard.<init>(Unkn
    own Source)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    …….
    <<< bunch more org.eclipse stuff and other stacktraces just the same (tried a few times) >>>

    !ENTRY org.eclipse.ui 4 4 Oct 07, 2003 01:17:03.547
    !MESSAGE Unhandled exception caught in event loop.
    !ENTRY org.eclipse.ui 4 0 Oct 07, 2003 01:17:03.555
    !MESSAGE java.lang.ClassCastException
    !STACK 0
    java.lang.ClassCastException
    at org.eclipse.ui.internal.Workbench.updateActiveWorkbenchWindowMenuMana
    ger(Workbench.java:491)
    at org.eclipse.ui.internal.Workbench$10.windowDeactivated(Workbench.java
    :333)
    at org.eclipse.ui.internal.Workbench.fireWindowDeactivated(Workbench.jav
    a:850)
    at org.eclipse.ui.internal.WorkbenchWindow$12.shellDeactivated(Workbench
    Window.java:1937)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
    163)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1027)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2180)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1878)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2036)
    at org.eclipse.ui.internal.Workbench.run(Workbench.java:2019)
    …more eclipse elements in the stacktrace.

    Nothing stands out as linked to the INVALID location problem. I did a tail -f and watched the log, and the setting up of the deployment, which fails, doesn’t generate anything new in the .log file.

    Anyway, let me know if there’s anything else that would be helpful.

    Stu

    #199083 Reply

    Scott Anderson
    Participant

    Stu,

    In all honesty, this looks like a bad installation of either Eclipse or MyEclipse. When you installed Eclipse did you strictly follow all of the instructions given on the Eclipse download site related to using the right browser to download and correct version of StuffIt to uncompress the archive? How many plugin directories are there in your Eclipse installation that begin with org.eclipse.pde.*? When you open the Install / Update perspective, are any errors shown associated with the MyEclipse feature or its subfeatures?

    Please shutdown Eclipse and delete the log file then rerun any problematic tasks to see if the errors are different.

    –Scott
    MyEclipse Support

    #199084 Reply

    I did check the update manager’s configuration, and myeclipse and all of the listed subcomponents were listed as installed and ok. No errors shown at least. Maybe I missed something during the installation though. I remember being a bit confused because I thought the readme at the tail end of the installer said to launch myeclipse from a myeclipse icon in the myeclipse directory, but I couldn’t find one (just two subdirectories there, one for plugins and one for something else…computer’s not in front of me). So I launched eclipse normally and the myelipse perspective was available.

    It’s a fresh install of eclipse, so I think I’ll start over again from scratch and try again, this time taking notes for you if something seems odd. I’ll get back to you tonight.

    Thanks again Scott.

    Stu

    #199101 Reply

    Scott Anderson
    Participant

    Stu,

    I thought the readme at the tail end of the installer said to launch myeclipse from a myeclipse icon in the myeclipse directory, but I couldn’t find one

    You have a right to be a bit confused here. On the Mac, there is no additional icon installed. You should just use your normal Eclipse icon instead.

    We also really haven’t checked your full configuration. Could you post responses to all the questions that are in the ‘Posting Guidelines’ announement in this forum? That usually leads me down the path to the right thing.

    By the way, if you’re using MyEclipse 2.6.2 / Eclipse 2.1.1 please be sure you launch them with JDK 1.3.1, not 1.4.1. Eclipse 2.1.1 does not function properly with JDK 1.4.1 on the Mac. To check the setting, look down under the Eclipse.app directory for the .plist file. I think it’s Eclipse.plist. Anyway, it’s an XML file and will contain which JDK is used to start Eclipse. Please be sure it’s 1.3.1 for Eclipse 2.1.1.

    –Scott
    MyEclipse Support

    #199134 Reply

    Hi Scott.

    It worked! Did a complete install from scratch of everything. I’m not sure what I did differently other than being very careful to follow instructions.

    I’m pretty excited about myeclipse at this point. The server functionality is works, and is just what I was hoping it would be. Minor detail: when I start tomcat prefer not to have to navigate to a submenu in the Run/Stop Servers button. The JSP editor is fantastic, providing what I care about: coloration and tld-driven code completion for tag attributes. Bravo!

    Still exploring the tool, and will post other things I find later. I use WSAD 5.1 during the day, so it’s interesting to compare. This appears to be a major leap in web dev usability over the stock eclipse.

    Some obvervations and answers to your questions follow, although the former are not longer a concern for me, they might be helpful to you nonetheless.

    *OS X 10.2.8.
    *Eclipse 3.0M3
    *Fresh install. Myeclipse installed just after downloading and starting once.
    *No other plugins.
    *Myeclipse 3.6.2
    *JDK 1.4.1, latest update from apple. Used to launch eclipse and app server
    *Symptoms noted above. Running Tomcat 5.0.12 (which starts up normally outside of eclipse).

    A few observations about the installer:

    * A link to install instructions is presented on screen 1, but not copy/pasteable, and the URL is monstrous. I couldn’t find this link elsewhere.
    * Screen 3 says the eclipse intall dir “should” be called “eclipse.” Must it be? Is it ok to rename it?
    * My eclipse dir doesn’t have a file called .eclipseproject, which the install refers to. No biggie, just a little confusing.

    Thanks again Scott.

    #199150 Reply

    Scott Anderson
    Participant

    Stu,

    Glad to hear you’re up, running and exploring now.

    A link to install instructions is presented on screen 1, but not copy/pasteable, and the URL is monstrous. I couldn’t find this link elsewhere.

    You’re right and we’ve definately heard this one before. It should be fixed in the next installer.

    Screen 3 says the eclipse intall dir “should” be called “eclipse.” Must it be? Is it ok to rename it?

    It doesn’t have to be, but in the distribution you get from Eclipse.org it is named ‘eclipse’. So, after you install Eclipse, the directory ‘should’ be called eclipse. You may rename it, if you feel the need.

    My eclipse dir doesn’t have a file called .eclipseproject, which the install refers to. No biggie, just a little confusing.

    Are you positive? Try a terminal window and use ‘ls -al’. I think you’ll find it’s there since it is required by the install specs for all Eclipse-based products.

    Thanks also for following up with your installation configuration. With luck it will help others with similar questions.

    –Scott
    MyEclipse Support

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Tomcat 5.0.12, Eclipse 3.0.M3, Myeclipse 3.6.2 problem.

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