0 Replies Latest reply on Oct 24, 2001 12:24 PM by maximus

    Jetspeed woes under JBoss-2.4.3_Tomcat-3.2.3

    maximus

      Hi

      I'm having problems deploying Jetspeed-1.3a1 to a JBoss-2.4.3_Tomcat-3.2.3 environment.

      I first experienced problems that pointed towards conflicts with the XML parser (Jetspeed uses xerces by default) so I have setup JBoss to use xerces (as per the instructions in the docs). On the face of it, doing this has fixed one problem but created a load more.

      Here are snippets of trace displayed during startup (apologies for the large amount of trace):

      JBOSS_CLASSPATH=;c:\jdk1.3.1/lib/tools.jar;run.jar;../lib/xerces.jar
      jboss.home = C:\JBoss-2.4.3_Tomcat-3.2.3\jboss
      Using JAAS LoginConfig: file:/C:/JBoss-2.4.3_Tomcat-3.2.3/jboss/conf/tomcat/auth.conf
      Using configuration "tomcat"

      <<< numerous services start successfully >>>

      [EmbeddedTomcatServiceSX] Starting
      [EmbeddedTomcatServiceSX] Starting EmbeddedTomcatSX....

      <<< Initialization of tomcat continues >>>

      [Default] DCE: isLocal: url=file:///C:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\webapps\jetspeed\WEB-INF\cache\http_my.netscape.com_publish_formats_rss-0.91.dtd file= C:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\webapps\jetspeed\WEB-INF\cache\http_my.netscape.com_publish_formats_rss-0.91.dtd
      [Default] initializing service: ThreadPool
      [Default] DCE: isLocal: url=file:///C:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\webapps\jetspeed\WEB-INF\cache\http_www.apacheweek.com_issues_apacheweek-headlines.xml file= C:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\webapps\jetspeed\WEB-INF\cache\http_www.apacheweek.com_issues_apacheweek-headlines.xml
      [Default] DCE: isLocal: url=file:///C:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\webapps\jetspeed\WEB-INF\cache\http_www.xmlhack.com_rsscat.php file= C:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\webapps\jetspeed\WEB-INF\cache\http_www.xmlhack.com_rsscat.php
      [Default] DCE: isLocal: url=file:///C:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\webapps\jetspeed\WEB-INF\cache\http_www.mozilla.org_news.rdf file= C:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\webapps\jetspeed\WEB-INF\cache\http_www.mozilla.org_news.rdf
      [Default] DCE: isLocal: url=file:C:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\webapps\jetspeed\WEB-INF\conf\jetspeed-config.jcfg file= C:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\webapps\jetspeed\WEB-INF\conf\jetspeed-config.jcfg
      [Default] DCE: isLocal: url=file:///C:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\webapps\jetspeed\WEB-INF\cache\http_xml.com_xml_xmlnews.rdf file= C:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\webapps\jetspeed\WEB-INF\cache\http_xml.com_xml_xmlnews.rdf
      [Default] DCE: isLocal: url=file:///C:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\webapps\jetspeed\WEB-INF\cache\http_www.slashdot.org_slashdot.rdf file= C:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\webapps\jetspeed\WEB-INF\cache\http_www.slashdot.org_slashdot.rdf
      [Default] Error=org.apache.jetspeed.services.registrymanager.JetspeedConfigRegistryManagerService: unsupported Registry type PortletRegistry
      [Default] Error=org.apache.jetspeed.services.registrymanager.JetspeedConfigRegistryManagerService: unsupported Registry type CapabilityMapRegistry
      [Default] Error=org.apache.jetspeed.services.registrymanager.JetspeedConfigRegistryManagerService: unsupported Registry type MediaTypeRegistry

      <<< Startup continues until... >>>

      [AutoDeployer] Starting
      [AutoDeployer] Watching C:\JBoss-2.4.3_Tomcat-3.2.3\jboss\deploy
      [AutoDeployer] Watching C:\JBoss-2.4.3_Tomcat-3.2.3\jboss\deploy\lib
      [AutoDeployer] Auto deploy of file:/C:/JBoss-2.4.3_Tomcat-3.2.3/jboss/deploy/tomcat-test.ear
      [J2EE Deployer Default] Deploy J2EE application: file:/C:/JBoss-2.4.3_Tomcat-3.2.3/jboss/deploy/tomcat-test.ear
      [J2eeDeployer] Create application tomcat-test.ear
      [J2eeDeployer] inflate and install WEB module tomcat-test.war
      [J2eeDeployer] install EJB module tomcat-test.jar
      [J2eeDeployer] add all ejb jar files to the common classpath
      [Container factory] Deploying:file:/C:/JBoss-2.4.3_Tomcat-3.2.3/jboss/tmp/deploy/Default/tomcat-test.ear
      [Default] null
      [Container factory] failed to load jboss.xml. There could be a syntax error.
      [Container factory] org.jboss.ejb.DeploymentException: Stopping after fatal error: The encoding "Cp1252" is not supported., Cause:org.xml.sax.SAXException: Stopping after fatal error: The encoding "Cp1252" is not supported.
      [Container factory] at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:253)
      [Container factory] at org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:217)
      [Container factory] at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:174)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:438)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:369)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:494)
      [Container factory] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
      [Container factory] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
      [Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
      [Container factory] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
      [Container factory] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)
      [Container factory] at $Proxy0.start(Unknown Source)
      [Container factory] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.Main.(Main.java:221)
      [Container factory] at org.jboss.Main$1.run(Main.java:127)
      [Container factory] at java.security.AccessController.doPrivileged(Native Method)
      [Container factory] at org.jboss.Main.main(Main.java:123)
      [J2EE Deployer Default] Starting tomcat-test.ear failed!
      [Default] org.jboss.ejb.DeploymentException: Could not deploy file:/C:/JBoss-2.4.3_Tomcat-3.2.3/jboss/tmp/deploy/Default/tomcat-test.ear, Cause:org.jboss.ejb.DeploymentException: Stopping after fatal error: The encoding "Cp1252" is not supported., Cause:org.xml.sax.SAXException: Stopping after fatal error: The encoding "Cp1252" is not supported.
      [Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:401)
      [Default]
      [Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
      [Default]
      [Default] at java.lang.reflect.Method.invoke(Native Method)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Default]
      [Default] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:494)
      [Default]
      [Default] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
      [Default]
      [Default] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
      [Default]
      [Default] at java.lang.reflect.Method.invoke(Native Method)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Default]
      [Default] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
      [Default]
      [Default] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
      [Default]
      [Default] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
      [Default]
      [Default] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
      [Default]
      [Default] at java.lang.reflect.Method.invoke(Native Method)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Default]
      [Default] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)
      [Default]
      [Default] at $Proxy0.start(Unknown Source)
      [Default]
      [Default] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
      [Default]
      [Default] at java.lang.reflect.Method.invoke(Native Method)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Default]
      [Default] at org.jboss.Main.(Main.java:221)
      [Default]
      [Default] at org.jboss.Main$1.run(Main.java:127)
      [Default]
      [Default] at java.security.AccessController.doPrivileged(Native Method)
      [Default]
      [Default] at org.jboss.Main.main(Main.java:123)
      [Default]
      [J2EE Deployer Default] Module tomcat-test.war is not running
      [J2EE Deployer Default] Module tomcat-test.ear is not running
      [J2EE Deployer Default] Destroying application tomcat-test.ear
      [AutoDeployer] Deployment failed:file:/C:/JBoss-2.4.3_Tomcat-3.2.3/jboss/deploy/tomcat-test.ear
      [AutoDeployer] org.jboss.deployment.J2eeDeploymentException: Error while starting tomcat-test.ear: Could not deploy file:/C:/JBoss-2.4.3_Tomcat-3.2.3/jboss/tmp/deploy/Default/tomcat-test.ear, Cause: org.jboss.ejb.DeploymentException: Could not deploy file:/C:/JBoss-2.4.3_Tomcat-3.2.3/jboss/tmp/deploy/Default/tomcat-test.ear, Cause:org.jboss.ejb.DeploymentException: Stopping after fatal error: The encoding "Cp1252" is not supported., Cause:org.xml.sax.SAXException: Stopping after fatal error: The encoding "Cp1252" is not supported.
      [AutoDeployer] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:519)
      [AutoDeployer] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
      [AutoDeployer] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
      [AutoDeployer] at java.lang.reflect.Method.invoke(Native Method)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [AutoDeployer] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
      [AutoDeployer] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
      [AutoDeployer] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
      [AutoDeployer] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
      [AutoDeployer] at java.lang.reflect.Method.invoke(Native Method)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [AutoDeployer] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)
      [AutoDeployer] at $Proxy0.start(Unknown Source)
      [AutoDeployer] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
      [AutoDeployer] at java.lang.reflect.Method.invoke(Native Method)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [AutoDeployer] at org.jboss.Main.(Main.java:221)
      [AutoDeployer] at org.jboss.Main$1.run(Main.java:127)
      [AutoDeployer] at java.security.AccessController.doPrivileged(Native Method)
      [AutoDeployer] at org.jboss.Main.main(Main.java:123)

      <<< misc other ejb deployments fail >>>
      <<< finally ends with... >>>

      [Service Control] Started 47 services
      [Default] JBoss 2.4.3 Started in 0m:11s
      [Default] Error=FeedDaemon: Couldn't process URL: /ocs/local.ocs
      [Default] java.net.ProtocolException: Server redirected too many times (5)
      [Default] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:581)
      [Default]
      [Default] at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:817)
      [Default]
      [Default] at java.net.URLConnection.getContentEncoding(URLConnection.java:388)
      [Default]
      [Default] at org.apache.jetspeed.services.urlmanager.URLFetcher.getReader(URLFetcher.java:329)
      [Default]
      [Default] at org.apache.jetspeed.services.urlmanager.URLFetcher.fetch(URLFetcher.java:165)
      [Default]
      [Default] at org.apache.jetspeed.cache.disk.JetspeedDiskCache.fetch(JetspeedDiskCache.java:394)
      [Default]
      [Default] at org.apache.jetspeed.cache.disk.JetspeedDiskCache.add(JetspeedDiskCache.java:352)
      [Default]
      [Default] at org.apache.jetspeed.cache.disk.JetspeedDiskCache.getEntry(JetspeedDiskCache.java:243)
      [Default]
      [Default] at org.apache.jetspeed.daemon.impl.FeedDaemon.getEntries(FeedDaemon.java:310)
      [Default]
      [Default] at org.apache.jetspeed.daemon.impl.FeedDaemon.run(FeedDaemon.java:195)
      [Default]
      [Default] at org.apache.jetspeed.daemon.DaemonThread.runDaemon(DaemonThread.java:147)
      [Default]
      [Default] at org.apache.jetspeed.daemon.DaemonThread.run(DaemonThread.java:100)
      [Default]
      [Default] Error=FeedDaemon: Couldn't process URL: http://java.apache.org/jetspeed/channels/apache.

      Any ideas anybody?

      Regards

      Max

      NOTE: The deploy works first time running under standalone tomcat. Just drop the WAR in the webapps directory and away you go!