JSF RI 1.2+Facelet1.3.5+MyFaces1.2.7+Richfaces3.2.0+Tomahawk1.1.9

阅读更多

开发环境:MyEclipse7.5+JBoss 5.1GA+JDK1.6
部署环境: Red Linux+JDK1.6+JBoss 5.1GA
web.xml中配置
org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL true javax.faces.CONFIG_FILES /WEB-INF/config/faces-config.xml org.apache.myfaces.webapp.StartupServletContextListener MyFacesExtensionsFilter org.apache.myfaces.webapp.filter.ExtensionsFilter uploadMaxFileSize 20m MyFacesExtensionsFilter Faces Servlet MyFacesExtensionsFilter /faces/myFacesExtensionResource/* org.ajax4jsf.SKIN blueSky org.ajax4jsf.COMPRESS_SCRIPT false Ajax4jsf Filter ajax4jsf org.ajax4jsf.Filter forceparser false ajax4jsf Faces Servlet FORWARD REQUEST INCLUDE facelets.DEVELOPMENT true org.ajax4jsf.VIEW_HANDLERS com.sun.facelets.FaceletViewHandler com.sun.faces.validateXml true javax.faces.DEFAULT_SUFFIX .xhtml facelets.REFRESH_PERIOD 2 facelets.DEVELOPMENT true javax.faces.STATE_SAVING_METHOD client Faces Servlet javax.faces.webapp.FacesServlet 0 Faces Servlet *.faces Faces Servlet *.jsf BASIC 30 index.jsp

需要的jar
common-annotations.jar commons-beanutils-1.7.0.jar commons-codec-1.3.jar commons-collections-3.2.jar commons-digester-1.8.jar commons-discovery-0.4.jar commons-el-1.0.jar commons-fileupload-1.2.1.jar commons-io-1.4.jar commons-logging-1.1.1.jar jsf-api.jar jsf-facelets.jar jsf-impl.jar jstl-1.1.0.jar myfaces-api-1.2.7.jar myfaces-impl-1.2.7.jar richfaces-api-3.2.0.GA.jar richfaces-impl-3.2.0.GA.jar richfaces-ui-3.2.0.GA.jar standard.jar tomahawk-1.1.9.jar

日志:

00:01:20,828 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core 00:01:20,828 INFO [NativeServerConfig] 3.1.2.GA 00:01:21,812 INFO [AttributeCallbackItem] Owner callback not implemented. 00:01:24,125 INFO [LogNotificationListener] Adding notification listener for logging mbean "jboss.system:service=Logging,type=Log4jService" to server org.jboss.mx.server.MBeanServerImpl@a6e0a9[ defaultDomain='jboss' ] 00:01:51,812 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@23396239{vfszip:/D:/software/jboss-5.1.0.GA/server/default/deploy/demoejb.jar/} 00:01:51,812 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@23396239{vfszip:/D:/software/jboss-5.1.0.GA/server/default/deploy/demoejb.jar/} 00:01:51,812 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@30536690{vfsfile:/D:/software/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/} 00:01:51,812 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@30536690{vfsfile:/D:/software/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/} 00:01:51,812 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@30536690{vfsfile:/D:/software/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/} 00:01:51,812 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@30536690{vfsfile:/D:/software/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/} 00:01:51,828 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@6033476{vfsfile:/D:/software/jboss-5.1.0.GA/server/default/deploy/support.ear/supportEJB.jar/} 00:01:51,828 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@6033476{vfsfile:/D:/software/jboss-5.1.0.GA/server/default/deploy/support.ear/supportEJB.jar/} 00:01:56,187 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector 00:01:56,515 INFO [MailService] Mail Service bound to java:/Mail 00:02:00,953 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. 00:02:00,968 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent 00:02:01,140 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent 00:02:01,296 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version - tag:JBOSSTS_4_6_1_GA) - JBoss Inc. 00:02:01,296 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer 00:02:01,859 INFO [TransactionManagerService] Initializing recovery manager 00:02:02,250 INFO [TransactionManagerService] Recovery manager configured 00:02:02,265 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference 00:02:02,343 INFO [TransactionManagerService] Starting transaction recovery manager 00:02:03,375 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\software\jdk1.6.0_04\bin 00:02:03,515 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080 00:02:03,515 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009 00:02:03,578 INFO [StandardService] Starting service jboss.web 00:02:03,578 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.3.GA 00:02:03,734 INFO [Catalina] Server startup in 221 ms 00:02:03,781 INFO [TomcatDeployment] deploy, ctxPath=/web-console 00:02:06,437 INFO [TomcatDeployment] deploy, ctxPath=/jbossws 00:02:06,500 INFO [TomcatDeployment] deploy, ctxPath=/invoker 00:02:06,687 INFO [RARDeployment] Required license terms exist, view vfszip:/D:/software/jboss-5.1.0.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml 00:02:06,718 INFO [RARDeployment] Required license terms exist, view vfszip:/D:/software/jboss-5.1.0.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml 00:02:06,781 INFO [RARDeployment] Required license terms exist, view vfszip:/D:/software/jboss-5.1.0.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml 00:02:06,812 INFO [RARDeployment] Required license terms exist, view vfszip:/D:/software/jboss-5.1.0.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml 00:02:06,859 INFO [RARDeployment] Required license terms exist, view vfszip:/D:/software/jboss-5.1.0.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml 00:02:07,156 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main 00:02:07,203 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created. 00:02:07,203 INFO [RAMJobStore] RAMJobStore initialized. 00:02:07,203 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties' 00:02:07,203 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2 00:02:07,203 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started. 00:02:08,359 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS' 00:02:10,171 INFO [ServerPeer] JBoss Messaging 1.4.3.GA server [0] started 00:02:10,312 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000 00:02:10,453 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds 00:02:10,453 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1dd31be started 00:02:10,453 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000 00:02:10,453 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds 00:02:10,453 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1837295 started 00:02:10,453 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 00:02:10,453 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 00:02:10,453 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds 00:02:10,453 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1d2ea56 started 00:02:10,625 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA' 00:02:10,671 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=support' to JNDI name 'java:support' 00:02:11,484 INFO [JBossASKernel] Created KernelDeployment for: demoejb.jar 00:02:11,500 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=demoejb.jar,name=HelloWorldBean,service=EJB3 00:02:11,500 INFO [JBossASKernel] with dependencies: 00:02:11,500 INFO [JBossASKernel] and demands: 00:02:11,500 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService 00:02:11,500 INFO [JBossASKernel] and supplies: 00:02:11,500 INFO [JBossASKernel] Class:com.foshanshop.ejb3.impl.HelloWorldLocal 00:02:11,500 INFO [JBossASKernel] jndi:HelloWorldBean/remote-com.foshanshop.ejb3.HelloWorld 00:02:11,500 INFO [JBossASKernel] Class:com.foshanshop.ejb3.HelloWorld 00:02:11,500 INFO [JBossASKernel] jndi:HelloWorldBean/local 00:02:11,500 INFO [JBossASKernel] jndi:HelloWorldBean/remote 00:02:11,500 INFO [JBossASKernel] jndi:HelloWorldBean/local-com.foshanshop.ejb3.impl.HelloWorldLocal 00:02:11,500 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=demoejb.jar,name=HelloWorldBean,service=EJB3) to KernelDeployment of: demoejb.jar 00:02:11,500 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@187828f{name=jboss.j2ee:jar=demoejb.jar,name=HelloWorldBean,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true} 00:02:11,671 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=demoejb.jar,name=HelloWorldBean,service=EJB3 00:02:11,687 INFO [EJBContainer] STARTED EJB: com.foshanshop.ejb3.impl.HelloWorldBean ejbName: HelloWorldBean 00:02:11,781 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI: HelloWorldBean/remote - EJB3.x Default Remote Business Interface HelloWorldBean/remote-com.foshanshop.ejb3.HelloWorld - EJB3.x Remote Business Interface HelloWorldBean/local - EJB3.x Default Local Business Interface HelloWorldBean/local-com.foshanshop.ejb3.impl.HelloWorldLocal - EJB3.x Local Business Interface 00:02:12,109 INFO [JBossASKernel] Created KernelDeployment for: profileservice-secured.jar 00:02:12,109 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3 00:02:12,109 INFO [JBossASKernel] with dependencies: 00:02:12,109 INFO [JBossASKernel] and demands: 00:02:12,109 INFO [JBossASKernel] jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView 00:02:12,109 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService 00:02:12,109 INFO [JBossASKernel] and supplies: 00:02:12,109 INFO [JBossASKernel] Class:org.jboss.profileservice.spi.ProfileService 00:02:12,109 INFO [JBossASKernel] jndi:SecureProfileService/remote 00:02:12,109 INFO [JBossASKernel] jndi:SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService 00:02:12,109 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3) to KernelDeployment of: profileservice-secured.jar 00:02:12,109 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3 00:02:12,109 INFO [JBossASKernel] with dependencies: 00:02:12,109 INFO [JBossASKernel] and demands: 00:02:12,109 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService 00:02:12,109 INFO [JBossASKernel] and supplies: 00:02:12,109 INFO [JBossASKernel] jndi:SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager 00:02:12,109 INFO [JBossASKernel] Class:org.jboss.deployers.spi.management.deploy.DeploymentManager 00:02:12,109 INFO [JBossASKernel] jndi:SecureDeploymentManager/remote 00:02:12,109 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3) to KernelDeployment of: profileservice-secured.jar 00:02:12,109 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3 00:02:12,109 INFO [JBossASKernel] with dependencies: 00:02:12,109 INFO [JBossASKernel] and demands: 00:02:12,109 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService 00:02:12,109 INFO [JBossASKernel] and supplies: 00:02:12,109 INFO [JBossASKernel] jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView 00:02:12,109 INFO [JBossASKernel] Class:org.jboss.deployers.spi.management.ManagementView 00:02:12,125 INFO [JBossASKernel] jndi:SecureManagementView/remote 00:02:12,125 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3) to KernelDeployment of: profileservice-secured.jar 00:02:12,125 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@67794{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} 00:02:12,125 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@1b0fedc{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} 00:02:12,125 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@112022e{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} 00:02:12,187 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3 00:02:12,187 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureDeploymentManager ejbName: SecureDeploymentManager 00:02:12,218 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 00:02:12,296 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3 00:02:12,296 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureManagementView ejbName: SecureManagementView 00:02:12,328 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 00:02:12,406 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3 00:02:12,406 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureProfileServiceBean ejbName: SecureProfileService 00:02:12,421 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 00:02:12,609 INFO [TomcatDeployment] deploy, ctxPath=/admin-console 00:02:12,765 INFO [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console' 00:02:16,796 INFO [TomcatDeployment] deploy, ctxPath=/ 00:02:16,890 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console 00:02:17,171 INFO [JBossASKernel] Created KernelDeployment for: supportEJB.jar 00:02:17,171 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=support.ear,jar=supportEJB.jar,name=HelloWorldBean,service=EJB3 00:02:17,171 INFO [JBossASKernel] with dependencies: 00:02:17,171 INFO [JBossASKernel] and demands: 00:02:17,171 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService 00:02:17,171 INFO [JBossASKernel] and supplies: 00:02:17,171 INFO [JBossASKernel] jndi:support/HelloWorldBean/remote 00:02:17,171 INFO [JBossASKernel] jndi:support/HelloWorldBean/remote-com.suretech.support.HelloWorld 00:02:17,171 INFO [JBossASKernel] Class:com.suretech.support.HelloWorld 00:02:17,171 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=support.ear,jar=supportEJB.jar,name=HelloWorldBean,service=EJB3) to KernelDeployment of: supportEJB.jar 00:02:17,171 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=support.ear,jar=supportEJB.jar,name=CustomersFacade,service=EJB3 00:02:17,171 INFO [JBossASKernel] with dependencies: 00:02:17,171 INFO [JBossASKernel] and demands: 00:02:17,171 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService 00:02:17,171 INFO [JBossASKernel] persistence.unit:unitName=support.ear/supportEJB.jar#supportEJBPU 00:02:17,171 INFO [JBossASKernel] and supplies: 00:02:17,171 INFO [JBossASKernel] jndi:support/CustomersFacade/local-com.suretech.support.user.ejb.CustomersFacadeLocal 00:02:17,171 INFO [JBossASKernel] jndi:support/CustomersFacade/remote 00:02:17,171 INFO [JBossASKernel] Class:com.suretech.support.user.ejb.CustomersFacadeRemote 00:02:17,171 INFO [JBossASKernel] jndi:support/CustomersFacade/remote-com.suretech.support.user.ejb.CustomersFacadeRemote 00:02:17,171 INFO [JBossASKernel] jndi:support/CustomersFacade/local 00:02:17,171 INFO [JBossASKernel] Class:com.suretech.support.user.ejb.CustomersFacadeLocal 00:02:17,171 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=support.ear,jar=supportEJB.jar,name=CustomersFacade,service=EJB3) to KernelDeployment of: supportEJB.jar 00:02:17,171 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=support.ear,jar=supportEJB.jar,name=OrdersFacade,service=EJB3 00:02:17,171 INFO [JBossASKernel] with dependencies: 00:02:17,171 INFO [JBossASKernel] and demands: 00:02:17,171 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService 00:02:17,171 INFO [JBossASKernel] persistence.unit:unitName=support.ear/supportEJB.jar#supportEJBPU 00:02:17,171 INFO [JBossASKernel] and supplies: 00:02:17,171 INFO [JBossASKernel] jndi:support/OrdersFacade/local 00:02:17,171 INFO [JBossASKernel] Class:com.suretech.support.user.ejb.OrdersFacadeRemote 00:02:17,171 INFO [JBossASKernel] jndi:support/OrdersFacade/local-com.suretech.support.user.ejb.OrdersFacadeLocal 00:02:17,171 INFO [JBossASKernel] jndi:support/OrdersFacade/remote-com.suretech.support.user.ejb.OrdersFacadeRemote 00:02:17,171 INFO [JBossASKernel] Class:com.suretech.support.user.ejb.OrdersFacadeLocal 00:02:17,171 INFO [JBossASKernel] jndi:support/OrdersFacade/remote 00:02:17,171 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=support.ear,jar=supportEJB.jar,name=OrdersFacade,service=EJB3) to KernelDeployment of: supportEJB.jar 00:02:17,171 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@1775d6{name=jboss.j2ee:ear=support.ear,jar=supportEJB.jar,name=CustomersFacade,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true} 00:02:17,171 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@d7ab81{name=jboss.j2ee:ear=support.ear,jar=supportEJB.jar,name=OrdersFacade,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true} 00:02:17,171 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@ba11f7{name=jboss.j2ee:ear=support.ear,jar=supportEJB.jar,name=HelloWorldBean,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true} 00:02:17,281 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=support.ear,jar=supportEJB.jar,name=HelloWorldBean,service=EJB3 00:02:17,281 INFO [EJBContainer] STARTED EJB: com.suretech.support.impl.HelloWorldBean ejbName: HelloWorldBean 00:02:17,312 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI: support/HelloWorldBean/remote - EJB3.x Default Remote Business Interface support/HelloWorldBean/remote-com.suretech.support.HelloWorld - EJB3.x Remote Business Interface 00:02:17,390 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=support.ear/supportEJB.jar#supportEJBPU 00:02:17,750 INFO [Version] Hibernate Annotations 3.4.0.GA 00:02:17,843 INFO [Environment] Hibernate 3.3.1.GA 00:02:17,890 INFO [Environment] hibernate.properties not found 00:02:17,906 INFO [Environment] Bytecode provider name : javassist 00:02:17,921 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling 00:02:18,687 INFO [Version] Hibernate Commons Annotations 3.1.0.GA 00:02:18,796 INFO [Version] Hibernate EntityManager 3.4.0.GA 00:02:19,468 INFO [Ejb3Configuration] Processing PersistenceUnitInfo [ name: supportEJBPU ...] 00:02:19,562 WARN [Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null. 00:02:21,187 INFO [AnnotationBinder] Binding entity from annotated class: com.suretech.support.user.entity.Orders 00:02:21,343 INFO [EntityBinder] Bind entity com.suretech.support.user.entity.Orders on table orders 00:02:21,500 INFO [AnnotationBinder] Binding entity from annotated class: com.suretech.support.user.entity.Customers 00:02:21,500 INFO [EntityBinder] Bind entity com.suretech.support.user.entity.Customers on table customers 00:02:21,765 INFO [CollectionBinder] Mapping collection: com.suretech.support.user.entity.Customers.orderses -> orders 00:02:21,796 INFO [Version] Hibernate Validator 3.1.0.GA 00:02:21,890 INFO [HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled. 00:02:21,937 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider 00:02:21,937 INFO [InjectedDataSourceConnectionProvider] Using provided datasource 00:02:22,718 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.22-community-nt 00:02:22,718 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.6 ( $Date: 2007-03-09 22:13:57 +0100 (Fri, 09 Mar 2007) $, $Revision: 6341 $ ) 00:02:22,812 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect 00:02:22,843 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory 00:02:22,859 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup 00:02:22,875 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup 00:02:22,875 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled 00:02:22,875 INFO [SettingsFactory] Automatic session close at end of transaction: disabled 00:02:22,875 INFO [SettingsFactory] JDBC batch size: 15 00:02:22,875 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled 00:02:22,875 INFO [SettingsFactory] Scrollable result sets: enabled 00:02:22,875 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled 00:02:22,875 INFO [SettingsFactory] Connection release mode: auto 00:02:22,890 INFO [SettingsFactory] Maximum outer join fetch depth: 2 00:02:22,890 INFO [SettingsFactory] Default batch fetch size: 1 00:02:22,890 INFO [SettingsFactory] Generate SQL with comments: disabled 00:02:22,890 INFO [SettingsFactory] Order SQL updates by primary key: disabled 00:02:22,890 INFO [SettingsFactory] Order SQL inserts for batching: disabled 00:02:22,890 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory 00:02:22,906 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory 00:02:22,906 INFO [SettingsFactory] Query language substitutions: {} 00:02:22,906 INFO [SettingsFactory] JPA-QL strict compliance: enabled 00:02:22,906 INFO [SettingsFactory] Second-level cache: enabled 00:02:22,906 INFO [SettingsFactory] Query cache: disabled 00:02:22,937 INFO [SettingsFactory] Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge 00:02:22,953 INFO [RegionFactoryCacheProviderBridge] Cache provider: org.hibernate.cache.HashtableCacheProvider 00:02:22,953 INFO [SettingsFactory] Optimize cache for minimal puts: disabled 00:02:22,953 INFO [SettingsFactory] Cache region prefix: persistence.unit:unitName=support.ear/supportEJB.jar#supportEJBPU 00:02:22,953 INFO [SettingsFactory] Structured second-level cache entries: disabled 00:02:22,984 INFO [SettingsFactory] Statistics: disabled 00:02:22,984 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled 00:02:23,000 INFO [SettingsFactory] Default entity-mode: pojo 00:02:23,000 INFO [SettingsFactory] Named query checking : enabled 00:02:23,187 INFO [SessionFactoryImpl] building session factory 00:02:23,843 INFO [SessionFactoryObjectFactory] Factory name: persistence.unit:unitName=support.ear/supportEJB.jar#supportEJBPU 00:02:23,843 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} 00:02:23,859 INFO [NamingHelper] Creating subcontext: persistence.unit:unitName=support.ear 00:02:23,859 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.unit:unitName=support.ear/supportEJB.jar#supportEJBPU 00:02:23,859 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext 00:02:23,859 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} 00:02:24,031 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=support.ear,jar=supportEJB.jar,name=OrdersFacade,service=EJB3 00:02:24,031 INFO [EJBContainer] STARTED EJB: com.suretech.support.user.ejb.OrdersFacade ejbName: OrdersFacade 00:02:24,062 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI: support/OrdersFacade/remote - EJB3.x Default Remote Business Interface support/OrdersFacade/remote-com.suretech.support.user.ejb.OrdersFacadeRemote - EJB3.x Remote Business Interface support/OrdersFacade/local - EJB3.x Default Local Business Interface support/OrdersFacade/local-com.suretech.support.user.ejb.OrdersFacadeLocal - EJB3.x Local Business Interface 00:02:24,078 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=support.ear,jar=supportEJB.jar,name=CustomersFacade,service=EJB3 00:02:24,078 INFO [EJBContainer] STARTED EJB: com.suretech.support.user.ejb.CustomersFacade ejbName: CustomersFacade 00:02:24,109 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI: support/CustomersFacade/remote - EJB3.x Default Remote Business Interface support/CustomersFacade/remote-com.suretech.support.user.ejb.CustomersFacadeRemote - EJB3.x Remote Business Interface support/CustomersFacade/local - EJB3.x Default Local Business Interface support/CustomersFacade/local-com.suretech.support.user.ejb.CustomersFacadeLocal - EJB3.x Local Business Interface 00:02:24,203 INFO [TomcatDeployment] deploy, ctxPath=/supportWeb 00:02:24,375 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true 00:02:24,375 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true 00:02:24,375 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using default value false 00:02:24,375 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value false 00:02:24,375 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true 00:02:24,375 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true 00:02:24,375 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true 00:02:24,375 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2 00:02:24,375 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value false 00:02:24,375 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false 00:02:24,375 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false 00:02:24,375 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource 00:02:24,375 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.RESOURCE_VIRTUAL_PATH' found, using default value /faces/myFacesExtensionResource 00:02:24,375 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true 00:02:24,375 INFO [MyfacesConfig] Starting up Tomahawk on the RI-JSF-Implementation. 00:02:24,375 INFO [MyfacesConfig] Starting up Tomahawk on the MyFaces-JSF-Implementation 00:02:24,375 ERROR [MyfacesConfig] Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations. 00:02:24,453 INFO [FacesConfigurator] Reading standard config META-INF/standard-faces-config.xml 00:02:25,593 INFO [FacesConfigurator] Reading config : vfszip:/D:/software/jboss-5.1.0.GA/server/default/deploy/support.ear/supportWeb.war/WEB-INF/lib/jsf-facelets.jar/META-INF/faces-config.xml 00:02:25,593 INFO [FacesConfigurator] Reading config : vfszip:/D:/software/jboss-5.1.0.GA/server/default/deploy/support.ear/supportWeb.war/WEB-INF/lib/richfaces-impl-3.2.0.GA.jar/META-INF/faces-config.xml 00:02:25,609 INFO [FacesConfigurator] Reading config : vfszip:/D:/software/jboss-5.1.0.GA/server/default/deploy/support.ear/supportWeb.war/WEB-INF/lib/richfaces-ui-3.2.0.GA.jar/META-INF/faces-config.xml 00:02:25,625 INFO [FacesConfigurator] Reading config : vfszip:/D:/software/jboss-5.1.0.GA/server/default/deploy/support.ear/supportWeb.war/WEB-INF/lib/tomahawk-1.1.9.jar/META-INF/faces-config.xml 00:02:25,640 ERROR [FacesConfigurator] Faces config resource /WEB-INF/config/faces-config.xml not found 00:02:25,640 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml 00:02:25,656 INFO [FacesConfigurator] MyFaces-package : myfaces-api not found. 00:02:25,656 INFO [FacesConfigurator] MyFaces-package : myfaces-impl not found. 00:02:25,656 INFO [FacesConfigurator] MyFaces-package : tomahawk-sandbox15 not found. 00:02:25,656 INFO [FacesConfigurator] MyFaces-package : tomahawk-sandbox not found. 00:02:25,656 INFO [FacesConfigurator] MyFaces-package : tomahawk not found. 00:02:25,703 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : zh_CN 00:02:28,578 INFO [FacesConfigurator] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory 00:02:28,593 INFO [AbstractFacesInitializer] ServletContext 'D:\software\jboss-5.1.0.GA\server\default\deploy\support.ear\supportWeb.war\' initialized. 00:02:28,781 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080 00:02:28,812 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009 00:02:28,812 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 1m:31s:687ms 00:03:34,812 WARN [SkinFactoryImpl] Init parameter for a skin name changed to org.richfaces.SKIN 00:03:43,703 ERROR [HtmlMessageRendererBase] Could not render Message. Unable to find component 'name' (calling findComponent on component 'j_id7'). If the provided id was correct, wrap the message and its component into an h:panelGroup or h:panelGrid. 00:03:43,812 INFO [DefaultLifecycleProviderFactory] Using LifecycleProvider org.apache.myfaces.config.annotation.TomcatAnnotationLifecycleProvider 00:03:43,812 INFO [TomcatAnnotationLifecycleProvider] Creating instance of demo.Person 00:03:45,656 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true 00:03:45,656 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true 00:03:45,656 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true 00:03:45,656 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true 00:03:45,656 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true 00:03:45,656 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2 00:03:45,656 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false 00:03:45,656 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false 00:03:45,656 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource 00:03:45,656 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.RESOURCE_VIRTUAL_PATH' found, using default value /faces/myFacesExtensionResource 00:03:45,656 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true 00:03:45,656 INFO [MyfacesConfig] Starting up Tomahawk on the RI-JSF-Implementation. 00:03:45,656 INFO [MyfacesConfig] Starting up Tomahawk on the MyFaces-JSF-Implementation 00:03:45,656 ERROR [MyfacesConfig] Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations. 00:03:49,109 INFO [TomcatAnnotationLifecycleProvider] Creating instance of demo.Person

说明:
如果使用JBoss 5.1嵌入的jsf ri lib,则设置WAR_BUNDLES_JSF_IMPL为false,然后把project classpath中的jsf-api.jar,jsf-impl.jar RI删除。

org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL false

你可能感兴趣的:(JSF,JBoss,EJB,Hibernate,Bean)