直接把项目放在jboss目录下的server-default(看你是以什么方式启动服务器的,要是all那就放在all目录下)-deploy目录下就可以了
xiangmuming.war
至于配置就看你的项目要配置什么了,比如像什么数据源什么的,看实际情况了

解决方案 »

  1.   

    嗯,能否再具体一点呢?我不明白。我是用终端窗口方式启动JBoss的。
    sh run.sh -b0.0.0.0我之前在jboss目录下的server/default/deploy下建立了项目的文件夹,原项目的所有内容都拷贝到里面了,可是不行,只有index.html可以显示,不能转到jsp页面。
    刚才我试了把文件夹移到jboss目录下的server/default下,也不行,连index.html也不能显示了。
    在all目录下的deploy目录下也试了,html页面也不出来。
      

  2.   

    index.html能启动说明你的项目位置放置没问题
    但是你说不能转向,有什么错误信息吗?我觉得这个问题好像跟jboss没什么事吧,看看你的项目
      

  3.   

    把工程导入到eclipse中,重新发布到JBoss下就可以了
      

  4.   

    终端信息如下:
    =========================================================================  JBoss Bootstrap Environment  JBOSS_HOME: /opt/jboss-4.0.5.GA  JAVA: /opt/j2sdk1.4.2_11/bin/java  JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000  CLASSPATH: /opt/jboss-4.0.5.GA/bin/run.jar:/opt/j2sdk1.4.2_11/lib/tools.jar=========================================================================10:47:55,214 INFO  [Server] Starting JBoss (MX MicroKernel)...
    10:47:55,216 INFO  [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
    10:47:55,220 INFO  [Server] Home Dir: /opt/jboss-4.0.5.GA
    10:47:55,220 INFO  [Server] Home URL: file:/opt/jboss-4.0.5.GA/
    10:47:55,310 INFO  [Server] Patch URL: null
    10:47:55,311 INFO  [Server] Server Name: default
    10:47:55,311 INFO  [Server] Server Home Dir: /opt/jboss-4.0.5.GA/server/default
    10:47:55,312 INFO  [Server] Server Home URL: file:/opt/jboss-4.0.5.GA/server/default/
    10:47:55,312 INFO  [Server] Server Log Dir: /opt/jboss-4.0.5.GA/server/default/log
    10:47:55,313 INFO  [Server] Server Temp Dir: /opt/jboss-4.0.5.GA/server/default/tmp
    10:47:55,314 INFO  [Server] Root Deployment Filename: jboss-service.xml
    10:47:55,995 INFO  [ServerInfo] Java version: 1.4.2_11,Sun Microsystems Inc.
    10:47:55,996 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.4.2_11-b06,Sun Microsystems Inc.
    10:47:55,996 INFO  [ServerInfo] OS-System: Linux 2.6.18.2-34-default,i386
    10:47:57,137 INFO  [Server] Core system initialized
    10:48:01,910 INFO  [WebService] Using RMI server codebase: http://atts-suse:8083/
    10:48:01,946 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
    10:48:10,836 INFO  [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
    10:48:14,348 INFO  [Embedded] Catalina naming disabled
    10:48:14,428 INFO  [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
    10:48:14,430 INFO  [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
    10:48:15,700 INFO  [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
    10:48:15,703 INFO  [Catalina] Initialization processed in 1272 ms
    10:48:15,703 INFO  [StandardService] Starting service jboss.web
    10:48:15,707 INFO  [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
    10:48:15,812 INFO  [StandardHost] XML validation disabled
    10:48:15,890 INFO  [Catalina] Server startup in 187 ms
    10:48:16,294 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
    10:48:17,734 INFO  [WebappLoader] Dual registration of jndi stream handler: factory already defined
    10:48:18,746 INFO  [TomcatDeployer] deploy, ctxPath=/ROOT1, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT1.war/
    10:48:18,986 INFO  [TomcatDeployer] deploy, ctxPath=/TestCrm, warUrl=.../deploy/jbossweb-tomcat55.sar/TestCrm.war/
    10:48:19,384 INFO  [TomcatDeployer] deploy, ctxPath=/staff, warUrl=.../deploy/jbossweb-tomcat55.sar/staff.war/
    10:48:19,565 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp51910jbossws-context-exp.war/
    10:48:19,868 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
    10:48:23,242 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
    10:48:25,096 INFO  [MailService] Mail Service bound to java:/Mail
    10:48:25,481 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
    10:48:25,536 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
    10:48:25,561 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
    10:48:25,588 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
    10:48:25,633 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
    10:48:25,663 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
    10:48:27,183 INFO  [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:name=DefaultDS,service=DataSourceBinding' to JNDI name 'java:DefaultDS'
    10:48:27,684 INFO  [A] Bound to JNDI name: queue/A
    10:48:27,686 INFO  [B] Bound to JNDI name: queue/B
    10:48:27,688 INFO  [C] Bound to JNDI name: queue/C
    10:48:27,689 INFO  [D] Bound to JNDI name: queue/D
    10:48:27,691 INFO  [ex] Bound to JNDI name: queue/ex
    10:48:27,725 INFO  [testTopic] Bound to JNDI name: topic/testTopic
    10:48:27,727 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
    10:48:27,729 INFO  [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
    10:48:27,733 INFO  [testQueue] Bound to JNDI name: queue/testQueue
    10:48:27,836 INFO  [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
    10:48:27,906 INFO  [DLQ] Bound to JNDI name: queue/DLQ
    10:48:28,108 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:name=JmsXA,service=ConnectionFactoryBinding' to JNDI name 'java:JmsXA'
    10:48:28,291 INFO  [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:name=hrstaff2,service=DataSourceBinding' to JNDI name 'java:hrstaff2'
    10:48:28,341 INFO  [TomcatDeployer] deploy, ctxPath=/domains, warUrl=.../deploy/domains.war/
    10:48:28,911 INFO  [TomcatDeployer] deploy, ctxPath=/hello, warUrl=.../deploy/hello.war/
    10:48:29,318 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
    10:48:30,179 INFO  [TomcatDeployer] deploy, ctxPath=/mysql-test, warUrl=.../deploy/mysql-test.war/
    10:48:30,954 INFO  [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
    10:48:31,353 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
    10:48:31,366 INFO  [JkMain] Jk running ID=0 time=1/36  config=null
    10:48:31,378 INFO  [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 36s:59msFirefox信息如下:
    --------------------------------------------------
    HTTP Status 404 - /staff/index.htmltype Status reportmessage /staff/index.htmldescription The requested resource (/staff/index.html) is not available.
    Apache Tomcat/5.5.20好像现在index.html也不出来了。(曾经出来过的,现在我也不知道怎么回事)
    怎样把工程导入到eclipse啊?(并不想修改代码。)
      

  5.   

    把war拷贝到\jboss-4.0.5.GA\server\default\deploy下 还有一些jdbc驱动什么的 拷贝到\jboss-4.0.5.GA\server\default\lib 下
      

  6.   

    注意是war包 不要建什么文件夹
      

  7.   

    楼主大哥,真是幸福啊,我要捣腾的可是JBOSS2.4.3平台的旧工程,都不知道拖了多少天了请问有人知道JBOSS2X如何连数据库吗