2 Replies Latest reply on Jun 10, 2009 2:04 PM by jrookie_2402

    jboss and struts2

      Hi all,
      is there anyone who can tell me, why this deployment of struts2 example (from the book) doesn't go with jboss 5.0 ?
      Take a look,

      No persisted attachment found for deployment AbstractVFSDeployment(Struts2InAction.war)

      that is for me the problem .. What is a persisted attachment and what is missing where ?


      2009-06-07 21:44:20,296 DEBUG [org.jboss.system.server.profileservice.repository.AbstractAttachmentStore] (HDScanner) No persisted attachment found for deployment AbstractVFSDeployment(Struts2InAction.war) with relative path: Struts2InAction.war-dab7fb199b682a517f67361c699b022b\
      2009-06-07 21:44:20,296 DEBUG [org.jboss.deployers.plugins.main.MainDeployerImpl] (HDScanner) Add deployment: vfszip:/F:/Entwicklung/JBoss_5.0/jboss-5.0.0.GA/server/default/deploy/Struts2InAction.war
      2009-06-07 21:44:20,828 DEBUG [org.jboss.deployers.plugins.main.MainDeployerImpl] (HDScanner) Scheduling deployment: vfszip:/F:/Entwicklung/JBoss_5.0/jboss-5.0.0.GA/server/default/deploy/Struts2InAction.war parent=null
      2009-06-07 21:44:20,828 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (HDScanner) Deploying vfszip:/F:/Entwicklung/JBoss_5.0/jboss-5.0.0.GA/server/default/deploy/Struts2InAction.war
      2009-06-07 21:44:20,843 DEBUG [org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper] (HDScanner) Parsing file: ZipEntryHandler@19485420[path=Struts2InAction.war/WEB-INF/classes/META-INF/persistence.xml context=file:/F:/Entwicklung/JBoss_5.0/jboss-5.0.0.GA/server/default/deploy/ real=file:/F:/Entwicklung/JBoss_5.0/jboss-5.0.0.GA/server/default/deploy/Struts2InAction.war/WEB-INF/classes/META-INF/persistence.xml] for type: class org.jboss.metadata.jpa.spec.PersistenceMetaData
      2009-06-07 21:44:20,843 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (HDScanner) Created parser: org.apache.xerces.jaxp.SAXParserImpl@32560, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
      2009-06-07 21:44:20,843 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (HDScanner) http://xml.org/sax/features/validation set to: true
      2009-06-07 21:44:20,843 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (HDScanner) http://xml.org/sax/features/namespaces set to: true
      2009-06-07 21:44:20,843 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (HDScanner) http://apache.org/xml/features/xinclude/fixup-base-uris set to: false
      2009-06-07 21:44:20,843 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (HDScanner) http://apache.org/xml/features/xinclude/fixup-language set to: false
      2009-06-07 21:44:20,843 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (HDScanner) http://apache.org/xml/features/validation/dynamic set to: true
      2009-06-07 21:44:20,843 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (HDScanner) http://apache.org/xml/features/validation/schema set to: true
      2009-06-07 21:44:20,843 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (HDScanner) http://xml.org/sax/features/validation set to: true
      2009-06-07 21:44:20,843 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (HDScanner) Created parser: org.apache.xerces.jaxp.SAXParserImpl@32560, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
      2009-06-07 21:44:20,906 DEBUG [org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper] (HDScanner) Parsed file: ZipEntryHandler@19485420[path=Struts2InAction.war/WEB-INF/classes/META-INF/persistence.xml context=file:/F:/Entwicklung/JBoss_5.0/jboss-5.0.0.GA/server/default/deploy/ real=file:/F:/Entwicklung/JBoss_5.0/jboss-5.0.0.GA/server/default/deploy/Struts2InAction.war/WEB-INF/classes/META-INF/persistence.xml] to: PersistenceMetaData@1d1a577{version=1.0, persistence units=[PersistenceUnitMetaData@8c404d{provider=null, jta-data-source=null, non-jta-data-source=null, non-jta-data-source=null, excludeUnlistedClasses=false, properties={hibernate.hbm2ddl.auto=create}, name=struts2InAction, transactionType=null}]}
      2009-06-07 21:44:20,921 DEBUG [org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper] (HDScanner) Parsing file: ZipEntryHandler@12994390[path=Struts2InAction.war/WEB-INF/web.xml context=file:/F:/Entwicklung/JBoss_5.0/jboss-5.0.0.GA/server/default/deploy/ real=file:/F:/Entwicklung/JBoss_5.0/jboss-5.0.0.GA/server/default/deploy/Struts2InAction.war/WEB-INF/web.xml] for type: class org.jboss.metadata.web.spec.WebMetaData
      2009-06-07 21:44:20,921 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (HDScanner) Created parser: org.apache.xerces.jaxp.SAXParserImpl@17566ad, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
      2009-06-07 21:44:20,921 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (HDScanner) http://xml.org/sax/features/validation set to: true
      2009-06-07 21:44:20,921 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (HDScanner) http://xml.org/sax/features/namespaces set to: true
      2009-06-07 21:44:20,921 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (HDScanner) http://apache.org/xml/features/xinclude/fixup-base-uris set to: false
      2009-06-07 21:44:20,921 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (HDScanner) http://apache.org/xml/features/xinclude/fixup-




      Thanks for any help !
      Regards
      JRookie

        • 1. Re: jboss and struts2
          alesj

          Where's the error?
          This is only a debug msg.

          • 2. Re: jboss and struts2

            Hi there,
            so now you got me: here is the real error while trying to deploy a well proved example struts application.
            There must be something missing on the server side it could be that it is
            about persistence management.
            I deployed mySQL as database, but i think it was ok.
            If you can see anything let me know.
            Thanks for the help anyway.
            JRookie


            19:42:14,171 INFO [TomcatDeployment] deploy, ctxPath=/example2, vfsUrl=example2.ear/example2.war
            19:42:14,640 INFO [TomcatDeployment] deploy, ctxPath=/example3, vfsUrl=example3.ear/example3.war
            19:42:14,906 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
            19:42:14,953 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
            19:42:14,968 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714)] Started in 1m:17s:547ms
            19:48:38,343 WARN [HDScanner] Scan failed
            org.jboss.deployers.spi.DeploymentException: Error determining structure: Struts2InAction.war
            at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
            at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:87)
            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)
            at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:853)
            at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:303)
            at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:260)
            at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:267)
            at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
            at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
            at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
            at java.lang.Thread.run(Thread.java:619)
            Caused by: java.lang.RuntimeException: Failed to read zip file: org.jboss.virtual.plugins.context.zip.ZipFileWrapper@1d7bd99 - F:\Entwicklung\JBoss_5.0\jboss-5.0.0.GA\server\default\deploy\
            truts2InAction.war
            at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:563)
            at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:693)
            at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:737)
            at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:175)
            at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:542)
            at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:155)
            at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:106)
            at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:451)
            at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:64)
            ... 18 more
            Caused by: java.io.FileNotFoundException: F:\Entwicklung\JBoss_5.0\jboss-5.0.0.GA\server\default\deploy\Struts2InAction.war (Der Prozess kann nicht auf die Datei zugreifen, da sie von einem
            anderen Prozess verwendet wird)
            at java.util.zip.ZipFile.open(Native Method)
            at java.util.zip.ZipFile.(ZipFile.java:114)
            at java.util.zip.ZipFile.(ZipFile.java:131)
            at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWrapper.java:175)
            at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.acquire(ZipFileWrapper.java:245)
            at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:461)
            at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:554)
            ... 26 more