portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alex arvin" <alex_ar...@hotmail.com>
Subject RE: localhost/8080 problem in jetspeed
Date Wed, 26 Apr 2006 05:18:46 GMT
Hi Chandra Sekar,

Yep. If your are using hsql, then you have to mention it in 
project.properties also.

Alex


>From: chandra sekhar <leo12_chandu@yahoo.com>
>Reply-To: "Jetspeed Developers List" <jetspeed-dev@portals.apache.org>
>To: Jetspeed Developers List <jetspeed-dev@portals.apache.org>
>Subject: RE: localhost/8080 problem in jetspeed
>Date: Tue, 25 Apr 2006 09:35:51 -0700 (PDT)
>
>hi alex,
>
>   we are using the default hsql database. and our datasources.xml looks 
>like the following. In the project.properties it is taking Embedded (derby) 
>database as default should i change it to HSQL too. and i copied the OJB 
>files to tomcat-5.5.16\webapps\jetspeed\WEB-INF\classes . but when we redo 
>the "j2:quick start" then i dont see the OJB files in that classes folder 
>anymore. Do you think that could be a problem.
>
>   <Context path="/jetspeed" docBase="jetspeed" crossContext="true">
>     <Realm className="org.apache.catalina.realm.JAASRealm"
>          appName="Jetspeed"
>          
>userClassNames="org.apache.jetspeed.security.impl.UserPrincipalImpl"
>          
>roleClassNames="org.apache.jetspeed.security.impl.RolePrincipalImpl"
>          useContextClassLoader="false"
>          debug="0"/>
>    <ResourceParams name="jdbc/jetspeed">
>     <parameter>
>       <name>factory</name>
>       <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
>     </parameter>
>       <!-- Maximum number of dB connections in pool. Make sure you
>          configure your mysqld max_connections large enough to handle
>          all of your db connections. Set to 0 for no limit.
>          -->
>     <parameter>
>       <name>maxActive</name>
>       <value>100</value>
>     </parameter>
>       <!-- Maximum number of idle dB connections to retain in pool.
>          Set to 0 for no limit.
>          -->
>     <parameter>
>       <name>maxIdle</name>
>       <value>30</value>
>     </parameter>
>       <!-- Maximum time to wait for a dB connection to become available
>          in ms, in this example 10 seconds. An Exception is thrown if
>          this timeout is exceeded.  Set to -1 to wait indefinitely.
>          -->
>     <parameter>
>       <name>maxWait</name>
>       <value>10000</value>
>     </parameter>
>       <!-- HSQL dB username and password for dB connections  -->
>     <parameter>
>      <name>username</name>
>      <value>sa</value>
>     </parameter>
>     <parameter>
>      <name>password</name>
>      <value></value>
>     </parameter>
>       <!-- Class name for HSQL JDBC driver -->
>     <parameter>
>        <name>driverClassName</name>
>        <value>org.hsqldb.jdbcDriver</value>
>     </parameter>
>       <!-- The JDBC connection url for connecting to your HSQL dB.  -->
>     <parameter>
>       <name>url</name>
>       <value>jdbc:hsqldb:hsql://127.0.0.1:9001</value>
>     </parameter>
>   </ResourceParams>
>   </Context>
>
>
>
>alex arvin <alex_arvin@hotmail.com> wrote:
>
>I think you have not properly configured your database details.
>Fill your DB configuration details in \conf\Catalina\localhost\jetspeed.xml
>
>Alex
>
> >From: chandra sekhar
> >Reply-To: "Jetspeed Developers List"
> >To: jetspeed-dev@portals.apache.org
> >Subject: localhost/8080 problem in jetspeed
> >Date: Tue, 25 Apr 2006 08:29:33 -0700 (PDT)
> >
> >I am configuring Jetspeed-2, i started the production database, did a
> >j2:quickstart and I encountered the following problem after i open
> >http://localhost:8080/jetspeed .
> >
> >org.apache.jasper.JasperException: Failed to initalize jetspeed.
> >org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization
> >exception!
> >org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:453)
> >
> >org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> >javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >
> > root cause
> >javax.servlet.ServletException: Failed to initalize jetspeed.
> >org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization
> >exception!
> >org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:207)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> >javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)
> >
> >org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
> > org.apache.jsp.index_jsp._jspService(index_jsp.java:44)
> >org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> >javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> >javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >
> > root cause
> >org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization
> >exception!
> >org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:149)
> >org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:147)
> >org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
> >
> >org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
> >org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
> >org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
> >
> >org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> > org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> >sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > java.lang.reflect.Method.invoke(Method.java:585)
> >org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
> >org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> >
> >And my console when i run the tomcat shows this error
> >
> >org.springframework.beans.factory.BeanCreationException: Error creating
> >bean wit
> >h name 'JetspeedDS' defined in ServletContext resource
> >[/WEB-INF/assembly/boot/d
> >atasource.xml]: Initialization of bean failed; nested exception is
> >org.apache.oj
> >b.broker.metadata.MetadataException: Could not get the metadata from the
> >given d
> >atasource
> >org.apache.ojb.broker.metadata.MetadataException: Could not get the
> >metadata fro
> >m the given datasource
> > at
> >org.apache.ojb.broker.metadata.JdbcMetadataUtils.fillJCDFromDataSourc
> >e(JdbcMetadataUtils.java:277)
> >
> >Can anyone please help me. I saw the OJB files are not copied in
> >webapps/jetspeed/WEB-INF/classe
> >
> >So i copied all the OJB files into that path, still i am encountering the
> >same problem. Please let me know what i can do.
> >
> >Thank you in advance...
> >
> >Chandra Shekar.
> >
> >
> >---------------------------------
> >Blab-away for as little as 1/min. Make PC-to-Phone Calls using Yahoo!
> >Messenger with Voice.
>
>_________________________________________________________________
>Spice up your IM conversations. New, colorful and animated emoticons. Get
>chatting! http://server1.msn.co.in/SP05/emoticons/
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
>
>
>
>
>---------------------------------
>Yahoo! Mail goes everywhere you do.  Get it on your phone.
>
>---------------------------------
>Blab-away for as little as 1/min. Make  PC-to-Phone Calls using Yahoo! 
>Messenger with Voice.

_________________________________________________________________
Shah Rukh fan? Know all about the Baadshah of Bollywood. On MSN Search 
http://server1.msn.co.in/profile/shahrukh.asp


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


Mime
View raw message