Learning using JBoss IDE to create EJB Project

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.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • Technorati
  • YahooMyWeb

 

October 2006
S M T W T F S
« Sep   Nov »
1234567
891011121314
15161718192021
22232425262728
293031  

Categories