facebook

3 problems with creating the *-web.xml files [closed]

💡
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. Installation, Configuration & Updates
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #225220 Reply

    g-greg
    Member

    I am a beginer so these should be easy problems 🙂

    Problem 1 : “jboss-web.xml”
    I had the MyEclipse XDoclets functionality generate it, but it lacks the resource-ref paragraph.
    Although the same configuration creates well the resource-ref in the web.xml

    Problem 2 : “sun-web.xml”
    Is it possible to generate the “sun-web.xml” (for Sun Application Server 8) with XDoclets like the “jboss-web.xml” file with the MyEclipse XDoclets functionality ? If yes, how ?

    Problem 3 : error shown in file “sun-web.xml”.
    I made this file by hand. On the second line of it, MyEclipse shows an error tag with the comment : “unable to connect to http://www.sun.com”. In effect I am not connected to the Internet everytime so MyEclipse can’t verify it all the time. Can you tell me how to correct this error ?

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE sun-web-app PUBLIC “-//Sun Microsystems, Inc.//DTD Application Server 8.0 Servlet 2.4//EN” “http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-0.dtd”&gt; <= Error here : “unable to connect to http://www.sun.com&#8221;

    <sun-web-app>
    <context-root>/Test1</context-root>
    <resource-ref>
    <res-ref-name>jdbc/BrutalDB</res-ref-name>
    <jndi-name>jdbc/BrutalDB</jndi-name>
    </resource-ref>
    </sun-web-app>

    Tank you in advance.

    #225230

    Riyad Kalla
    Member

    I have asked someone to answer #1 and #2 for you, although these are really XDoclet questions, not ME questions.

    Problem 3:
    You will need to download the DTD and add it to your XML Catalog (Window > Prefs > MyEclipse > Editors > XML > XML Catalog, click Add). It will be a Public key with a URI of “-//Sun Microsystems, Inc.//DTD Application Server 8.0 Servlet 2.4//EN” and the location of the file will need to be an absolutely file URL to it’s location, something like: file:/c:/dev/dtds/sun-web-app_2_4-0.dtd

    Then close and reopen the file, it should pickup the catalog entry now.

    #225238

    Greg
    Member

    @g-greg wrote:

    Problem 1 : “jboss-web.xml”
    I had the MyEclipse XDoclets functionality generate it, but it lacks the resource-ref paragraph.
    Although the same configuration creates well the resource-ref in the web.xml

    Add the following jboss xdoclet tags to your servlet so it will generate the right config in your jboss-web.xml.
    @jboss.resource-ref tags According to the doc these aren’t supported in anything but EJBs. But I tested adding them in a servlet and it works. However, since they aren’t officially supported in servlets, MyEclipse won’t do code completion for them. So be sure and copy the names correctly from that link.
    @g-greg wrote:

    Problem 2 : “sun-web.xml”
    Is it possible to generate the “sun-web.xml” (for Sun Application Server 8) with XDoclets like the “jboss-web.xml” file with the MyEclipse XDoclets functionality ? If yes, how ?

    That is a current enhancement request for xdoclet.
    http://opensource.atlassian.com/projects/xdoclet/browse/XDT-545
    Once, xdoclet releases an updated web module that contains the above fix, we will include it in our next release. Of course as soon as xdoclet finishes the new version you can update your local installation without waiting for a new MyEclipse release. More info on this can be found on Riyad’s post in this thread: http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-4747-highlight-refresh+xdoclet+data.html

    #225286

    g-greg
    Member

    Thank you Riyad and Greg ! I am impressed with your support.

    G-Greg.

    #225289

    Riyad Kalla
    Member

    Thanks Greg, we are glad it helped.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: 3 problems with creating the *-web.xml files [closed]

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