Então… Eu estava seguindo um tutorial, por isso deixei como esta atualmente… Não sei dizer oque acontece de errado para que ele não funcione.
Quando rodo o programa, no JBoss aparece as mensagens abaixo…
Um detalhe é que esta aparecendo 2 Warning…
Classpath Dependency Validator Message
Classpath entry /ProjetoWeb/src/main/webapp/WEB-INF/ojdbc6.jar will not be exported or published. ClassNotFoundExceptions may result.
Java Build Path Problems
Build path specifies execution environment JavaSE-1.7. There are no JREs intalled in the workspacee that are strictly compatible with this environment.
Detalhe… Eu tenho instalado o Java SE Development Kit 7 (64-bits) e o Java SE Develo… 8 (64-bits)
Erro JBoss
11:53:32,102 ERROR [stderr] (http--127.0.0.1-8088-1) java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@//localhost:1521/xe
11:53:32,106 ERROR [stderr] (http--127.0.0.1-8088-1) at java.sql.DriverManager.getConnection(DriverManager.java:596)
11:53:32,107 ERROR [stderr] (http--127.0.0.1-8088-1) at java.sql.DriverManager.getConnection(DriverManager.java:215)
11:53:32,108 ERROR [stderr] (http--127.0.0.1-8088-1) at br.net.bcfsolutions.utils.Database.getConnection(Database.java:13)
11:53:32,109 ERROR [stderr] (http--127.0.0.1-8088-1) at br.net.bcfsolutions.mb.ClientMB.guardarClient(ClientMB.java:38)
11:53:32,110 ERROR [stderr] (http--127.0.0.1-8088-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:53:32,111 ERROR [stderr] (http--127.0.0.1-8088-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
11:53:32,113 ERROR [stderr] (http--127.0.0.1-8088-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
11:53:32,114 ERROR [stderr] (http--127.0.0.1-8088-1) at java.lang.reflect.Method.invoke(Method.java:606)
11:53:32,116 ERROR [stderr] (http--127.0.0.1-8088-1) at org.apache.el.parser.AstValue.invoke(AstValue.java:262)
11:53:32,117 ERROR [stderr] (http--127.0.0.1-8088-1) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)
11:53:32,119 ERROR [stderr] (http--127.0.0.1-8088-1) at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
11:53:32,121 ERROR [stderr] (http--127.0.0.1-8088-1) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
11:53:32,123 ERROR [stderr] (http--127.0.0.1-8088-1) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
11:53:32,124 ERROR [stderr] (http--127.0.0.1-8088-1) at javax.faces.component.UICommand.broadcast(UICommand.java:315)
11:53:32,126 ERROR [stderr] (http--127.0.0.1-8088-1) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
11:53:32,129 ERROR [stderr] (http--127.0.0.1-8088-1) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
11:53:32,130 ERROR [stderr] (http--127.0.0.1-8088-1) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
11:53:32,131 ERROR [stderr] (http--127.0.0.1-8088-1) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
11:53:32,132 ERROR [stderr] (http--127.0.0.1-8088-1) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
11:53:32,133 ERROR [stderr] (http--127.0.0.1-8088-1) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
11:53:32,134 ERROR [stderr] (http--127.0.0.1-8088-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
11:53:32,135 ERROR [stderr] (http--127.0.0.1-8088-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
11:53:32,138 ERROR [stderr] (http--127.0.0.1-8088-1) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
11:53:32,139 ERROR [stderr] (http--127.0.0.1-8088-1) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
11:53:32,140 ERROR [stderr] (http--127.0.0.1-8088-1) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
11:53:32,141 ERROR [stderr] (http--127.0.0.1-8088-1) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
11:53:32,142 ERROR [stderr] (http--127.0.0.1-8088-1) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
11:53:32,145 ERROR [stderr] (http--127.0.0.1-8088-1) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
11:53:32,148 ERROR [stderr] (http--127.0.0.1-8088-1) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
11:53:32,149 ERROR [stderr] (http--127.0.0.1-8088-1) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
11:53:32,150 ERROR [stderr] (http--127.0.0.1-8088-1) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
11:53:32,151 ERROR [stderr] (http--127.0.0.1-8088-1) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
11:53:32,152 ERROR [stderr] (http--127.0.0.1-8088-1) at java.lang.Thread.run(Thread.java:745)