[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem re-deploying war inside ear

cardoso do-not-reply at jboss.com
Mon Apr 21 04:05:37 EDT 2008


The log after I copied the ear file to the deploy folder:


  | 09:43:26,501 INFO  [MCKernelAbstraction] uninstalling bean: jboss.j2ee:ear=myapp.ear,jar=myapp.jar,name=TestObjectAdminBean,service=EJB3
  | 09:43:26,513 INFO  [EJBContainer] STOPPED EJB: de.mth.myapp.server.TestObjectAdminBean ejbName: TestObjectAdminBean
  | 09:43:26,526 INFO  [MCKernelAbstraction] uninstalling bean: persistence.units:ear=myapp.ear,jar=myapp.jar,unitName=myappPU
  | 09:43:26,526 INFO  [PersistenceUnitDeployment] Stopping persistence unit persistence.units:ear=myapp.ear,jar=myapp.jar,unitName=myappPU
  | 09:43:26,527 INFO  [SessionFactoryImpl] closing
  | 09:43:26,527 INFO  [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.units:ear=myapp.ear,jar=myapp.jar,unitName=myappPU
  | 09:43:26,528 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 09:43:26,539 INFO  [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.units:ear=myapp.ear,jar=myapp.jar,unitName=myappPU
  | 09:43:26,836 INFO  [PersistenceUnitParsingDeployer] Found persistence units [org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData at 9a3139{name=myappPU}]
  | 09:43:27,601 WARN  [CollectionPropertyHandler] ClassInfo.getDeclaredConstructor(null) didn't work for org.jboss.metadata.ejb.spec.InterceptorClassesMetaData, found the default ctor in ClassInfo.getDeclaredConstructors()
  | 09:43:28,506 WARN  [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public java.util.List de.mth.myapp.server.TestObjectAdminBean.getTestObjects(), javax.annotation.security.PermitAll)
  | 09:43:28,506 WARN  [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public java.util.List de.mth.myapp.server.TestObjectAdminBean.getTestObjects(), javax.annotation.security.DenyAll)
  | 09:43:29,359 INFO  [MCKernelAbstraction] installing bean: persistence.units:ear=myapp.ear,jar=myapp.jar,unitName=myappPU with dependencies:
  | 09:43:29,359 INFO  [MCKernelAbstraction]   and demands:
  | 09:43:29,359 INFO  [MCKernelAbstraction]        jboss.jca:name=myapp1DS,service=DataSourceBinding
  | 09:43:29,359 INFO  [MCKernelAbstraction]   and supplies:
  | 09:43:29,666 INFO  [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=myapp.ear,jar=myapp.jar,unitName=myappPU
  | 09:43:29,671 WARN  [Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
  | 09:43:29,673 INFO  [AnnotationBinder] Binding entity from annotated class: de.mth.myapp.server.TestObject
  | 09:43:29,674 INFO  [EntityBinder] Bind entity de.mth.myapp.server.TestObject on table TestObjectS
  | 09:43:29,705 INFO  [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
  | 09:43:29,706 INFO  [InjectedDataSourceConnectionProvider] Using provided datasource
  | 09:43:29,706 INFO  [SettingsFactory] RDBMS: MySQL, version: 5.0.38-Ubuntu_0ubuntu1.4-log
  | 09:43:29,707 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 $ )
  | 09:43:29,707 INFO  [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
  | 09:43:29,708 INFO  [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
  | 09:43:29,709 INFO  [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
  | 09:43:29,710 INFO  [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
  | 09:43:29,710 INFO  [SettingsFactory] Automatic flush during beforeCompletion(): disabled
  | 09:43:29,710 INFO  [SettingsFactory] Automatic session close at end of transaction: disabled
  | 09:43:29,710 INFO  [SettingsFactory] JDBC batch size: 15
  | 09:43:29,710 INFO  [SettingsFactory] JDBC batch updates for versioned data: disabled
  | 09:43:29,711 INFO  [SettingsFactory] Scrollable result sets: enabled
  | 09:43:29,711 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
  | 09:43:29,711 INFO  [SettingsFactory] Connection release mode: auto
  | 09:43:29,711 INFO  [SettingsFactory] Maximum outer join fetch depth: 2
  | 09:43:29,711 INFO  [SettingsFactory] Default batch fetch size: 1
  | 09:43:29,711 INFO  [SettingsFactory] Generate SQL with comments: disabled
  | 09:43:29,711 INFO  [SettingsFactory] Order SQL updates by primary key: disabled
  | 09:43:29,712 INFO  [SettingsFactory] Order SQL inserts for batching: disabled
  | 09:43:29,712 INFO  [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
  | 09:43:29,712 INFO  [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
  | 09:43:29,713 INFO  [SettingsFactory] Query language substitutions: {}
  | 09:43:29,713 INFO  [SettingsFactory] JPA-QL strict compliance: enabled
  | 09:43:29,713 INFO  [SettingsFactory] Second-level cache: enabled
  | 09:43:29,713 INFO  [SettingsFactory] Query cache: disabled
  | 09:43:29,713 INFO  [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
  | 09:43:29,714 INFO  [SettingsFactory] Optimize cache for minimal puts: disabled
  | 09:43:29,714 INFO  [SettingsFactory] Cache region prefix: myapp_ear,myapp_jar,myappPU
  | 09:43:29,714 INFO  [SettingsFactory] Structured second-level cache entries: disabled
  | 09:43:29,714 INFO  [SettingsFactory] Statistics: disabled
  | 09:43:29,714 INFO  [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
  | 09:43:29,715 INFO  [SettingsFactory] Default entity-mode: pojo
  | 09:43:29,715 INFO  [SettingsFactory] Named query checking : enabled
  | 09:43:29,724 INFO  [SessionFactoryImpl] building session factory
  | 09:43:29,743 INFO  [SessionFactoryObjectFactory] Factory name: persistence.units:ear=myapp.ear,jar=myapp.jar,unitName=myappPU
  | 09:43:29,743 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 09:43:29,753 INFO  [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.units:ear=myapp.ear,jar=myapp.jar,unitName=myappPU
  | 09:43:29,756 WARN  [SessionFactoryObjectFactory] InitialContext did not implement EventContext
  | 09:43:29,761 INFO  [SchemaExport] Running hbm2ddl schema export
  | 09:43:29,762 INFO  [SchemaExport] exporting generated schema to database
  | 09:43:29,894 INFO  [SchemaExport] schema export complete
  | 09:43:29,895 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 09:43:29,898 INFO  [MCKernelAbstraction] installing bean: jboss.j2ee:ear=myapp.ear,jar=myapp.jar,name=TestObjectAdminBean,service=EJB3 with dependencies:
  | 09:43:29,899 INFO  [MCKernelAbstraction]   and demands:
  | 09:43:29,899 INFO  [MCKernelAbstraction]        persistence.units:ear=myapp.ear,jar=myapp.jar,unitName=myappPU
  | 09:43:29,899 INFO  [MCKernelAbstraction]        jboss.ejb:service=EJBTimerService
  | 09:43:29,899 INFO  [MCKernelAbstraction]   and supplies:
  | 09:43:29,899 INFO  [MCKernelAbstraction]        Class:de.mth.myapp.server.TestObjectAdminBeanRemote
  | 09:43:29,899 INFO  [MCKernelAbstraction]        Class:de.mth.myapp.server.TestObjectAdminBeanLocal
  | 09:43:31,884 INFO  [EJBContainer] STARTED EJB: de.mth.myapp.server.TestObjectAdminBean ejbName: TestObjectAdminBean
  | 09:43:32,435 INFO  [TomcatDeployment] deploy, ctxPath=/myapp, vfsUrl=myapp.ear/myapp.war
  | 

This happens when the servlet in the webapp TestObjectServiceImpl is trying to get the local interface for the SLSB TestObjectAdminBean:


  | 09:43:58,444 ERROR [[/myapp]] Exception while dispatching incoming RPC call
  | com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.List de.mth.myapp.client.service.TestObjectService.getTestObjectNames()' threw an unexpected exception: java.lang.ClassCastException: $Proxy89
  |         at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:361)
  |         at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:547)
  |         at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:265)
  |         at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:187)
  |         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
  |         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at de.mth.myapp.webapp.JaasLoginFilter.doFilter(JaasLoginFilter.java:80)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  |         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  |         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:189)
  |         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
  |         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:90)
  |         at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:96)
  |         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  |         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  |         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
  |         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  |         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:309)
  |         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  |         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
  |         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  |         at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.lang.ClassCastException: $Proxy89
  |         at de.mth.myapp.webapp.TestObjectServiceImpl.getTestObjectNames(TestObjectServiceImpl.java:87)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:528)
  |         ... 27 more
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145390#4145390

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145390



More information about the jboss-user mailing list