2012-12-11 40 views
0

我試圖讓一個Web應用程序啓動並運行在eclipse中的jboss 5,我沒有在日誌中得到任何錯誤,當我打到http://localhost:8080/WebDataViewer,我只需獲取默認的http 404錯誤頁面即可。Jboss無法啓動Web應用程序,並在日誌中沒有錯誤

當我點擊​​時,我得到了默認的jboss頁面,其上有一些鏈接。

我以前沒有和jboss一起工作過,但任何人都可以幫助弄清楚我如何訪問我的應用程序,或者我可以如何解決這個問題?

10:07:39,706 INFO [ServerImpl] Starting JBoss (Microcontainer)... 
10:07:39,707 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634) 
10:07:39,707 INFO [ServerImpl] Bootstrap URL: null 
10:07:39,707 INFO [ServerImpl] Home Dir: C:\jboss-5.1.0.GA 
10:07:39,708 INFO [ServerImpl] Home URL: file:/C:/jboss-5.1.0.GA/ 
10:07:39,708 INFO [ServerImpl] Library URL: file:/C:/jboss-5.1.0.GA/lib/ 
10:07:39,708 INFO [ServerImpl] Patch URL: null 
10:07:39,708 INFO [ServerImpl] Common Base URL: file:/C:/jboss-5.1.0.GA/common/ 
10:07:39,708 INFO [ServerImpl] Common Library URL: file:/C:/jboss-5.1.0.GA/common/lib/ 
10:07:39,709 INFO [ServerImpl] Server Name: default 
10:07:39,709 INFO [ServerImpl] Server Base Dir: C:\jboss-5.1.0.GA\server 
10:07:39,709 INFO [ServerImpl] Server Base URL: file:/C:/jboss-5.1.0.GA/server/ 
10:07:39,709 INFO [ServerImpl] Server Config URL: file:/C:/jboss-5.1.0.GA/server/default/conf/ 
10:07:39,709 INFO [ServerImpl] Server Home Dir: C:\jboss-5.1.0.GA\server\default 
10:07:39,709 INFO [ServerImpl] Server Home URL: file:/C:/jboss-5.1.0.GA/server/default/ 
10:07:39,709 INFO [ServerImpl] Server Data Dir: C:\jboss-5.1.0.GA\server\default\data 
10:07:39,709 INFO [ServerImpl] Server Library URL: file:/C:/jboss-5.1.0.GA/server/default/lib/ 
10:07:39,710 INFO [ServerImpl] Server Log Dir: C:\jboss-5.1.0.GA\server\default\log 
10:07:39,710 INFO [ServerImpl] Server Native Dir: C:\jboss-5.1.0.GA\server\default\tmp\native 
10:07:39,710 INFO [ServerImpl] Server Temp Dir: C:\jboss-5.1.0.GA\server\default\tmp 
10:07:39,710 INFO [ServerImpl] Server Temp Deploy Dir: C:\jboss-5.1.0.GA\server\default\tmp\deploy 
10:07:40,279 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/jboss-5.1.0.GA/server/default/conf/bootstrap.xml 
10:07:40,898 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache] 
10:07:40,900 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]] 
10:07:41,132 INFO [CopyMechanism] VFS temp dir: C:\jboss-5.1.0.GA\server\default\tmp 
10:07:41,133 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled. 
10:07:42,399 INFO [ServerInfo] Java version: 1.6.0_35,Sun Microsystems Inc. 
10:07:42,399 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_35-b10) 
10:07:42,399 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 20.10-b01,Sun Microsystems Inc. 
10:07:42,399 INFO [ServerInfo] OS-System: Windows 7 6.1,amd64 
10:07:42,399 INFO [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dfile.encoding=Cp1252 
10:07:42,425 INFO [JMXKernel] Legacy JMX core initialized 
10:07:44,183 INFO [ProfileServiceBootstrap] Loading profile: [email protected][domain=default, server=default, name=default] 
10:07:45,435 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/ 
10:07:50,839 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core 
10:07:50,839 INFO [NativeServerConfig] 3.1.2.GA 
10:07:51,473 INFO [AttributeCallbackItem] Owner callback not implemented. 
10:07:52,334 INFO [LogNotificationListener] Adding notification listener for logging mbean "jboss.system:service=Logging,type=Log4jService" to server [email protected][ defaultDomain='jboss' ] 
10:08:06,536 INFO [Ejb3DependenciesDeployer] Encountered deployment [email protected]{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/} 
10:08:06,536 INFO [Ejb3DependenciesDeployer] Encountered deployment [email protected]{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/} 
10:08:06,537 INFO [Ejb3DependenciesDeployer] Encountered deployment [email protected]{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/} 
10:08:06,537 INFO [Ejb3DependenciesDeployer] Encountered deployment [email protected]{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/} 
10:08:08,928 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector 
10:08:09,029 INFO [MailService] Mail Service bound to java:/Mail 
10:08:11,006 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this. 
10:08:11,020 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent 
10:08:11,073 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent 
10:08:11,111 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version - tag:JBOSSTS_4_6_1_GA) - JBoss Inc. 
10:08:11,111 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer 
10:08:11,312 INFO [TransactionManagerService] Initializing recovery manager 
10:08:11,436 INFO [TransactionManagerService] Recovery manager configured 
10:08:11,436 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference 
10:08:11,457 INFO [TransactionManagerService] Starting transaction recovery manager 
10:08:12,016 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_35\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jdk1.6.0_35/bin/../jre/bin/server;C:/Program Files/Java/jdk1.6.0_35/bin/../jre/bin;C:/Program Files/Java/jdk1.6.0_35/bin/../jre/lib/amd64;c:\program files\apache-maven-3.0.x\bin;C:\Ruby192\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\sybase15_0_7\OCS-15_0\bin;C:\sybase15_0_7\OCS-15_0\dll;C:\sybase15_0_7\OCS-15_0\lib3p;C:\sybase15_0_7\DataAccess\ADONET\dll;C:\sybase15_0_7\DataAccess\ODBC\dll;C:\sybase15_0_7\DataAccess\OLEDB\dll;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\MySQL\MySQL Server 5.5\bin;c:\Program Files\Stellent\IBPM;C:\PROGRA~2\IBM\SQLLIB\BIN;C:\PROGRA~2\IBM\SQLLIB\FUNCTION;C:\PROGRA~2\IBM\SQLLIB\bin;%JAVA_HOME%\bin;C:\Program Files\apache-maven-3.0.4\bin;C:\Oracle_Instant_Client(32bit)\instantclient_11_2;C:\Program Files (x86)\Git\cmd;C:\Program Files\TortoiseSVN\bin;C:\Program Files\eclipse;;. 
10:08:12,087 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080 
10:08:12,089 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009 
10:08:12,122 INFO [StandardService] Starting service jboss.web 
10:08:12,130 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.3.GA 
10:08:12,235 INFO [Catalina] Server startup in 145 ms 
10:08:12,258 INFO [TomcatDeployment] deploy, ctxPath=/web-console 
10:08:12,993 INFO [TomcatDeployment] deploy, ctxPath=/jbossws 
10:08:13,068 INFO [TomcatDeployment] deploy, ctxPath=/invoker 
10:08:13,242 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml 
10:08:13,285 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml 
10:08:13,310 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml 
10:08:13,324 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml 
10:08:13,353 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml 
10:08:13,422 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main 
10:08:13,442 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created. 
10:08:13,445 INFO [RAMJobStore] RAMJobStore initialized. 
10:08:13,446 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties' 
10:08:13,446 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2 
10:08:13,446 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started. 
10:08:13,769 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS' 
10:08:14,145 INFO [ServerPeer] JBoss Messaging 1.4.3.GA server [0] started 
10:08:14,220 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000 
10:08:14,269 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds 
10:08:14,269 INFO [ConnectionFactory] [email protected]c started 
10:08:14,271 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000 
10:08:14,272 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds 
10:08:14,272 INFO [ConnectionFactory] [email protected]3 started 
10:08:14,272 INFO [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover 
10:08:14,282 INFO [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing 
10:08:14,283 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds 
10:08:14,283 INFO [ConnectionFactory] [email protected]a started 
10:08:14,419 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA' 
10:08:14,705 INFO [JBossASKernel] Created KernelDeployment for: profileservice-secured.jar 
10:08:14,712 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3 
10:08:14,712 INFO [JBossASKernel] with dependencies: 
10:08:14,712 INFO [JBossASKernel] and demands: 
10:08:14,712 INFO [JBossASKernel] jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView 
10:08:14,712 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService 
10:08:14,713 INFO [JBossASKernel] and supplies: 
10:08:14,713 INFO [JBossASKernel] Class:org.jboss.profileservice.spi.ProfileService 
10:08:14,713 INFO [JBossASKernel] jndi:SecureProfileService/remote 
10:08:14,713 INFO [JBossASKernel] jndi:SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService 
10:08:14,713 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3) to KernelDeployment of: profileservice-secured.jar 
10:08:14,714 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3 
10:08:14,714 INFO [JBossASKernel] with dependencies: 
10:08:14,714 INFO [JBossASKernel] and demands: 
10:08:14,714 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService 
10:08:14,714 INFO [JBossASKernel] and supplies: 
10:08:14,714 INFO [JBossASKernel] jndi:SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager 
10:08:14,714 INFO [JBossASKernel] Class:org.jboss.deployers.spi.management.deploy.DeploymentManager 
10:08:14,714 INFO [JBossASKernel] jndi:SecureDeploymentManager/remote 
10:08:14,714 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3) to KernelDeployment of: profileservice-secured.jar 
10:08:14,715 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3 
10:08:14,715 INFO [JBossASKernel] with dependencies: 
10:08:14,715 INFO [JBossASKernel] and demands: 
10:08:14,715 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService 
10:08:14,715 INFO [JBossASKernel] and supplies: 
10:08:14,715 INFO [JBossASKernel] jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView 
10:08:14,715 INFO [JBossASKernel] Class:org.jboss.deployers.spi.management.ManagementView 
10:08:14,715 INFO [JBossASKernel] jndi:SecureManagementView/remote 
10:08:14,715 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3) to KernelDeployment of: profileservice-secured.jar 
10:08:14,722 INFO [EJB3EndpointDeployer] Deploy [email protected]{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true} 
10:08:14,723 INFO [EJB3EndpointDeployer] Deploy [email protected]{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true} 
10:08:14,723 INFO [EJB3EndpointDeployer] Deploy [email protected]{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true} 
10:08:14,877 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3 
10:08:14,887 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureDeploymentManager ejbName: SecureDeploymentManager 
10:08:15,010 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI: 

    SecureDeploymentManager/remote - EJB3.x Default Remote Business Interface 
    SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager - EJB3.x Remote Business Interface 

