facebook

[Closed] Struts-config.xml design error

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 13 posts - 16 through 28 (of 28 total)
  • Author
    Posts
  • #244251 Reply

    perret
    Member

    Hello Brian 😀

    Hope you are fine.

    I have just installed the 3.1.0 version of Eclipse and unfortunately, it still doesn’t work 😕

    *** Date: Tue Jan 10 16:59:56 CET 2006
    
    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_04
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 4.0.3 GA
    Build id: 20051025-4.0.3-GA
    
    *** Eclipse details:
    Eclipse SDK
    
    Version: 3.1.0
    Build id: I20050627-1435
    
    Eclipse Platform
    
    Version: 3.1.0
    Build id: I20050627-1435
    
    Eclipse RCP
    
    Version: 3.1.0
    Build id: I20050627-1435
    
    Eclipse Java Development Tools
    
    Version: 3.1.0
    Build id: I20050627-1435
    
    Eclipse Plug-in Development Environment
    
    Version: 3.1.0
    Build id: I20050627-1435
    
    Eclipse Project SDK
    
    Version: 3.1.0
    Build id: I20050627-1435
    
    Eclipse startup command=-data
    C:\Program Files\eclipse31\workspaceBrunoPort
    -os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Program Files\eclipse31\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    e10_58
    -vm
    C:\WINDOWS\system32\javaw.exe
    
    

    Must be some kind of bug in the source code no?

    Thanks for the help 🙂

    #244252 Reply

    Brian Fernandes
    Moderator

    Bruno,

    Sorry for the confusion earlier, the 3.1.1 version you were using was a final version indeed.

    I have your workspace localy and will try it out asap.

    Best,
    Brian

    #244311 Reply

    Brian Fernandes
    Moderator

    Bruno,

    I tried out both workspaces and everything was working as expected.

    Could you post a screenshot of the problem so that we have an idea of exactly what you’re experiencing? Also, are any of your folders write protected?

    Regarding the error log, could you delete or clear the exising log, open your config file and replicate the problem and then paste that log here – that will give us the exact subset of logs related to your issue.

    Best,
    Brian.

    #245159 Reply

    perret
    Member

    Hi Brian,
    thanks for your response. I was not at the office these last days.
    So I send you 2 screenshots, as you will see nothing is displayed in the design view. The folders are not write protected (under MS/DOS I type attrib /S command and all files have the A attribute only).
    Here is the .log file (in the .metadata directory of my workspace). I just deleted it and it was recreated when I added a jsp file in the design struts view.
    Thanks for your help
    Regards

    !SESSION 2006-01-24 16:33:31.296 -----------------------------------------------
    eclipse.buildId=M20050929-0840
    java.version=1.5.0_06
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_FR
    Command-line arguments:  -os win32 -ws win32 -arch x86
    
    !ENTRY com.ibm.etools.validation 4 0 2006-01-24 16:34:49.359
    !MESSAGE 
    *** ERROR ***: Tue Jan 24 16:34:49 CET 2006    java.lang.ExceptionInInitializerError


    #245162 Reply

    Riyad Kalla
    Member

    Bruno,
    Brian has asked me to look through this thread to help, and I have to say that this is a very very strange issue.

    Just for my own personal sanity can you do the following for me:
    1) File > Switch Workspace > C:\test\workspace > Click OK
    2) File > New > Project > MyEclipse > J2EE > Web Project, name it “TestWeb” click Finish.
    3) Right click on project > MyEclipse > Add Struts Capabilities (Set the version you want) click Finish
    4) Open up the struts-config.xml file, right click > Add Form, Action JSP
    5) Use case: userLogin
    6) Click finish if you can or click Next until done.

    Do you see ANYTHING on the design view now?

    #245254 Reply

    perret
    Member

    Hi Riyad,

    I’m sorry, I did exactly what you suggested. THe c:\test\workspace was created, the project TestWeb too. But finally I can’t see anything on the design view. In the source view it seems to be correct as you see above.
    Hope you have some ideas about this strange problem.
    Best regards

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    
    <struts-config>
      <data-sources />
      <form-beans >
        <form-bean name="userLoginForm" type="com.yourcompany.struts.form.UserLoginForm" />
    
      </form-beans>
    
      <global-exceptions />
      <global-forwards />
      <action-mappings >
        <action
          attribute="userLoginForm"
          input="/form/userLogin.jsp"
          name="userLoginForm"
          path="/userLogin"
          scope="request"
          type="com.yourcompany.struts.action.UserLoginAction" />
    
      </action-mappings>
    
      <message-resources parameter="com.yourcompany.struts.ApplicationResources" />
    </struts-config>
    
    
    #245281 Reply

    Riyad Kalla
    Member

    Bruno,
    You have a ghost in your machine… but let’s try something else.

    Go into your Eclipse\plugins directory (not MyEclipse, but Eclipse), do you see ANY org.eclipse.gef.* or org.eclipse.emf.* directories?

    #245287 Reply

    perret
    Member

    Hi Riyad,
    you are right, there is certainly a ghost in my machine !!
    I can’t find any org.eclipse.gef.* or org.eclipse.emf.* in the eclipse directory plugins.

    If I search in c:\ I find some in a directory I created when the problem occur in December 2005. (It occurs just after I renamed the project name this day in December)
    C:\eclipse 3.1.1\SOS\workspace\.metadata\.plugins\org.eclipse.pde.core\Nouvelle_configuration\org.eclipse.osgi\manifests

    31/10/2005 12:49 310 org.eclipse.gef.doc.isv_3.0.1.MF
    31/10/2005 12:49 709 org.eclipse.gef.examples.flow_3.0.1.MF
    31/10/2005 12:49 761 org.eclipse.gef.examples.logic_3.0.0.MF
    31/10/2005 12:49 286 org.eclipse.gef.examples.source_3.0.1.MF
    31/10/2005 12:49 301 org.eclipse.gef.source_3.0.1.MF

    Thanks for your help

    #245349 Reply

    Riyad Kalla
    Member

    Ok Bruno you have everyone in the office stumped, officially now.

    One suggestion was someone asked if you had tried installing Java 1.4.2_10 and then running with that by using the -vm argument:

    eclipse.exe -vm c:\j2sdk1.4.2_10\bin\javaw.exe

    for example.

    #245392 Reply

    perret
    Member

    Hi,
    I didn’t uninstall 1.5xxx Java version. I directly installed 1.4xxx version. And then start eclipse as you wrote (eclipse.exe -vm c:\j2sdk1.4.2_04\bin\javaw.exe), and it WORKS!!. I immedialtly retrieved the struts diagrams in the design view.
    So I have 2 question :
    1 : I installed on my laptop with 1.5xxx some weeks ago (the same as my PC) and it works, so it is strange
    2 : how can I work with 1.5xxx version on my PC. If I start myeclipse normally, I see only 2 diagrams (see attached picture) may be this can help you ? If I toggle between the design/source views the action diagram disappears.

    In any case, I begin forgetting the ghost hope is coming again thank you

    #245398 Reply

    Riyad Kalla
    Member

    Bruno,
    With regard to #2, why do you need to run Eclipse with JDK 1.5? Keep in mind that running Eclipse with a VM and *using* a certain JDK version (1.1, 1.2, 1.4, 5.0) in your project are separate choices. The 2nd choice is handled by your project compiler settings which is independent of the VM you use to run Eclipse.

    I would say if it’s working with 1.4.2, keep using it 🙂

    #245486 Reply

    perret
    Member

    OK thanks for all the time you spent for me. It’s working now and this is important.

    Bruno

    #245503 Reply

    Riyad Kalla
    Member

    Glad to hear it, we can’t believe what the solution was on our end… we’ll have to remember this 🙂

Viewing 13 posts - 16 through 28 (of 28 total)
Reply To: [Closed] Struts-config.xml design error

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