Getting JBoss Seam to work with Eclipse
I have been trying to get to run a simple example project with JBoss Seam in Eclipse 3.5. So far unsuccessfully.
What i did:
- I set up a MySQL server that i can connect to using eclipse's data tools.
- I installed Tomcat 6.0 and set it up as a server in eclipse
- I installed the "JBossAS Tools" v2.2.0 plugin
- I created a new Seam Project using the plugin.
But i keep getting
javax.naming.NameNotFoundException: HelloWorldSeamProjektDatasource not bound
I have been reading a lot of forums and playing around with the web.xml, server.xml, context.xml开发者_如何学Python and HelloWorldSeamProjekt-ds.xml.
My guess is that the JNDI setup of my database resource is broken. I tried a bunch of different approaches like a global resource, different names (comp/env/) but nothing worked.
All the tutorials i found use different (and mostly outdated) combinations of Seam, Tomcat and Eclipse.
I'm getting frustrated.
Can someone please point me to a simple setup to get me started?
What you should do instead is use seam-gen to generate your eclipse project. This will do it right.
You can see how you can get started using seam-gen here
精彩评论