简体   繁体   English

使JBoss Seam与Eclipse一起使用

[英]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. 我一直试图在Eclipse 3.5中使用JBoss Seam运行一个简单的示例项目。 So far unsuccessfully. 到目前为止没有成功。

What i did: 我做了什么:

  • I set up a MySQL server that i can connect to using eclipse's data tools. 我设置了一个MySQL服务器,可以使用eclipse的数据工具连接到该服务器。
  • I installed Tomcat 6.0 and set it up as a server in eclipse 我安装了Tomcat 6.0,并将其设置为eclipse中的服务器
  • I installed the "JBossAS Tools" v2.2.0 plugin 我安装了“ JBossAS工具” v2.2.0插件
  • I created a new Seam Project using the plugin. 我使用插件创建了一个新的Seam项目。

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 and HelloWorldSeamProjekt-ds.xml. 我已经阅读了很多论坛,并使用了web.xml,server.xml,context.xml和HelloWorldSeamProjekt-ds.xml。

My guess is that the JNDI setup of my database resource is broken. 我的猜测是我的数据库资源的JNDI设置已损坏。 I tried a bunch of different approaches like a global resource, different names (comp/env/) but nothing worked. 我尝试了许多不同的方法,例如全局资源,不同的名称(comp / env /),但没有任何效果。

All the tutorials i found use different (and mostly outdated) combinations of Seam, Tomcat and Eclipse. 我发现的所有教程都使用Seam,Tomcat和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. 相反,您应该使用seam-gen来生成eclipse项目。 This will do it right. 这将做对。

You can see how you can get started using seam-gen here 您可以在此处查看如何开始使用seam-gen

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM