facebook

Tomcat 5 – Append to library path issue

💡
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 Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #226629 Reply

    tclerot
    Member

    Hi,

    I found a bug when setting ‘Append to Library Path’ in
    Window\Preferences\My Eclipse\Application Servers\Tomcat 5\Paths

    When you are setting a windows path containing a space like for instance ‘C:\Program Files\eclipse\workspace\lambda\bin’, MyEclipse is not able to handle properly this space and when running Tomcat 5 server from MyEclipse workspace you have the following errors:

    Could not find the main class. Program will exit.

    And then

    A configuration error occurred during startup. Please verify the preference field with the prompt: java.lang.NoClassDefFoundError: Files\eclipse\workspace\lambda\bin Exception in thread “main”

    Modifying directly this optional library path in C:\Program Files\eclipse\workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\com.genuitec.eclipse.easie.tomcat5.prefs by the equivalent MS-DOS path (C:\Progra~1\…) solved the problem.

    Eclipse Platform:
    Version: 3.1.0
    Build id: 200412162000

    MyEclipse:
    Version: 3.8.4
    Build id: 200501171200-3.8.4

    Regards,
    Tom

    #226651

    Riyad Kalla
    Member

    Please provide your operating system and JDK version. This problem has been a hard for us to track down but your notes are very detailed and I hope will shed some light on why this happens on some machines and not others.

    #226699

    tclerot
    Member

    Hi Riyad,

    OS: Windows XP SP2
    JDK: j2sdk1.4.2_06

    If this can help you here are the two outputs I have for com.genuitec.eclipse.easie.tomcat5.prefs:
    With space in the library path (not working):
    […]
    OPT_LIBRARYPATH1=C\:\\Program Files\\eclipse\\workspace\\lambda\\bin
    LIBRARY_PATH=”C\:\\j2sdk1.4.2_06\\bin;C\:\\Program Files\\Apache Software Foundation\\Tomcat 5.0\\bin;”C\:\\Program Files\\eclipse\\workspace\\lambda\\bin””
    […]

    With MS-DOS path (working)
    […]
    OPT_LIBRARYPATH1=C\:\\Progra~1\\eclipse\\workspace\\lambda\\bin
    LIBRARY_PATH=”C\:\\j2sdk1.4.2_06\\bin;C\:\\Program Files\\Apache Software Foundation\\Tomcat 5.0\\bin;”C\:\\Progra~1\\eclipse\\workspace\\lambda\\bin””
    […]

    In both case the resulting library_path build by MyEclipse with the optional library path is clumsy but seems to work with a MS-DOS path.

    Regards,
    Tom

    #226713

    Riyad Kalla
    Member

    Tom thank you for the details, we will investigate this after we get 4.0 out the door and free up some dev time.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Tomcat 5 – Append to library path issue

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