2 Replies Latest reply on Sep 8, 2009 12:04 AM by saravvij

    JBOSS 5.0 Failed to load profile - JPA

    saravvij

      Hi, I am getting the below exception when I start my Jboss server, I created this project in JBDS. Could anyone help me to figure out what I am missing?. The similar configuration is working in JBOSS4.x.

      This is my application structure.

      EAR file name: actionbazaar-ear
      ejb module: actionbazaar-ejb
      web module: actionbazaar-web
      jpa module: actionbazaar-jpa

      application.xml file is below

      <?xml version="1.0" encoding="UTF-8"?>
      <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" id="Application_ID" version="5">
       <display-name>actionbazaar-ear</display-name>
       <module>
       <ejb>actionbazaar-ejb.jar</ejb>
       </module>
       <module>
       <web>
       <web-uri>actionbazaar-web.war</web-uri>
       <context-root>actionbazaar-web</context-root>
       </web>
       </module>
       <module>
       <java>actionbazaar-jpa</java>
       </module>
      </application>



      Exception:

      [color=444444]06:58:26,578 INFO [ServerImpl] Starting JBoss (Microcontainer)...
      06:58:26,578 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)
      06:58:26,578 INFO [ServerImpl] Bootstrap URL: null
      06:58:26,578 INFO [ServerImpl] Home Dir: C:\jboss-5.0.1.GA\jboss-5.0.1.GA
      06:58:26,578 INFO [ServerImpl] Home URL: file:/C:/jboss-5.0.1.GA/jboss-5.0.1.GA/
      06:58:26,578 INFO [ServerImpl] Library URL: file:/C:/jboss-5.0.1.GA/jboss-5.0.1.GA/lib/
      06:58:26,578 INFO [ServerImpl] Patch URL: null
      06:58:26,578 INFO [ServerImpl] Common Base URL: file:/C:/jboss-5.0.1.GA/jboss-5.0.1.GA/common/
      06:58:26,578 INFO [ServerImpl] Common Library URL: file:/C:/jboss-5.0.1.GA/jboss-5.0.1.GA/common/lib/
      06:58:26,578 INFO [ServerImpl] Server Name: default
      06:58:26,578 INFO [ServerImpl] Server Base Dir: C:\jboss-5.0.1.GA\jboss-5.0.1.GA\server
      06:58:26,578 INFO [ServerImpl] Server Base URL: file:/C:/jboss-5.0.1.GA/jboss-5.0.1.GA/server/
      06:58:26,593 INFO [ServerImpl] Server Config URL: file:/C:/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/conf/
      06:58:26,593 INFO [ServerImpl] Server Home Dir: C:\jboss-5.0.1.GA\jboss-5.0.1.GA\server\default
      06:58:26,593 INFO [ServerImpl] Server Home URL: file:/C:/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/
      06:58:26,593 INFO [ServerImpl] Server Data Dir: C:\jboss-5.0.1.GA\jboss-5.0.1.GA\server\default\data
      06:58:26,593 INFO [ServerImpl] Server Library URL: file:/C:/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/lib/
      06:58:26,593 INFO [ServerImpl] Server Log Dir: C:\jboss-5.0.1.GA\jboss-5.0.1.GA\server\default\log
      06:58:26,593 INFO [ServerImpl] Server Native Dir: C:\jboss-5.0.1.GA\jboss-5.0.1.GA\server\default\tmp\native
      06:58:26,593 INFO [ServerImpl] Server Temp Dir: C:\jboss-5.0.1.GA\jboss-5.0.1.GA\server\default\tmp
      06:58:26,593 INFO [ServerImpl] Server Temp Deploy Dir: C:\jboss-5.0.1.GA\jboss-5.0.1.GA\server\default\tmp\deploy
      06:58:27,109 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/conf/bootstrap.xml
      06:58:27,546 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
      06:58:27,546 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
      06:58:27,843 INFO [CopyMechanism] VFS temp dir: C:\jboss-5.0.1.GA\jboss-5.0.1.GA\server\default\tmp
      06:58:27,843 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
      06:58:28,656 INFO [ServerInfo] Java version: 1.6.0_14,Sun Microsystems Inc.
      06:58:28,656 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
      06:58:28,656 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 14.0-b16,Sun Microsystems Inc.
      06:58:28,656 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      06:58:28,687 INFO [JMXKernel] Legacy JMX core initialized
      06:58:30,218 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@d8fd1a(root=C:\jboss-5.0.1.GA\jboss-5.0.1.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
      06:58:30,218 INFO [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@d8fd1a(root=C:\jboss-5.0.1.GA\jboss-5.0.1.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
      06:58:30,218 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@1c313da{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}
      06:58:31,578 INFO [WebService] Using RMI server codebase: http://localhost:8083/
      06:58:37,171 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
      06:58:37,171 INFO [NativeServerConfig] 3.0.5.GA
      06:58:39,750 ERROR [ProfileServiceBootstrap] Failed to load profile:
      org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(actionbazaar-ear.ear)
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1000)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:303)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:547)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.RuntimeException: Error determining structure: actionbazaar-ear.ear
      at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:293)
      at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
      at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
      at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
      ... 10 more
      Caused by: java.lang.RuntimeException: actionbazaar-jpa module listed in application.xml does not exist within .ear vfsfile:/C:/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/actionbazaar-ear.ear/
      at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:272)
      ... 14 more
      06:58:39,750 INFO [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)] Started i
      n 13s:157ms