- This topic has 4 replies, 3 voices, and was last updated 20 years, 6 months ago by rabba42.
-
AuthorPosts
-
ploskiklMemberI’m attempting to use the JBoss-IDE 1.2.2 tutorial guide as a test case to see how MyEclipseIDE compares to the JBoss-IDE plugin. I do believe that MyEclipseIDE is the better product, but the JBoss-IDE tutorial does provide a nice use-case for the purpose of comparing the two plugins and I need to convince other members of my development organization that MyEclipseIDE is the better product by trying to use MyEclipseIDE to implement the EJB and servlet that appear in the JBoss-IDE tutorial.
Environment: – JBoss 3.2.3
– Tomcat 5 (yes, Tomcat 5 — followed the procedure described in another MyEclipseIDE post and it works just fine)
– Win2K SP4
– MyEclipseIDE 2.7.1 GA
– Eclipse 2.1.3In the Standard Web XDoclet configuration, I’m not able to specify a value of 2.4 for the Servletspec property in the deploymentdescriptor attribute. When I perform a Rebuild All, the following build error is reported:
“file:/F:\MyEclipse213Projects/FiboWebApp/xdoclet-build.xml:34: 2.4 is not a legal value”
However, a value of 2.3 is accepted: Rebuild All reports no errors when I use 2.3
If I can use Tomcat 5 with JBoss 3.2.3 and MyEclipseIDE 2.7.1, why would I encounter this build error? That is *the* primary question I have for you and the main reason why I am posting this message.
Secondary issue/problem:
I’ve taken the JBoss-IDE tutorial code quite a ways a long, but after 3 days, am not able to make it work. I readily admit that it’s likely some mistake on my part, as I’ve discovered there are quite a few differences between the JBoss-IDE plugin UI and the MyEclipseIDE UI and I continue to chip away at it…..
I have been able to do this much so far in MyEclipseIDE:
– create a J2EE app
– add a EJB module to the J2EE app
– add a Web module to the J2EE app
Deploy the EAR file to JBoss, launch JBoss, bring up an HTML page in IE. The HTML page has a submit button. When I press it, the appropriate servlet gets called, but the servlet catches an exception that tells me that I’m not able to find a context java:comp/env. I don’t know why, but I suspect I’ve specified the wrong value for some XDoclet keyword.Also, in the Console window, as Tomcat and JBoss initialize, I see a message that says:
[Tomcat 5] Failed to parse descriptors for war (<file name>) org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/web.xml – nested throwable: (org.jboss.deployemnt.DeploymentException: expected one env-entry-value tag)
The web.xml does NOT contain an env-entry-value tag; I’m using XDoclet to generate the web.xml. I’m not able to determine what may be wrong with my Standard Web XDoclet as it is used to generate the web.xml.My second question to you is: Could the inability to use 2.4 as the Servletspec value explain the missing env-entry-value tag?
I sincerely appreciate any help you may be able to offer me. If I can offer more information, please let me know and I’ll glady provide you with it.
Karen
P.S. The JBoss-IDE tutorial guide I’m using is posted here:
Riyad KallaMemberYour env-entry-value is related to JNDI, one of the reasons I think you are getting the exception you are, is that you didn’t setup a JNDI context for your webapp in Tomcat. Although I’m not a JBoss user, and our JBoss guru is out of town for the week.
I would say that MyEclipse actually integrated an older version of JBossIDE a while back and continue to builds on it… so if you are noticing similarities, that is why, and also might be a selling point for your team.
I’m going to pass your comments along and see if anyone else can help you out.
ploskiklMemberThank you for the quick response!
Let me give you an update: I fixed the exception and got the complete application (tutorial) to work: it deploys and executes successfully. I am one very happy camper, and I will be sending along a big thank you to that Great Programmer in the sky.
With that, the only question I have for you folks is the one regarding the value of 2.4 for the ServletSpec property value. If I may, please let me suggest that you give it a lower priority.
Thanks again for the quick response. It is just one of the reasons why I like MyEclipse!
– Karen
Riyad KallaMemberKaren,
It sounds like you really figured everything out well, nice work! I will pass along your recommendation as well, thank you for the feedback!
rabba42MemberKaren,
starting with servlet spec 2.4 there are no more DTD’s, now it comes as a XSD that’s why migrating is getting a bit tough now.
regards
Peter -
AuthorPosts