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 robert sanford <rs...@nolimitsystems.com> on 2001/04/04 23:38:16 UTC

exceptions initializing jetspeed...

i'm having some problems getting jetspeed up and running...

jetspeed   - 1.3a1 (built locally) server os  - win2k app server -
jrun 3.0 (and 3.1 beta) jdk        - sun jdk 1.2.2 misc       -
system classpath not set JAVA_HOME not set

i have jrun running with admin and default web services being
available and tested. i go into the jrun admin web site, select the
default server and then select to deploy a new web app. i use their
browser to select the jetspeed.war file. at the end of the
deployment process the jetspeed directory structure is set up under
jrun/servers/default/jetspeed

and includes pretty much everything that i know should be there. but
then again i don't know too much about what should be there ;)

jrun says that i need to re-start the server so i use the admin
server page to restart the default server (also tested restarting
the jrun default server service). when i attempt to hit the url
localhost:8100/jetspeed/ i get a directory listing. i try selecting
index.jsp but get some ugly errors that i don't think contribute to
this discussion. after getting the directory listing and the jsp
errors i went to the jrun log file to see if anything interesting
came up and got the exception listed below.

any ideas on what i can do to resolve the issue?

thanks!

rjsjr

[388]   04/04 15:27:24 error (JRun) Could not pre-load servlet:
jetspeed [javax.servlet.ServletException: Could not instantiate
org.apache.turbine.Turbine]
[389] [1]java.lang.NullPointerException
[390]      at
org.apache.turbine.services.resources.TurbineResourceService.getKeys(Turbine
ResourceService.java:412)
[391]      at
org.apache.turbine.services.resources.Resources.getKeys(Resources.java:228)
[392]      at
org.apache.turbine.services.TurbineServices.initMapping(TurbineServices.java
, Compiled Code)
[393]      at
org.apache.turbine.services.TurbineServices.getInstance(TurbineServices.java
:154)
[394]      at org.apache.turbine.Turbine.init(Turbine.java:155)
[395]      at
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader
..java, Compiled Code)
[396]      at
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader
..java:161)
[397]      at
allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:14
9)
[398]      at
allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1664)
[399]      at
allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java, Compiled
Code)
[400]      at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled
Code)
[401]      at allaire.jrun.ServletService.init(ServletService.java,
Compiled Code)
[402]      at allaire.jrun.ServletService.init(ServletService.java,
Compiled Code)
[403]      at
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader
..java, Compiled Code)
[404]      at allaire.jrun.servlet.JRunSE.initService(JRunSE.java,
Compiled Code)
[405]      at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java,
Compiled Code)
[406]      at
allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:127)
[407]      at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled
Code)
[408]      at allaire.jrun.servlet.JvmContext.init(JvmContext.java,
Compiled Code)
[409]      at allaire.jrun.ServletService.init(ServletService.java,
Compiled Code)
[410]      at allaire.jrun.ServletService.init(ServletService.java,
Compiled Code)
[411]      at JRun.main(JRun.java, Compiled Code)


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


RE: exceptions initializing jetspeed...

Posted by rsanford <rs...@nolimitsystems.com>.
> > [388]   04/04 15:27:24 error (JRun) Could not pre-load servlet:
> > jetspeed [javax.servlet.ServletException: Could not instantiate
> > org.apache.turbine.Turbine]
> > [389] [1]java.lang.NullPointerException
> > [390]      at
> > org.apache.turbine.services.resources.TurbineResourceService.getKe
> > ys(TurbineResourceService.java:412)
>
> You should not actually be using the TurbineResourceService but
> rather the VariableResourceService. If your server defaulted to
> this, it's probably because it did not use the web.xml settings
> correctly. Check that you correctly have a web.xml file in
> /WEB-INF/ and that you have the properties and resources keys
> correctly set.


i was just trying to get the base installation running to take a
look at it. i used the web.xml file that came in the source zip
file (contents listed below). i see that it is using the
VariableResourceService as the init param but appears to be using
TurbineResources.properties as the property file. there isn't a
VariableResource properties file in the tree so i'm assuming that
the turbine resources properties file is a good thing to use.
i've attached the properties file for your review (once again it
is the default).

thanks!

rjsjr


<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>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>

<welcome-file-list><welcome-file>index.jsp</welcome-file></welcome-file-list
></web-app>

Re: exceptions initializing jetspeed...

Posted by Raphaël Luta <ra...@networks.groupvu.com>.
robert sanford wrote:
> 
> i'm having some problems getting jetspeed up and running...
> 
> jetspeed   - 1.3a1 (built locally) server os  - win2k app server -
> jrun 3.0 (and 3.1 beta) jdk        - sun jdk 1.2.2 misc       -
> system classpath not set JAVA_HOME not set
> 
> i have jrun running with admin and default web services being
> available and tested. i go into the jrun admin web site, select the
> default server and then select to deploy a new web app. i use their
> browser to select the jetspeed.war file. at the end of the
> deployment process the jetspeed directory structure is set up under
> jrun/servers/default/jetspeed
> 
> and includes pretty much everything that i know should be there. but
> then again i don't know too much about what should be there ;)
> 
> jrun says that i need to re-start the server so i use the admin
> server page to restart the default server (also tested restarting
> the jrun default server service). when i attempt to hit the url
> localhost:8100/jetspeed/ i get a directory listing. i try selecting
> index.jsp but get some ugly errors that i don't think contribute to
> this discussion. after getting the directory listing and the jsp
> errors i went to the jrun log file to see if anything interesting
> came up and got the exception listed below.
> 
> any ideas on what i can do to resolve the issue?
> 
> thanks!
> 
> rjsjr
> 
> [388]   04/04 15:27:24 error (JRun) Could not pre-load servlet:
> jetspeed [javax.servlet.ServletException: Could not instantiate
> org.apache.turbine.Turbine]
> [389] [1]java.lang.NullPointerException
> [390]      at
> org.apache.turbine.services.resources.TurbineResourceService.getKeys(Turbine
> ResourceService.java:412)

You should not actually be using the TurbineResourceService but rather
the VariableResourceService. If your server defaulted to this, it's probably 
because it did not use the web.xml settings correctly. 
Check that you correctly have a web.xml file in /WEB-INF/ and that you have 
the properties and resources keys correctly set.


--
Raphaël Luta - raphael.luta@networks.groupvu.com
Vivendi Universal Networks - Services Manager / Paris

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


alpha status?

Posted by "Kevin S. Clarke" <ks...@stanford.edu>.
Hi,

We are thinking about using Jetspeed but noticed the warning in the 1.3a 
download about its alpha status.  I didn't see an answer to this on the FAQ 
page so I'm asking here...  Is there a general time-frame for when the new 
API will be released and the project moved out of alpha?

Thanks,
Kevin

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