Erro no deploy de projecto SEAM EAR

1 resposta
P

Estou a começar no java para desenvolver um projecto para a web, para isso estou a utilizar o Jboss 4.2.3 GA com o Eclipse 3.4.1 Ganymede onde utilizo o SEAM+ Hibernate

Criei um pequeno projecto Seam War e funcionou sem problemas.

Neste momento estou a tentar fazê-lo utilizando o SEAM EAR mas não estou a conseguir pois retorna o seguinte erro:

2008-11-11 10:32:37,701 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Starting jboss.mq:service=PersistenceManager
2008-11-11 10:32:37,701 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Creating Schema
2008-11-11 10:32:37,717 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Could not create table with SQL: CREATE CACHED TABLE JMS_MESSAGES ( MESSAGEID INTEGER NOT NULL, DESTINATION VARCHAR(255) NOT NULL, TXID INTEGER, TXOP CHAR(1), MESSAGEBLOB OBJECT, PRIMARY KEY (MESSAGEID, DESTINATION) )
java.sql.SQLException: Table already exists: JMS_MESSAGES in statement [CREATE CACHED TABLE JMS_MESSAGES]
	at org.hsqldb.jdbc.Util.throwError(Unknown Source)
	at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)
       .....
	at java.lang.Thread.run(Unknown Source)
2008-11-11 10:32:37,717 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Could not create table with SQL: CREATE CACHED TABLE JMS_TRANSACTIONS ( TXID INTEGER, PRIMARY KEY (TXID) )
java.sql.SQLException: Table already exists: JMS_TRANSACTIONS in statement [CREATE CACHED TABLE JMS_TRANSACTIONS]
	at org.hsqldb.jdbc.Util.throwError(Unknown Source)
	at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)
	at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeUpdate(CachedPreparedStatement.java:95)
       ...
	at java.lang.Thread.run(Unknown Source) 
...
2008-11-11 10:33:01,763 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
2008-11-11 10:33:01,763 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2008-11-11 10:33:01,763 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2008-11-11 10:33:01,763 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/C:/Jboss/jboss-4.2.3.GA/server/default/deploy/aFerias-ear.ear/
org.jboss.deployment.DeploymentException: url file:/C:/Jboss/jboss-4.2.3.GA/server/default/deploy/aFerias-ear.ear/aFerias-ejb.jar could not be opened, does it exist?
	at org.jboss.deployment.DeploymentInfo.<init>(DeploymentInfo.java:214)
	at org.jboss.deployment.EARDeployer.init(EARDeployer.java:288)
	at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
	at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	...
	at java.lang.Thread.run(Unknown Source)
2008-11-11 10:33:01,763 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@e7ffa0ab{ url=file:/C:/Jboss/jboss-4.2.3.GA/server/default/deploy/aFerias-ear.ear/, deployedLastModified=0 }
org.jboss.deployment.DeploymentException: url file:/C:/Jboss/jboss-4.2.3.GA/server/default/deploy/aFerias-ear.ear/aFerias-ejb.jar could not be opened, does it exist?
	at org.jboss.deployment.DeploymentInfo.<init>(DeploymentInfo.java:214)
	at org.jboss.deployment.EARDeployer.init(EARDeployer.java:288)
        ........

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@e7ffa0ab { url=file:/C:/Jboss/jboss-4.2.3.GA/server/default/deploy/aFerias-ear.ear/ }
  deployer: org.jboss.deployment.EARDeployer@127ff0d
  status: null
  state: FAILED
  watch: file:/C:/Jboss/jboss-4.2.3.GA/server/default/deploy/aFerias-ear.ear/META-INF/application.xml
  altDD: null
  lastDeployed: 1226399581763
  lastModified: 1226399407388
...

Tive oportunidade de ler num outro tópico que poderá ser a falta de algumas livrarias necessárias mas não sei quais.

Se alguem já passou por isto e poder dar uma ajuda

Agradeço bastante :?

Paulo Caeiro

1 Resposta

javax.skol

leia o output
org.jboss.deployment.DeploymentException: url file:/C:/Jboss/jboss-4.2.3.GA/server/default/deploy/aFerias-ear.ear/aFerias-ejb.jar could not be opened, does it exist?

esse arquivo existe?

alguns tuto… http://www.intelligentedu.com/blogs/post/best_new_training_sites/3676/15-best-jboss-seam-tutorials/pt/

Criado 11 de novembro de 2008
Ultima resposta 11 de nov. de 2008
Respostas 1
Participantes 2