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 Akshay Ahooja <ak...@gmail.com> on 2006/06/02 20:11:55 UTC

Deployment issues

Thanks Aaron!




I deployed "myportal" using quickStart - When I go to
localhost:8080/myportal it gives an initialization error pasted below:

In my properties file:


org.apache.jetspeed.services.autodeployment.user = admin
org.apache.jetspeed.services.autodeployment.password = password
org.apache.jetspeed.services.autodeployment.port = 8080


In tomcat-users.xml:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <role rolename="manager"/>
  <role rolename="admin"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
  <user username="admin" password="password" roles="manager"/>
</tomcat-users>


I checked through the archives - my JDBC driver is set in the right place:

-------------------------------------------------------------------------
# configure MySQL Production DB
#
-------------------------------------------------------------------------
org.apache.jetspeed.production.database.default.name=mysql
org.apache.jetspeed.production.database.url = jdbc:mysql://svv-db/ptest
org.apache.jetspeed.production.database.user = aahooja
org.apache.jetspeed.production.database.password = password
org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver
org.apache.jetspeed.production.jdbc.drivers.path=${org.apache.jetspeed.server.home}/common/endorsed/mysql-connector-java-3.0.15-ga-bin.jar


The only one im not sure about is com.mysql.jdbc.driver.

NTOE: I do not have a build.properties in ${org.apache.jetspeed.portal.home}
since all the information is provided in ${home}/build.properties. It does
not work when I dont have the db information in ${home}

Thanks,

Akshay



 HTTP Status 500 -
------------------------------

*type* Exception report

*message* **

*description* *The server encountered an internal error () that prevented it
from fulfilling this request.*

