You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Suresh Ganapathy <sg...@imr.com> on 2001/05/22 16:19:16 UTC

Configuration Issue

I am trying to install Jet speed in tomcat environment. Tomcat is installed in c:\tomcat. I change the file c:\tomcat\server.xml to add the following lines

        <Context path="/webapps" docBase="webapps"
            defaultSessionTimeOut="100" isWARExpanded="true"
            isWARValidated="false" isInvokerEnabled="true"
            isWorkDirPersistent="false"/>


I installed jetspeed in c:\tomcat\webapps directory and expanded jetspeed.war. I have updated the classpath to pickup all the jar files. The following is the contents of  C:\tomcat\webapps\WEB-INF\web.xml file.

  <?xml version="1.0" encoding="ISO-8859-1" ?> 
  <!DOCTYPE web-app (View Source for full doctype...)> 
- <web-app>
- <servlet>
  <servlet-name>jetspeed</servlet-name> 
  <servlet-class>org.apache.turbine.Turbine</servlet-class> 
- <init-param>
  <param-name>properties</param-name> 
  <param-value> C:\tomcat\webapps\WEB-INF\conf\TurbineResources.properties</param-value> 
  </init-param>
- <init-param>
  <param-name>classname</param-name> 
  <param-value>org.apache.jetspeed.services.resources.VariableResourcesService</param-value> 
  </init-param>
  <load-on-startup>1</load-on-startup> 
  </servlet>
