cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying error of 1.30dev on jboss

plaugraud
Champ in-the-making
Champ in-the-making
Hello everybody,

I have installed alfresco 1.30dev on jboss 4.0.2.
After starting jboss the following error has occurred:
———————————–
2006-05-31 19:39:45,856 INFO  [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/alfresco, warUrl=file:/opt/jboss-4.0.2/server/default/tmp/deploy/tmp28329alfresco.war/
2006-05-31 19:39:47,518 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/alfresco]] Error configuring application listener of class org.apache.myfaces.webapp.StartupServletContextListener
———————————–

Then some other consecutive faults occur and the alfresco.war deployment failled.

The last errors messages are:
———————————–
— Incompletely deployed packages —
org.jboss.deployment.DeploymentInfo@41d8b84a { url=file:/opt/jboss-4.0.2/server/default/deploy/alfresco.war }
  deployer: org.jboss.web.tomcat.tc5.Tomcat5@f429d7
  status: Deployment FAILED reason: URL file:/opt/jboss-4.0.2/server/default/tmp/deploy/tmp28329alfresco.war/ deployment failed
  state: FAILED
  watch: file:/opt/jboss-4.0.2/server/default/deploy/alfresco.war
  altDD: null
  lastDeployed: 1149097185850
  lastModified: 1149097185000
  mbeans:

— MBeans waiting for other MBeans —
ObjectName: jboss.web.deployment:war=alfresco.war,id=1104721994
  State: FAILED
  Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.0.2/server/default/tmp/deploy/tmp28329alfresco.war/ deployment failed

— MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM —
ObjectName: jboss.web.deployment:war=alfresco.war,id=1104721994
  State: FAILED
  Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.0.2/server/default/tmp/deploy/tmp28329alfresco.war/ deployment failed
———————————–

Is there anything missing or corrupt ?
Pls help, thanks.

Regards, Rudolf.
2 REPLIES 2

kevinr
Star Contributor
Star Contributor
Hi,

I assume you are running JDK5 as it is required?

These steps should work (change install paths as appropriate) :

1. Copy the "alfresco.war" package to:
\jboss\server\default\deploy

2. Modify this block as below in the file:
\jboss\server\default\conf\log4j.xml

   <!– ======================= –>
   <!– Setup the Root category –>
   <!– ======================= –>

   <root>
      <priority value="INFO" />
      <appender-ref ref="CONSOLE"/>
      <appender-ref ref="FILE"/>
   </root>

3. Copy your appropriate JDBC connector (e.g. "mysql-connector-java-3.1.12-bin.jar") to:
\jboss\server\default\lib

Thanks,

Kevin

plaugraud
Champ in-the-making
Champ in-the-making
Hello Kevin,

add Point 1+2: yes, I did.
add point 3: I used mysql-connector-java-3.1.10-bin.jar

Today I did a fresh installation of alfresco-1.3.0dev and made the following steps:

-> stop jboss
rcjboss stop

-> delete an old and create a new mysql database
mysql -u root -p <db_remove.sql
mysql -u root -p <db_setup.sql

-> delete the data directory
/var/tmp/alf_data

-> delete the content of
/opt/jboss-4.0.2/server/default/work
/opt/jboss-4.0.2/server/default/tmp

-> copy alfresco.war to
/opt/jboss-4.0.2/server/default/deploy

-> change owner of alfresco.war
chown -R jboss.jboss alfresco.war

-> copy mysql-connector-java-3.1.12-bin.jar to
/opt/jboss-4.0.2/server/default/lib
-> and change owner to jboss
chown -R jboss.jboss mysql-connector-java-3.1.12-bin.jar

-> start jboss
rcjboss start

First ERROR in the server.log after jboss startup
————————————————-
2006-06-01 18:24:25,820 INFO  [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/alfresco, warUrl=file:/opt/jboss-4.0.2/server/default/tmp/deploy/tmp4015alfresco.war/
2006-06-01 18:24:27,117 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/alfresco]] Error configuring application listener of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.ClassNotFoundException: org.apache.myfaces.webapp.StartupServletContextListener


Then I tried to deploy alfresco 1.2.1 and I did the same steps like above.

deployment ERROR of alfresco-1.2.1
———————————-
the first 10476 bytes in server.log are hex.[NUL] - previous messsages were truncated - before the first INFO message appears:
2006-06-01 18:40:16,851 INFO  [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [alfresco/index-recovery-context.xml]


2006-06-01 18:40:31,476 INFO  [org.springframework.cache.ehcache.EhCacheFactoryBean] Creating new EHCache cache region 'webservice.QuerySessionCache'
2006-06-01 18:40:31,503 ERROR [net.sf.ehcache.store.DiskStore] webservice.QuerySessionCacheCache: Could not create disk store
java.io.FileNotFoundException: /tmp/webservice.QuerySessionCache.data (Permission denied)

Have I anything forgotten or misunderstood ?
It seems that are any permission problems. JBoss is running with user jboss, an another application is running well and prior I had successfully deployed alfresco-1.2.0.

System setup is:
JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)
Java version: 1.5.0_07,Sun Microsystems Inc.
Java VM: Java HotSpot(TM) Server VM 1.5.0_07-b03,Sun Microsystems Inc.
OS-System: Linux 2.6.13-15.10-default,i386
MySQL 4.1.13

Thank you for information.
Best regards, Rudolf.