Lomboz 中无法配置JBoss5 Server的问题

 一、开发J2EE项目的环境配置问题

      开发J2EE项目,开发环境与配置问题:

       服务器:JBoss5.0;

       jdk    :1.6版本;

       IDE   :Lomboz 3.3

      原因:由于本人的电脑装有jdk1.6的版本,导致JBoss5.0与jdk不兼容,无法使用;由于使用JBoss5.0,Lomboz3.3一下的版本无法配置JBoss5.0。

      因此,在jdk1.6的条件下,我装了JBoss5.0和Lomboz3.3。

 

二、Lobmoz配置JBoss5.0的问题

      但是在Lobmoz3.3下配置JBoss5.0,又报错。

      提示信息为:"Missing classpath entry C:/jboss-5.0.0.GA/server/default/lib/mail.jar"

      原因:JBoss 5.0 GA release的目录结构和之前不一样了,而eclipse的对应插件没有相应的更改

      解决办法:找到 Lomboz安装目录/plugins/org.eclipse.jst.server.generic.jboss_1.5.205.v200805140145/servers/jboss5.serverdef 文件,按一下代码修改 jboss5.serverdef。主要修改<classpath id="jboss.project" >此标签内的代码。

 <classpath id="jboss.project" > <fileset dir="${serverRootDirectory}"> <include name="client/*.jar" /> <include name="server/default/lib/*.jar" /> <!-- Old and wrong reference: <include name="server/default/deployers/jbossweb.deployer/jsf-libs/*.jar" /> This is the right one in JBoss 5CR2 and GA: --> <include name="server/default/deploy/jbossweb.sar/jsf-libs/*.jar" /> <!-- This will be ignored if EJB3 is not there 5.0 --> <include name="lib/*.jar" /> <include name="server/default/deployers/jbossweb.deployer/*.jar" /> <include name="server/default/deployers/jboss-aop-jboss5.deployer/*.jar" /> <!-- Not existent in CR2 and GA <include name="server/default/deployers/ejb3.deployer/jboss-annotations-ejb3.jar" /> --> <!-- New in 5.0GA: if not included, e.g. "jsp-api.jar" (for Tag libraries) is missing --> <include name="common/lib/*.jar" /> <!-- This one is useful for class "org.jboss.web.tomcat.security.login.WebAuthentication": --> <include name="server/default/deploy/jbossweb.sar/*.jar" /> <!-- moved to "common/lib" in JBoss5 GA, so pick a library from "lib", which is present in both versions: <exclude name="server/default/lib/mail.jar" /> --> <exclude name="lib/jboss-kernel.jar" /> </fileset> <!-- leave one generic jar as an archive so that validation works --> <!-- moved to "common/lib" in JBoss5 GA, so pick a library from "lib", which is present in both versions: <archive path="${serverRootDirectory}/server/default/lib/mail.jar" /> --> <archive path="${serverRootDirectory}/lib/jboss-kernel.jar" /> </classpath>  

 

以上问题二的解决办法以及代码可以在eclipse的bug中心可以找到,网址: https://bugs.eclipse.org/bugs/show_bug.cgi?id=257823

你可能感兴趣的:(eclipse,jdk,jboss,server,include,archive)