2 Replies Latest reply on Sep 23, 2005 5:59 PM by Chris Hall

    Can't find .par archive after seemingly successful deploymen

    Chris Hall Newbie

      Hi,

      I'm having a bit of a problem getting my persistent EJBs working. I've packaged them in a .par file, added the persistence.xml file and deployed it and go no errors until I try to get a session bean to access one, then I get something like the following:


      22:55:10,570 WARN [JarVisitor] Unable to find file (ignored): opt/jboss-4.0.3RC2/server/default/tmp/deploy/tmp5199News.ear-contents/News.ejb3
      java.util.zip.ZipException: No such file or directory


      (I know it says News.ejb3 and not News.par but I get the same error with .par, I just read that JBoss doesn't insist on them neing in a .par file and I was desperately trying everything)

      It looks to me like there is a missing / in the filename that the server is looking for, have I done something completly stupid?

      Full output of deployment to error below

      22:54:53,126 INFO [EARDeployer] Init J2EE application: file:/opt/jboss-4.0.3RC2/server/default/deploy/News.ear
      22:54:53,344 INFO [JaccHelper] Initialising JACC Context for deployment: News.ejb3
      22:54:53,385 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=org.clapham.ejb.AuthorsBean, class=org.clapham.ejb.AuthorsBean, type=STATELESS
      22:54:53,534 INFO [JaccHelper] org.clapham.ejb.AuthorsBean has no @SecurityDomain - skipping JACC configuration
      22:54:53,561 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=org.clapham.ejb.CalculatorBean, class=org.clapham.ejb.CalculatorBean, type=STATELESS
      22:54:53,610 INFO [JaccHelper] org.clapham.ejb.CalculatorBean has no @SecurityDomain - skipping JACC configuration
      22:54:53,663 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=org.clapham.ejb.GetLatestNewsBean, class=org.clapham.ejb.GetLatestNewsBean, type=STATELESS
      22:54:53,729 INFO [JaccHelper] org.clapham.ejb.GetLatestNewsBean has no @SecurityDomain - skipping JACC configuration
      22:54:53,766 INFO [Ejb3Deployment] Found persistence.xml file in EJB3 jar
      22:54:53,836 INFO [HibernatePersistence] found EJB3 Entity bean: org.clapham.par.Author
      22:54:53,841 INFO [HibernatePersistence] found EJB3 Entity bean: org.clapham.par.News
      22:54:53,875 INFO [Configuration] processing extends queue
      22:54:53,875 INFO [Configuration] processing collection mappings
      22:54:53,876 INFO [CollectionBinder] Mapping collection: org.clapham.par.Author.articles -> News
      22:54:53,876 INFO [Configuration] processing association property references
      22:54:53,876 INFO [Configuration] processing foreign key constraints
      22:54:53,925 INFO [Configuration] processing extends queue
      22:54:53,925 INFO [Configuration] processing collection mappings
      22:54:53,926 INFO [Configuration] processing association property references
      22:54:53,926 INFO [Configuration] processing foreign key constraints
      22:54:53,926 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.InjectedDataSourceConnectionProvider
      22:54:53,926 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
      22:54:53,927 INFO [SettingsFactory] RDBMS: MySQL, version: 4.0.24
      22:54:53,927 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.0.11-stable ( $Date: 2004/02/04 02:47:36 $, $Revision: 1.27.2.34 $ )
      22:54:53,927 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
      22:54:53,928 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
      22:54:53,928 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
      22:54:53,931 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
      22:54:53,931 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
      22:54:53,931 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
      22:54:53,931 INFO [SettingsFactory] JDBC batch size: 15
      22:54:53,931 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
      22:54:53,931 INFO [SettingsFactory] Scrollable result sets: enabled
      22:54:53,931 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
      22:54:53,931 INFO [SettingsFactory] Connection release mode: after_statement
      22:54:53,932 INFO [SettingsFactory] Maximum outer join fetch depth: 2
      22:54:53,932 INFO [SettingsFactory] Default batch fetch size: 1
      22:54:53,932 INFO [SettingsFactory] Generate SQL with comments: disabled
      22:54:53,932 INFO [SettingsFactory] Order SQL updates by primary key: disabled
      22:54:53,932 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      22:54:53,932 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
      22:54:53,932 INFO [SettingsFactory] Query language substitutions: {}
      22:54:53,932 INFO [SettingsFactory] Second-level cache: enabled
      22:54:53,932 INFO [SettingsFactory] Query cache: disabled
      22:54:53,932 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
      22:54:53,932 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
      22:54:53,932 INFO [SettingsFactory] Structured second-level cache entries: disabled
      22:54:53,932 INFO [SettingsFactory] Statistics: disabled
      22:54:53,932 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: enabled
      22:54:53,933 INFO [SettingsFactory] Default entity-mode: pojo
      22:54:53,942 INFO [SessionFactoryImpl] building session factory
      22:54:54,066 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
      22:54:54,066 INFO [Configuration] processing extends queue
      22:54:54,066 INFO [Configuration] processing collection mappings
      22:54:54,066 INFO [Configuration] processing association property references
      22:54:54,066 INFO [Configuration] processing foreign key constraints
      22:54:54,067 INFO [Configuration] processing extends queue
      22:54:54,067 INFO [Configuration] processing collection mappings
      22:54:54,067 INFO [Configuration] processing association property references
      22:54:54,067 INFO [Configuration] processing foreign key constraints
      22:54:54,067 INFO [SchemaExport] Running hbm2ddl schema export
      22:54:54,067 INFO [SchemaExport] exporting generated schema to database
      22:54:54,212 INFO [SchemaExport] schema export complete
      22:54:54,212 INFO [Configuration] processing extends queue
      22:54:54,212 INFO [Configuration] processing collection mappings
      22:54:54,213 INFO [Configuration] processing association property references
      22:54:54,213 INFO [Configuration] processing foreign key constraints
      22:54:54,213 INFO [Configuration] processing extends queue
      22:54:54,213 INFO [Configuration] processing collection mappings
      22:54:54,213 INFO [Configuration] processing association property references
      22:54:54,216 INFO [Configuration] processing foreign key constraints
      22:54:54,217 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      22:54:54,218 INFO [SessionFactoryImpl] Checking 0 named queries
      22:54:54,219 INFO [Ejb3Deployment] Create EntityManager with JNDI name: manager1
      22:54:54,220 INFO [JaccHelper] JACC Policy Configuration for deployment has been put in service
      22:54:54,220 INFO [Ejb3Deployment] EJB3 deployment time took: 876
      22:54:54,296 INFO [ProxyDeployer] no declared remote bindings for : org.clapham.ejb.AuthorsBean
      22:54:54,296 INFO [ProxyDeployer] there is remote interfaces for org.clapham.ejb.AuthorsBean
      22:54:54,296 INFO [ProxyDeployer] default remote binding has jndiName of org.clapham.ejb.Authors
      22:54:54,490 INFO [ProxyDeployer] no declared remote bindings for : org.clapham.ejb.CalculatorBean
      22:54:54,490 INFO [ProxyDeployer] there is remote interfaces for org.clapham.ejb.CalculatorBean
      22:54:54,491 INFO [ProxyDeployer] default remote binding has jndiName of org.clapham.ejb.Calculator
      22:54:54,526 INFO [ProxyDeployer] no declared remote bindings for : org.clapham.ejb.GetLatestNewsBean
      22:54:54,528 INFO [ProxyDeployer] there is remote interfaces for org.clapham.ejb.GetLatestNewsBean
      22:54:54,529 INFO [ProxyDeployer] default remote binding has jndiName of org.clapham.ejb.GetLatestNews
      22:54:54,554 INFO [EJB3Deployer] Deployed: file:/opt/jboss-4.0.3RC2/server/default/tmp/deploy/tmp5199News.ear-contents/News.ejb3
      22:54:54,660 INFO [TomcatDeployer] deploy, ctxPath=/News, warUrl=.../tmp/deploy/tmp5199News.ear-contents/News.war/
      22:54:55,116 INFO [EARDeployer] Started J2EE application: file:/opt/jboss-4.0.3RC2/server/default/deploy/News.ear
      22:55:10,570 WARN [JarVisitor] Unable to find file (ignored): opt/jboss-4.0.3RC2/server/default/tmp/deploy/tmp5199News.ear-contents/News.ejb3
      java.util.zip.ZipException: No such file or directory
       at java.util.zip.ZipFile.open(Native Method)
       at java.util.zip.ZipFile.<init>(ZipFile.java:204)
       at java.util.jar.JarFile.<init>(JarFile.java:132)
       at java.util.jar.JarFile.<init>(JarFile.java:70)
       at org.hibernate.ejb.packaging.ZippedJarVisitor.doProcessElements(ZippedJarVisitor.java:27)
       at org.hibernate.ejb.packaging.JarVisitor.getClassNames(JarVisitor.java:75)
       at org.hibernate.ejb.HibernatePersistence.addMetadataFromVisitor(HibernatePersistence.java:209)
       at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:178)
       at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
       at org.clapham.ejb.GetLatestNewsBean.<init>(GetLatestNewsBean.java:46)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
       at org.jboss.ejb3.EJBContainer.construct(EJBContainer.java:168)
       at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:42)
       at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:33)
       at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:36)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:63)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:91)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:195)
       at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107)
       at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:69)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:566)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:436)
       at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:239)
       at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:277)
       at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:168)