*exception*

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:45)
	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:1122)
	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(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	java.lang.reflect.Method.invoke(Unknown Source)
	org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
	org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

 *note* *The full stack trace of the root cause is available in the Apache
Tomcat/5.5.17 logs.*
------------------------------
Apache Tomcat/5.5.17

Re: Deployment issues

Posted by Aaron Evans <aa...@gmail.com>.
My bad, i mean webapps/myportal/logs.

No, there shouldn't be a jetspeed folder because you customized your
portal name to be myportal.  So your file structure is correct...

On 6/2/06, Akshay Ahooja <ak...@gmail.com> wrote:
> There is actually no *logs *folder in webapps/myportal/WEB-INF/ in the
> Tomcat directory. This is why I was suspecting some property is incorrect. I
> have pasted the files under *webapps/myportal/WEB-INF/* below.
>
> Is there anything more than the initial install: "maven
> -DartifactId=maven-jetspeed2-plugin -D..." that needs to be done in terms of
> Jetspeed?
>
> I did add a builds.properties inside basedir with database properties.
>
> Installed and deployed once again - same error. (waited for quite some time
> & stopped service while deploying)
>
> Also - this was deployed right under the webapps folder in Tomcat - Should
> there not be some Jetspeed folder?
>
>
> Thanks,
>
> Akshay
>
>
> DIR:
>
>
> C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\webapps\myportal\WEB-INF>
> dir
>
>  Directory of C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\webapps\myp
> ortal\WEB-INF
>
> 06/02/2006  03:30 PM    <DIR>          .
> 06/02/2006  03:30 PM    <DIR>          ..
> 06/02/2006  01:32 PM    <DIR>          apps
> 06/02/2006  03:30 PM    <DIR>          assembly
> 06/02/2006  03:30 PM    <DIR>          classes
> 06/02/2006  03:30 PM    <DIR>          conf
> 06/02/2006  03:30 PM    <DIR>          deploy
> 06/02/2006  01:32 PM             1,188 jboss-web.xml
> 06/02/2006  01:32 PM             5,898 jetspeed_macros.vm
> 06/02/2006  03:30 PM    <DIR>          lib
> 06/02/2006  03:30 PM    <DIR>          pages
> 06/02/2006  01:32 PM             3,559 portlet.tld
> 06/02/2006  03:30 PM    <DIR>          templates
> 06/02/2006  03:30 PM    <DIR>          tld
> 06/02/2006  01:32 PM             1,474 toolbox.xml
> 06/02/2006  01:32 PM             5,035 velocity.properties
> 06/02/2006  01:32 PM             6,979 web.xml
> 06/02/2006  01:32 PM               533 weblogic.xml
>
>
>
>
>
>
> On 6/2/06, Aaron Evans <aa...@gmail.com> wrote:
> >
> > Did you give it enough time to start up? The first time it takes quite a
> > while.
> >
> > As for your db settings, I think I also found that they had to be
> > setup in the build.properties of my home directory.
> >
> > Your driver class setting of com.mysql.jdbc.Driver looks correct.  If
> > you want to double check you could peek in the jar file of your mysql
> > jdbc drivers, but I'm pretty sure that is right.
> >
> > If the DB scripts succeed when you run j2:quickStart (and they must in
> > order for you to get BUILD SUCCESSFUL), then your DB settings must be
> > correct because maven will use the same connection parameters and
> > driver.
> >
> > I can't tell from this snipit of the stack trace what is going wrong.
> >
> > Take a look at webapps/myportal/WEB-INF/logs/jetspeed.log and see if
> > there is a better error message in there.  It is the best log to check
> > when things go wrong with jetspeed.  There is likely a better stack
> > trace in there that will pinpoint the problem, so email me that.
> >
> > cheers,
> > aaron
> >
> > On 6/2/06, Akshay Ahooja < akshayahooja@gmail.com> wrote:
> > > Thanks Aaron!
> > >
> > >
> > >
> > >
> > > I deployed "myportal" using quickStart - When I go to
> > > localhost:8080/myportal it gives an initialization error pasted below:
> > >
> > > In my properties file:
> > >
> > >
> > > org.apache.jetspeed.services.autodeployment.user = admin
> > > org.apache.jetspeed.services.autodeployment.password = password
> > > org.apache.jetspeed.services.autodeployment.port = 8080
> > >
> > >
> > > In tomcat-users.xml:
> > >
> > > <?xml version='1.0' encoding='utf-8'?>
> > > <tomcat-users>
> > >   <role rolename="tomcat"/>
> > >   <role rolename="role1"/>
> > >   <role rolename="manager"/>
> > >   <role rolename="admin"/>
> > >   <user username="tomcat" password="tomcat" roles="tomcat"/>
> > >   <user username="both" password="tomcat" roles="tomcat,role1"/>
> > >   <user username="role1" password="tomcat" roles="role1"/>
> > >   <user username="admin" password="password" roles="manager"/>
> > > </tomcat-users>
> > >
> > >
> > > I checked through the archives - my JDBC driver is set in the right
> > place:
> > >
> > >
> > -------------------------------------------------------------------------
> > > # configure MySQL Production DB
> > > #
> > >
> > -------------------------------------------------------------------------
> > > org.apache.jetspeed.production.database.default.name=mysql
> > > org.apache.jetspeed.production.database.url = jdbc:mysql://svv-db/ptest
> > > org.apache.jetspeed.production.database.user = aahooja
> > > org.apache.jetspeed.production.database.password = password
> > > org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver
> > >
> > org.apache.jetspeed.production.jdbc.drivers.path=${org.apache.jetspeed.server.home}/common/endorsed/mysql-connector-java-3.0.15-ga-bin.jar
> > >
> > >
> > > The only one im not sure about is com.mysql.jdbc.driver.
> > >
> > > NTOE: I do not have a build.properties in ${
> > org.apache.jetspeed.portal.home}
> > > since all the information is provided in ${home}/build.properties. It
> > does
> > > not work when I dont have the db information in ${home}
> > >
> > > Thanks,
> > >
> > > Akshay
> > >
> > >
> > >
> > >  HTTP Status 500 -
> > > ------------------------------
> > >
> > > *type* Exception report
> > >
> > > *message* **
> > >
> > > *description* *The server encountered an internal error () that
> > prevented it
> > > from fulfilling this request.*
> > >
> > > *exception*
> > >
> > > 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:45)
> > >         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
> > :1122)
> > >         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 (Unknown Source)
> > >         sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > >         java.lang.reflect.Method.invoke(Unknown Source)
> > >         org.apache.catalina.startup.Bootstrap.start( Bootstrap.java:294)
> > >         org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> > >
> > >  *note* *The full stack trace of the root cause is available in the
> > Apache
> > > Tomcat/5.5.17 logs.*
> > > ------------------------------
> > > Apache Tomcat/5.5.17
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> > For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> >
> >
>
>

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


Re: Deployment issues

Posted by Akshay Ahooja <ak...@gmail.com>.
There is actually no *logs *folder in webapps/myportal/WEB-INF/ in the
Tomcat directory. This is why I was suspecting some property is incorrect. I
have pasted the files under *webapps/myportal/WEB-INF/* below.

Is there anything more than the initial install: "maven
-DartifactId=maven-jetspeed2-plugin -D..." that needs to be done in terms of
Jetspeed?

I did add a builds.properties inside basedir with database properties.

Installed and deployed once again - same error. (waited for quite some time
& stopped service while deploying)

Also - this was deployed right under the webapps folder in Tomcat - Should
there not be some Jetspeed folder?


Thanks,

Akshay


DIR:


C:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\myportal\WEB-INF>
dir

 Directory of C:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\myp
ortal\WEB-INF

06/02/2006  03:30 PM    <DIR>          .
06/02/2006  03:30 PM    <DIR>          ..
06/02/2006  01:32 PM    <DIR>          apps
06/02/2006  03:30 PM    <DIR>          assembly
06/02/2006  03:30 PM    <DIR>          classes
06/02/2006  03:30 PM    <DIR>          conf
06/02/2006  03:30 PM    <DIR>          deploy
06/02/2006  01:32 PM             1,188 jboss-web.xml
06/02/2006  01:32 PM             5,898 jetspeed_macros.vm
06/02/2006  03:30 PM    <DIR>          lib
06/02/2006  03:30 PM    <DIR>          pages
06/02/2006  01:32 PM             3,559 portlet.tld
06/02/2006  03:30 PM    <DIR>          templates
06/02/2006  03:30 PM    <DIR>          tld
06/02/2006  01:32 PM             1,474 toolbox.xml
06/02/2006  01:32 PM             5,035 velocity.properties
06/02/2006  01:32 PM             6,979 web.xml
06/02/2006  01:32 PM               533 weblogic.xml






On 6/2/06, Aaron Evans <aa...@gmail.com> wrote:
>
> Did you give it enough time to start up? The first time it takes quite a
> while.
>
> As for your db settings, I think I also found that they had to be
> setup in the build.properties of my home directory.
>
> Your driver class setting of com.mysql.jdbc.Driver looks correct.  If
> you want to double check you could peek in the jar file of your mysql
> jdbc drivers, but I'm pretty sure that is right.
>
> If the DB scripts succeed when you run j2:quickStart (and they must in
> order for you to get BUILD SUCCESSFUL), then your DB settings must be
> correct because maven will use the same connection parameters and
> driver.
>
> I can't tell from this snipit of the stack trace what is going wrong.
>
> Take a look at webapps/myportal/WEB-INF/logs/jetspeed.log and see if
> there is a better error message in there.  It is the best log to check
> when things go wrong with jetspeed.  There is likely a better stack
> trace in there that will pinpoint the problem, so email me that.
>
> cheers,
> aaron
>
> On 6/2/06, Akshay Ahooja < akshayahooja@gmail.com> wrote:
> > Thanks Aaron!
> >
> >
> >
> >
> > I deployed "myportal" using quickStart - When I go to
> > localhost:8080/myportal it gives an initialization error pasted below:
> >
> > In my properties file:
> >
> >
> > org.apache.jetspeed.services.autodeployment.user = admin
> > org.apache.jetspeed.services.autodeployment.password = password
> > org.apache.jetspeed.services.autodeployment.port = 8080
> >
> >
> > In tomcat-users.xml:
> >
> > <?xml version='1.0' encoding='utf-8'?>
> > <tomcat-users>
> >   <role rolename="tomcat"/>
> >   <role rolename="role1"/>
> >   <role rolename="manager"/>
> >   <role rolename="admin"/>
> >   <user username="tomcat" password="tomcat" roles="tomcat"/>
> >   <user username="both" password="tomcat" roles="tomcat,role1"/>
> >   <user username="role1" password="tomcat" roles="role1"/>
> >   <user username="admin" password="password" roles="manager"/>
> > </tomcat-users>
> >
> >
> > I checked through the archives - my JDBC driver is set in the right
> place:
> >
> >
> -------------------------------------------------------------------------
> > # configure MySQL Production DB
> > #
> >
> -------------------------------------------------------------------------
> > org.apache.jetspeed.production.database.default.name=mysql
> > org.apache.jetspeed.production.database.url = jdbc:mysql://svv-db/ptest
> > org.apache.jetspeed.production.database.user = aahooja
> > org.apache.jetspeed.production.database.password = password
> > org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver
> >
> org.apache.jetspeed.production.jdbc.drivers.path=${org.apache.jetspeed.server.home}/common/endorsed/mysql-connector-java-3.0.15-ga-bin.jar
> >
> >
> > The only one im not sure about is com.mysql.jdbc.driver.
> >
> > NTOE: I do not have a build.properties in ${
> org.apache.jetspeed.portal.home}
> > since all the information is provided in ${home}/build.properties. It
> does
> > not work when I dont have the db information in ${home}
> >
> > Thanks,
> >
> > Akshay
> >
> >
> >
> >  HTTP Status 500 -
> > ------------------------------
> >
> > *type* Exception report
> >
> > *message* **
> >
> > *description* *The server encountered an internal error () that
> prevented it
> > from fulfilling this request.*
> >
> > *exception*
> >
> > 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:45)
> >         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
> :1122)
> >         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 (Unknown Source)
> >         sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> >         java.lang.reflect.Method.invoke(Unknown Source)
> >         org.apache.catalina.startup.Bootstrap.start( Bootstrap.java:294)
> >         org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> >
> >  *note* *The full stack trace of the root cause is available in the
> Apache
> > Tomcat/5.5.17 logs.*
> > ------------------------------
> > Apache Tomcat/5.5.17
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>

Re: Deployment issues

Posted by Aaron Evans <aa...@gmail.com>.
Did you give it enough time to start up? The first time it takes quite a while.

As for your db settings, I think I also found that they had to be
setup in the build.properties of my home directory.

Your driver class setting of com.mysql.jdbc.Driver looks correct.  If
you want to double check you could peek in the jar file of your mysql
jdbc drivers, but I'm pretty sure that is right.

If the DB scripts succeed when you run j2:quickStart (and they must in
order for you to get BUILD SUCCESSFUL), then your DB settings must be
correct because maven will use the same connection parameters and
driver.

I can't tell from this snipit of the stack trace what is going wrong.

Take a look at webapps/myportal/WEB-INF/logs/jetspeed.log and see if
there is a better error message in there.  It is the best log to check
when things go wrong with jetspeed.  There is likely a better stack
trace in there that will pinpoint the problem, so email me that.

cheers,
aaron

On 6/2/06, Akshay Ahooja <ak...@gmail.com> wrote:
> Thanks Aaron!
>
>
>
>
> I deployed "myportal" using quickStart - When I go to
> localhost:8080/myportal it gives an initialization error pasted below:
>
> In my properties file:
>
>
> org.apache.jetspeed.services.autodeployment.user = admin
> org.apache.jetspeed.services.autodeployment.password = password
> org.apache.jetspeed.services.autodeployment.port = 8080
>
>
> In tomcat-users.xml:
>
> <?xml version='1.0' encoding='utf-8'?>
> <tomcat-users>
>   <role rolename="tomcat"/>
>   <role rolename="role1"/>
>   <role rolename="manager"/>
>   <role rolename="admin"/>
>   <user username="tomcat" password="tomcat" roles="tomcat"/>
>   <user username="both" password="tomcat" roles="tomcat,role1"/>
>   <user username="role1" password="tomcat" roles="role1"/>
>   <user username="admin" password="password" roles="manager"/>
> </tomcat-users>
>
>
> I checked through the archives - my JDBC driver is set in the right place:
>
> -------------------------------------------------------------------------
> # configure MySQL Production DB
> #
> -------------------------------------------------------------------------
> org.apache.jetspeed.production.database.default.name=mysql
> org.apache.jetspeed.production.database.url = jdbc:mysql://svv-db/ptest
> org.apache.jetspeed.production.database.user = aahooja
> org.apache.jetspeed.production.database.password = password
> org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver
> org.apache.jetspeed.production.jdbc.drivers.path=${org.apache.jetspeed.server.home}/common/endorsed/mysql-connector-java-3.0.15-ga-bin.jar
>
>
> The only one im not sure about is com.mysql.jdbc.driver.
>
> NTOE: I do not have a build.properties in ${org.apache.jetspeed.portal.home}
> since all the information is provided in ${home}/build.properties. It does
> not work when I dont have the db information in ${home}
>
> Thanks,
>
> Akshay
>
>
>
>  HTTP Status 500 -
> ------------------------------
>
> *type* Exception report
>
> *message* **
>
> *description* *The server encountered an internal error () that prevented it
> from fulfilling this request.*
>
> *exception*
>
> 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:45)
>         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:1122)
>         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(Unknown Source)
>         sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         java.lang.reflect.Method.invoke(Unknown Source)
>         org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
>         org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
>
>  *note* *The full stack trace of the root cause is available in the Apache
> Tomcat/5.5.17 logs.*
> ------------------------------
> Apache Tomcat/5.5.17
>
>

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