|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
自己的整个学习思路完全被老师的讲课思路所牵制,这样几节课听下来,恐怕自己的见解都应该是书里的知识点了,根本谈不上自身发现问题,分析问题,和解决问题能力的切实提高。server
从明天下战书入手下手就一向在Eclipse中设置JBoss,因为本来用的是JBoss3.0.0,如今想用JBoss3.2.6。
因而就从头设置。可是设置好了今后,却发明会呈报jar文件路径堕落,一共有两个:一个是jboss-3.2.6libjboss-boot.jar找不到,一个是jboss-3.2.6erverdefaultlibjavax-servlet.jar找不到。
用UE32翻开eclipsepluginscom.objectlearn.jdt.j2ee_3.0.1ervers文件夹中的jboss32x.server文件,发明的确在路径中写进了jboss-boot.jar,但是我怎样也在jboss-3.2.6lib上面找到这个文件。了局google了一个下战书发明本来Eclipse3.0.1中的jboss32x.server文件不婚配JBoss3.2.6!忧郁~
如今把改写后的jboss326.server文件贴出来,人人参考:
<serverDefinitionname="JBOSS3.2.6"ejbModules="true"webModules="true"earModules="true"><propertyid="serverRootDirectory"label="ApplicationServerDirectory:"type="directory"default="/your_server_root/appservers/jboss-3.2.6"/><propertyid="serverAddress"label="Address:"type="string"default="127.0.0.1"/><propertyid="serverPort"label="Port:"type="string"default="8080"/><propertyid="serverConfig"label="ServerConfiguration(minimal/default/all):"type="string"default="default"/><propertyid="classPathVariableName"label="ClasspathVariableName:"type="string"default="JBOSS326"/><propertyid="classPath"label="ClasspathVariable:"type="directory"default="/your_server_root/appservers/jboss-3.2.6"/><serverHome>${serverRootDirectory}</serverHome><webModulesDeployDirectory>${serverRootDirectory}/server/${serverConfig}/deploy</webModulesDeployDirectory><ejbModulesDeployDirectory>${serverRootDirectory}/server/${serverConfig}/deploy</ejbModulesDeployDirectory><earModulesDeployDirectory>${serverRootDirectory}/server/${serverConfig}/deploy</earModulesDeployDirectory><jndiInitialContextFactory>org.jnp.interfaces.NamingContextFactory</jndiInitialContextFactory><jndiProviderUrl>jnp://${serverAddress}:1099</jndiProviderUrl><startClass>org.jboss.Main</startClass><startWorkingDirectory>${serverRootDirectory}/bin</startWorkingDirectory><startVmParameters></startVmParameters><startProgramArguments>-c${serverConfig}</startProgramArguments><stopClass>org.jboss.Shutdown</stopClass><stopWorkingDirectory>${serverRootDirectory}/bin</stopWorkingDirectory><stopVmParameters></stopVmParameters><stopProgramArguments>-S</stopProgramArguments><serverClassPath><jartype="variable">JDK_TOOLS</jar><jartype="variable">${classPathVariableName}/bin/run.jar</jar><jartype="variable">${classPathVariableName}/bin/shutdown.jar</jar><jartype="variable">${classPathVariableName}/client/jboss-j2ee.jar</jar><jartype="variable">${classPathVariableName}/lib/concurrent.jar</jar><jartype="variable">${classPathVariableName}/lib/jboss-system.jar</jar><jartype="variable">${classPathVariableName}/lib/dom4j.jar</jar><jartype="variable">${classPathVariableName}/lib/xercesImpl.jar</jar><jartype="variable">${classPathVariableName}/lib/xml-apis.jar</jar><jartype="variable">${classPathVariableName}/lib/gnu-regexp.jar</jar><jartype="variable">${classPathVariableName}/lib/getopt.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/deploy/jbossweb-tomcat50.sar/servlet-api.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/bcel.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-transaction.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jnpserver.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jpl-pattern.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jpl-util.jar</jar></serverClassPath><clientClassPath><jartype="variable">${classPathVariableName}/client/jboss-j2ee.jar</jar><jartype="variable">${classPathVariableName}/client/jboss-client.jar</jar><jartype="variable">${classPathVariableName}/client/jboss-common-client.jar</jar><jartype="variable">${classPathVariableName}/client/jboss-jaas.jar</jar><jartype="variable">${classPathVariableName}/client/jbosssx-client.jar</jar><jartype="variable">${classPathVariableName}/client/jnet.jar</jar><jartype="variable">${classPathVariableName}/client/jnp-client.jar</jar><jartype="variable">${classPathVariableName}/client/log4j.jar</jar><jartype="variable">${classPathVariableName}/server/default/lib/jnpserver.jar</jar></clientClassPath><projectClassPath><jartype="variable">JDK_TOOLS</jar><jartype="variable">${classPathVariableName}/bin/run.jar</jar><jartype="variable">${classPathVariableName}/bin/shutdown.jar</jar><jartype="variable">${classPathVariableName}/client/jboss-j2ee.jar</jar><jartype="variable">${classPathVariableName}/lib/concurrent.jar</jar><jartype="variable">${classPathVariableName}/lib/jboss-system.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/deploy/jbossweb-tomcat50.sar/servlet-api.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/bcel.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-transaction.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jnpserver.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jpl-pattern.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jpl-util.jar</jar></projectClassPath><adminTool><web><deploy/><undeploy/></web><ejb><deploy/><undeploy/></ejb><ear><deploy/><undeploy/><webModule><deploy/><undeploy/></webModule><ejbModule><deploy/><undeploy/></ejbModule></ear></adminTool><adminToolPath></adminToolPath></serverDefinition>
和jboss400.server,这个在eclipse中也仍是没有:
<serverDefinitionname="JBOSS4.0.0"ejbModules="true"webModules="true"earModules="true"><propertyid="serverRootDirectory"label="ApplicationServerDirectory:"type="directory"default="/your_server_root/appservers/jboss-4.0.0"/><propertyid="serverAddress"label="Address:"type="string"default="127.0.0.1"/><propertyid="serverPort"label="Port:"type="string"default="8080"/><propertyid="serverConfig"label="ServerConfiguration(minimal/default/all):"type="string"default="default"/><propertyid="classPathVariableName"label="ClasspathVariableName:"type="string"default="JBOSS400"/><propertyid="classPath"label="ClasspathVariable:"type="directory"default="/your_server_root/appservers/jboss-4.0.0"/><serverHome>${serverRootDirectory}</serverHome><webModulesDeployDirectory>${serverRootDirectory}/server/${serverConfig}/deploy</webModulesDeployDirectory><ejbModulesDeployDirectory>${serverRootDirectory}/server/${serverConfig}/deploy</ejbModulesDeployDirectory><earModulesDeployDirectory>${serverRootDirectory}/server/${serverConfig}/deploy</earModulesDeployDirectory><jndiInitialContextFactory>org.jnp.interfaces.NamingContextFactory</jndiInitialContextFactory><jndiProviderUrl>jnp://${serverAddress}:1099</jndiProviderUrl><startClass>org.jboss.Main</startClass><startWorkingDirectory>${serverRootDirectory}/bin</startWorkingDirectory><startVmParameters>-Djava.endorsed.dirs=${serverRootDirectory}/lib/endorsed</startVmParameters><startProgramArguments>-c${serverConfig}</startProgramArguments><stopClass>org.jboss.Shutdown</stopClass><stopWorkingDirectory>${serverRootDirectory}/bin</stopWorkingDirectory><stopVmParameters></stopVmParameters><stopProgramArguments>-S</stopProgramArguments><serverClassPath><jartype="variable">JDK_TOOLS</jar><jartype="variable">${classPathVariableName}/bin/run.jar</jar><jartype="variable">${classPathVariableName}/bin/shutdown.jar</jar><jartype="variable">${classPathVariableName}/lib/concurrent.jar</jar><jartype="variable">${classPathVariableName}/lib/dom4j.jar</jar><jartype="variable">${classPathVariableName}/lib/gnu-regexp.jar</jar><jartype="variable">${classPathVariableName}/lib/jboss-jmx.jar</jar><jartype="variable">${classPathVariableName}/lib/jboss-common.jar</jar><jartype="variable">${classPathVariableName}/lib/jboss-system.jar</jar><jartype="variable">${classPathVariableName}/lib/endorsed/xercesImpl.jar</jar><jartype="variable">${classPathVariableName}/lib/endorsed/xml-apis.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/activation.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/avalon-framework.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/bcel.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/bsh-commands-1.3.0.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/bsh-core-1.3.0.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/bsh-deployer.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/castor-0.9.3.9-xml.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/cglib-full-2.0.1.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/hibernate2.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/hsqldb.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/hsqldb-plugin.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jacorb.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/javax.servlet.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/javax.servlet.jsp.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jaxr-client.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-common-jdbc-wrapper.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-hibernate.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-iiop.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-j2ee.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-jaxrpc.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-jca.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-jsr77.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-management.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-monitoring.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-saaj.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-transaction.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jbossmq.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jbosssx.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jnpserver.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jpl-pattern.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jpl-util.jar</jar></serverClassPath><clientClassPath><jartype="variable">${classPathVariableName}/client/jboss-j2ee.jar</jar><jartype="variable">${classPathVariableName}/client/jboss-common-client.jar</jar><jartype="variable">${classPathVariableName}/client/jbossall-client.jar</jar><jartype="variable">${classPathVariableName}/client/jbosssx-client.jar</jar><jartype="variable">${classPathVariableName}/client/jnp-client.jar</jar><jartype="variable">${classPathVariableName}/client/log4j.jar</jar><jartype="variable">${classPathVariableName}/server/default/lib/jnpserver.jar</jar></clientClassPath><projectClassPath><jartype="variable">JDK_TOOLS</jar><jartype="variable">${classPathVariableName}/bin/run.jar</jar><jartype="variable">${classPathVariableName}/bin/shutdown.jar</jar><jartype="variable">${classPathVariableName}/client/jboss-j2ee.jar</jar><jartype="variable">${classPathVariableName}/lib/concurrent.jar</jar><jartype="variable">${classPathVariableName}/lib/jboss-system.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/bcel.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/javax.servlet.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-transaction.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jnpserver.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jpl-pattern.jar</jar><jartype="variable">${classPathVariableName}/server/${serverConfig}/lib/jpl-util.jar</jar></projectClassPath><adminTool><web><deploy/><undeploy/></web><ejb><deploy/><undeploy/></ejb><ear><deploy/><undeploy/><webModule><deploy/><undeploy/></webModule><ejbModule><deploy/><undeploy/></ejbModule></ear></adminTool><adminToolPath/></serverDefinition>
最初,发明这两个.server文件都管用,今后就不必为设置JBoss使用服务器懊恼了。呵呵
对于一个大型项目,如果用java来作,可能需要9个月,并且可能需要翻阅10本以上的书,但如果用ruby来作,3个月,3本书就足够了,而.net也不过3,4本书足以,这就是区别。 |
|