Following the tutorial will cause two main errors, which waste me much time searching the solution over the web.
1. When you run XDoclet, which ask the xDoclet to create relevant xml or classes for you, it will prompt you the xDoclet cannot be run. Even if you use another version of JBoss-IDE, or add a plugin of xdoclet-1.2.3, it still cannot.
Actually, the easy solution is to use JDK 5.0 when running xDoclet, that means even the development should be based on JDK 1.4.2, when you run xDoclet, you should switch to JDK 5.0 temporarily. But ensure that switching back to JDK 1.4.2 afterwards, or otherwise the development may use the “new” stuff on JDK 5.0.
2. The other thing is when deploying the *.ear file to JBoss AppServer 4.0.2, it causes an exception saying the web.xml misses ejb-link, I don’t know what it is. But the solution is when making the servlet class, which will be included in the *.war file, the @web.ejb-ref should contain link=”Fibo” as well. So when it is generating the web.xml, the tag will be included.









No comments
Comments feed for this article
Trackback link
http://blog.planner4u.org/blog/2006/10/08/learning-using-jboss-ide-to-create-ejb-project/trackback/