[xwiki-notifications] [Issue] Closed: (XE-144) tomcat won't start
Sergiu Dumitriu (JIRA)
jira at xwiki.org
Sat Mar 1 04:07:20 CET 2008
[ http://jira.xwiki.org/jira/browse/XE-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergiu Dumitriu closed XE-144.
------------------------------
Assignee: Sergiu Dumitriu
Resolution: Won't Fix
This is caused by the default java vm installed in Fedora. Just replacing a symlink does not mean switching to the Sun JDK.
See:
- http://dev.project.net/forums/viewtopic.php?t=10791&sid=16f1d89dce5f966d8e06d69c916c9193
- http://forums.alfresco.com/viewtopic.php?p=36173&sid=5be87b3ec08268de93505179ae0ccd5f
> tomcat won't start
> ------------------
>
> Key: XE-144
> URL: http://jira.xwiki.org/jira/browse/XE-144
> Project: XWiki Enterprise
> Issue Type: Bug
> Components: Build & Packaging
> Affects Versions: 1.1.2
> Environment: - Fedora 7 (Linux version 2.6.22.9-91.fc7)
> - java 5
> - jre-1.5.0_14-fcs from Sun
> - I overwrote the /etc/alternatives/java softlink to point to /usr/java/jre1.5.0_14/bin/java
> - JAVA_HOME=/usr/java/jre1.5.0_14/
> - tomcat5 5.5.23
> - yum install tomcat5
> - mysql 5.0.45
> - yum install mysql mysql-server
> Reporter: Herta Van den Eynde
> Assigned To: Sergiu Dumitriu
>
> Steps taken
> - extracted xwiki-web-standard-1.1.2.war in /usr/share/tomcat5/webapps/xwiki
> - http://www.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat mentions an issue with the java security manager. I searched all files in $CATALINA_HOME and /etc, but none of them contained a string TOMCAT5_SECURITY
> I found Stefan's suggestion on http://jira.xwiki.org/jira/browse/XWIKI-348, and as there isn't a /etc/tomcat5.5/policy.d/ directory, I edited /etc/tomcat5/catalina.policy and added these lines at the bottom:
> // These permissions apply to xwiki
> grant codeBase "file:${catalina.base}/webapps/xwiki/-" {
> permission java.security.AllPermission;
> };
> - found the remark stating that "If you are installing in a linux/unix environment you have to setup the xwiki.upload.tempdir parameter as explained in the JIRA entry (http://jira.xwiki.org/jira/browse/XWIKI-530) before importing anything into XWiki.", but I couldn't find *where* I should define this parameter. As it only comes into play when you need to upload larger files, I decided to go ahead for the time being
> - set up mysql as per http://www.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL
> - the mysql database tests ok
> - connector file = http://www.mysql.com/products/connector/j/mysql-connector-java-5.1.5.tar.gz
> - WEB-INF/hibernate.cfg.xml already had an entry for mysql that could be uncommented, and I started off with that one.
> - verified that xwiki.cfg has a xwiki.store.hibernate.path=/WEB-INF/hibernate.cfg.xml entry
> when I start tomcat, catalina.out reports:
> 15-Nov-07 12:14:55 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error in dependencyCheck
> java.util.jar.JarException: Section should start with a Name header: unexpected '^@'
> at gnu.java.util.jar.JarUtils.readSectionName(libgcj.so.8rh)
> at gnu.java.util.jar.JarUtils.readIndividualSections(libgcj.so.8rh)
> at gnu.java.util.jar.JarUtils.readMFManifest(libgcj.so.8rh)
> at java.util.jar.Manifest.read(libgcj.so.8rh)
> at java.util.jar.Manifest.<init>(libgcj.so.8rh)
> at java.util.jar.JarInputStream.readManifest(libgcj.so.8rh)
> at java.util.jar.JarInputStream.<init>(libgcj.so.8rh)
> at java.util.jar.JarInputStream.<init>(libgcj.so.8rh)
> at org.apache.catalina.util.ExtensionValidator.getManifest(catalina-5.5.23.jar.so)
> at org.apache.catalina.util.ExtensionValidator.validateApplication(catalina-5.5.23.jar.so)
> at org.apache.catalina.core.StandardContext.start(catalina-5.5.23.jar.so)
> at org.apache.catalina.core.ContainerBase.addChildInternal(catalina-5.5.23.jar.so)
> at org.apache.catalina.core.ContainerBase.addChild(catalina-5.5.23.jar.so)
> at org.apache.catalina.core.StandardHost.addChild(catalina-5.5.23.jar.so)
> at org.apache.catalina.startup.HostConfig.deployDirectory(catalina-5.5.23.jar.so)
> at org.apache.catalina.startup.HostConfig.deployDirectories(catalina-5.5.23.jar.so)
> at org.apache.catalina.startup.HostConfig.deployApps(catalina-5.5.23.jar.so)
> at org.apache.catalina.startup.HostConfig.start(catalina-5.5.23.jar.so)
> at org.apache.catalina.startup.HostConfig.lifecycleEvent(catalina-5.5.23.jar.so)
> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(catalina-5.5.23.jar.so)
> at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.so)
> at org.apache.catalina.core.StandardHost.start(catalina-5.5.23.jar.so)
> at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.so)
> at org.apache.catalina.core.StandardEngine.start(catalina-5.5.23.jar.so)
> at org.apache.catalina.core.StandardService.start(catalina-5.5.23.jar.so)
> at org.apache.catalina.core.StandardServer.start(catalina-5.5.23.jar.so)
> at org.apache.catalina.startup.Catalina.start(catalina-5.5.23.jar.so)
> at java.lang.reflect.Method.invoke(libgcj.so.8rh)
> at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so)
> at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so)
> 15-Nov-07 12:14:55 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error getConfigured
> 15-Nov-07 12:14:55 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/xwiki] startup failed due to previous errors
> 15-Nov-07 12:14:55 PM org.apache.catalina.core.StandardContext stop
> INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/xwiki] has not been sta
> rted
> Does anyone have an idea what went wrong?
> Kind regards,
> Herta
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the notifications
mailing list