10:08:15,055 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3 
10:08:15,056 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureManagementView ejbName: SecureManagementView 
10:08:15,064 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI: 

    SecureManagementView/remote - EJB3.x Default Remote Business Interface 
    SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView - EJB3.x Remote Business Interface 

10:08:15,107 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3 
10:08:15,108 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureProfileServiceBean ejbName: SecureProfileService 
10:08:15,150 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI: 

    SecureProfileService/remote - EJB3.x Default Remote Business Interface 
    SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService - EJB3.x Remote Business Interface 

10:08:15,778 INFO [TomcatDeployment] deploy, ctxPath=/admin-console 
10:08:15,930 INFO [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console' 
10:08:19,678 INFO [TomcatDeployment] deploy, ctxPath=/ 
10:08:23,577 INFO [TomcatDeployment] deploy, ctxPath=/WebDataViewer 
10:08:23,825 INFO [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/WebDataViewer' 
10:08:24,812 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console 
10:08:25,069 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080 
10:08:25,093 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009 
10:08:25,099 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in 45s:387ms 

段從web.xml中

<servlet> 
     <servlet-name>Faces Servlet</servlet-name> 
     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> 
     <load-on-startup>1</load-on-startup> 
    </servlet> 
    <servlet-mapping> 
     <servlet-name>Faces Servlet</servlet-name> 
     <url-pattern>*.xhtml</url-pattern> 
    </servlet-mapping> 

    <welcome-file-list> 
     <welcome-file>index.html</welcome-file> 
    </welcome-file-list> 
+0

404意味着您的Web地址不指向Web服務器中的任何內容,並且實際上沒有更多的日誌文件可以對此進行說明。 –

+0

確切的原因,我在這裏發佈了一個問題。從日誌中,它看起來像我的網址是正確的,應該有東西出現 - 至少是一個錯誤。 – Catfish

+0

我從來沒有學會低估Java EE容器如何令人沮喪。 –

回答

3

地址http://localhost:8080/WebDataViewer只是點到應用程序的上下文根,因此,如果您已經定義(如索引默認頁面都可以正常運行。 JSP)。如果您沒有上下文根WebDataViewer的默認資源,則必須指定資源名稱(資源可以是servlet,jsp,jsf ...),例如:http://localhost:8080/WebDataViewer/myservlet.

通常您可以看在你的應用程序的WEB-INF/web.xml中的應用程序定義的資源,例如:

<servlet-mapping> 
<servlet-name>MyServlet</servlet-name> 
<url-pattern>/myservlet</url-pattern> 
</servlet-mapping> 

在你的情況下,根據你的web.xml,好像你使用JSF。所以我猜你應該在你的戰​​爭根目錄(或者至少在任何子目錄中)有一些xhtml文件。例如,如果你的戰爭是這樣的:

WebDataViewer.war 
    | 
    |--page.xhtml 
    | 
    |--WEB-INF 
    |  | 
    |  |- web.xml 
    |  |- ... 
    |- ... 

有效地址是:http://localhost:8080/WebDataViewer/page.xhtml

+0

我已經有了。我用我的一些web.xml更新了我的問題。 – Catfish

+0

我曾經在使用Glassfish的時候搞清楚了404,結果發現這個URL是***區分大小寫***。可能值得100%肯定你有這種情況。 –

+0

這是從我的瀏覽器'http:// localhost:8080/WebDataViewer /'複製的網址。上下文與我提供的日誌中的內容相匹配 – Catfish

相關問題