For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 4 replies, 3 voices, and was last updated 20 years, 6 months ago by
Riyad Kalla.
-
AuthorPosts
-
g-gregMemberI 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.xmlProblem 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”> <= Error here : “unable to connect to http://www.sun.com”<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.
February 15, 2005 at 7:58 pm #225230
Riyad KallaMemberI 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.dtdThen close and reopen the file, it should pickup the catalog entry now.
February 16, 2005 at 4:03 am #225238
GregMember@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.xmlAdd 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.htmlFebruary 16, 2005 at 10:54 am #225286
g-gregMemberThank you Riyad and Greg ! I am impressed with your support.
G-Greg.
February 16, 2005 at 10:59 am #225289
Riyad KallaMemberThanks Greg, we are glad it helped.
-
AuthorPosts