- <servlet-mapping>
  <servlet-name>jetspeed</servlet-name> 
  <url-pattern>/portal/*</url-pattern> 
  </servlet-mapping>
- <servlet-mapping>
  <servlet-name>jetspeed</servlet-name> 
  <url-pattern>/jetspeed/*</url-pattern> 
  </servlet-mapping>
  </web-app>
 
I am getting the following exception:
 
 
default: init
jsp: init
jetspeed: init
initializing all services using org.apache.tomcat.core.ServletConfigImpl
initializing service: ResourcesService
org.apache.turbine.services.InitializationException: java.lang.Exception: Turbin
e::init(ServletConfig) - The Turbine Resources File - 'null' does not exist. Ple
ase create it or change the 'properties' Init Parameter Value to a file name tha
t exists and contains the TurbineResources.
        at org.apache.turbine.services.resources.TurbineResourceService.property
FileErrorCheck(TurbineResourceService.java:590)
        at org.apache.turbine.services.resources.TurbineResourceService.init(Tur
bineResourceService.java:140)
        at org.apache.jetspeed.services.resources.VariableResourcesService.init(
VariableResourcesService.java:124)
        at org.apache.turbine.services.TurbineBaseService.init(TurbineBaseServic
e.java:113)
        at org.apache.turbine.services.BaseInitableBroker.initClass(BaseInitable
Broker.java:151)
        at org.apache.turbine.services.BaseServiceBroker.initServices(BaseServic
eBroker.java:167)
        at org.apache.turbine.services.TurbineServices.getInstance(TurbineServic
es.java:152)
        at org.apache.turbine.Turbine.init(Turbine.java:155)
        at org.apache.tomcat.core.ServletWrapper$2.method(ServletWrapper.java:27
8)
        at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper
.java:534)
        at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java
:275)
        at org.apache.tomcat.core.Context.loadServlets(Context.java:964)
        at org.apache.tomcat.core.Context.init(Context.java:483)
        at org.apache.tomcat.server.HttpServer.start(HttpServer.java:509)
        at org.apache.tomcat.shell.Startup.configure(Startup.java:206)
        at org.apache.tomcat.shell.Startup.main(Startup.java:355)
end initializing all services
initializing service: ResourcesService
cannot load servlet name: jetspeed
Configuring web service using "default"
 
 

I used the properties param value as "WEB-INF/conf/TurbineResources.properties" as available from the download instead of the absolute path. Even then I am getting the same error. Kindly help me in resolving the above issue.


Thanks,
Suresh G
sganapathy@imrglobal.com

Re: Configuration Issue

Posted by Stefan Wagner <wa...@ixtern.de>.
Why are you doing it so complicated? Maybe I don't see your point, but 
actually you just have to put the jetspeed.war in the webapps directory and 
you don't have to change anything else. Not in the server.xml and not in the 
web.xml.

Don't know if this helps...

Ciao
Stefan

Am Dienstag, 22. Mai 2001 16:19 schrieben Sie:
> > I am trying to install Jet speed in tomcat environment. Tomcat is 
installed
> in c:\tomcat. I change the file c:\tomcat\server.xml to add the following
> lines
>
>         <Context path="/webapps" docBase="webapps"
>             defaultSessionTimeOut="100" isWARExpanded="true"
>             isWARValidated="false" isInvokerEnabled="true"
>             isWorkDirPersistent="false"/>
>
>
> I installed jetspeed in c:\tomcat\webapps directory and expanded
> jetspeed.war. I have updated the classpath to pickup all the jar files. The
> following is the contents of  C:\tomcat\webapps\WEB-INF\web.xml file.
>
>   <?xml version="1.0" encoding="ISO-8859-1" ?>
>   <!DOCTYPE web-app (View Source for full doctype...)>
> - <web-app>
> - <servlet>
>   <servlet-name>jetspeed</servlet-name>
>   <servlet-class>org.apache.turbine.Turbine</servlet-class>
> - <init-param>
>   <param-name>properties</param-name>
>   <param-value>
> C:\tomcat\webapps\WEB-INF\conf\TurbineResources.properties</param-value>
> </init-param>
> - <init-param>
>   <param-name>classname</param-name>
>  
> <param-value>org.apache.jetspeed.services.resources.VariableResourcesServic
>e</param-value> </init-param>
>   <load-on-startup>1</load-on-startup>
>   </servlet>
> - <servlet-mapping>
>   <servlet-name>jetspeed</servlet-name>
>   <url-pattern>/portal/*</url-pattern>
>   </servlet-mapping>
> - <servlet-mapping>
>   <servlet-name>jetspeed</servlet-name>
>   <url-pattern>/jetspeed/*</url-pattern>
>   </servlet-mapping>
>   </web-app>
>
> I am getting the following exception:
>
>
> default: init
> jsp: init
> jetspeed: init
> initializing all services using org.apache.tomcat.core.ServletConfigImpl
> initializing service: ResourcesService
> org.apache.turbine.services.InitializationException: java.lang.Exception:
> Turbin e::init(ServletConfig) - The Turbine Resources File - 'null' does
> not exist. Ple ase create it or change the 'properties' Init Parameter
> Value to a file name tha t exists and contains the TurbineResources.
>         at
> org.apache.turbine.services.resources.TurbineResourceService.property
> FileErrorCheck(TurbineResourceService.java:590)
>         at
> org.apache.turbine.services.resources.TurbineResourceService.init(Tur
> bineResourceService.java:140)
>         at
> org.apache.jetspeed.services.resources.VariableResourcesService.init(
> VariableResourcesService.java:124)
>         at
> org.apache.turbine.services.TurbineBaseService.init(TurbineBaseServic
> e.java:113)
>         at
> org.apache.turbine.services.BaseInitableBroker.initClass(BaseInitable
> Broker.java:151)
>         at
> org.apache.turbine.services.BaseServiceBroker.initServices(BaseServic
> eBroker.java:167)
>         at
> org.apache.turbine.services.TurbineServices.getInstance(TurbineServic
> es.java:152)
>         at org.apache.turbine.Turbine.init(Turbine.java:155)
>         at
> org.apache.tomcat.core.ServletWrapper$2.method(ServletWrapper.java:27 8)
>         at
> org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper
> ..java:534)
>         at
> org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper..java
>
> :275)
>
>         at org.apache.tomcat.core.Context.loadServlets(Context.java:964)
>         at org.apache.tomcat.core.Context.init(Context.java:483)
>         at org.apache.tomcat.server.HttpServer.start(HttpServer.java:509)
>         at org.apache.tomcat.shell.Startup.configure(Startup.java:206)
>         at org.apache.tomcat.shell.Startup.main(Startup.java:355)
> end initializing all services
> initializing service: ResourcesService
> cannot load servlet name: jetspeed
> Configuring web service using "default"
>
>
>
> I used the properties param value as
> "WEB-INF/conf/TurbineResources.properties" as available from the download
> instead of the absolute path. Even then I am getting the same error. Kindly
> help me in resolving the above issue.
>
>
> Thanks,
> Suresh G
> sganapathy@imrglobal.com

----------------------------------------
Content-Type: TEXT/HTML; charset="US-ASCII"; name="Anhang: 1"
Content-Transfer-Encoding: base64
Content-Description: 
----------------------------------------

----------------------------------------
Content-Type: text/plain; charset="us-ascii"; name="Anhang: 2"
Content-Transfer-Encoding: 7bit
Content-Description: 
----------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org