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 Saku Seppälä <sa...@tsk.fi> on 2005/07/27 13:04:02 UTC
Problems in creating a new portal application
Hi,
I'm a bit new to jetspeed. I just downloaded new jetspeed2
sources from the svn head and succesfully build it,
but I have difficulties in creating a new portal application.
I followed the instructions from:
http://www.geocities.com/dlestrat/etc/j2/buildChangeDocs.pdf
chapter 6.
My build.properties are:
# jetspeed 2 home required for build
org.apache.jetspeed.project.home = D:/eclipse/workspace/jetspeed-2
# jetspeed required properties
org.apache.jetspeed.server.home = D:/Tomcat5.5
org.apache.jetspeed.catalina.version.major = 5.5
org.apache.jetspeed.server.shared =
${org.apache.jetspeed.server.home}/shared/lib
org.apache.jetspeed.deploy.war.dir =
${org.apache.jetspeed.server.home}/webapps
org.apache.jetspeed.services.autodeployment.user = j2deployer
org.apache.jetspeed.services.autodeployment.password = j2deployer
org.apache.jetspeed.portal.name=tskportal
jetspeed.version=2.0-M4-SNAPSHOT
# j2:portal.genapp properties
org.apache.jetspeed.genapp.home= D:/eclipse/workspace/tskportal
org.apache.jetspeed.genapp.groupId=tskportal
org.apache.jetspeed.genapp.name=TSK Portal
org.apache.jetspeed.genapp.currentVersion=0.1
First problem:
when I do:
D:\eclipse\workspace\jetspeed-2>maven j2:genapp.portal
D:\eclipse\workspace\tskportal\project.xml is:
..
<project>
<extend>full-portal.xml</extend>
<pomVersion>3</pomVersion>
<groupId>tskportal</groupId>
<artifactId>jetspeed</artifactId>
<name>TSK Portal</name>
<currentVersion>0.1</currentVersion>
..
If do not change the artifactID to tskportal the maven j2:quickStart fails
and I get the following results:
D:\eclipse\workspace\tskportal>maven j2:portal.install
.....
war:war:
[echo] Building WAR jetspeed
[jar] Building jar: D:\eclipse\workspace\tskportal\target\jetspeed.war
Copying: from 'D:\eclipse\workspace\tskportal\target\jetspeed.war' to:
'C:\Docum
ents and
Settings\sseppala\.maven\repository\tskportal\wars\jetspeed-0.1.war'
Copying: from 'D:\eclipse\workspace\tskportal\project.xml' to:
'C:\Documents and
Settings\sseppala\.maven\repository\tskportal\poms\jetspeed-0.1.pom'
BUILD SUCCESSFUL
Total time: 32 seconds
Finished at: Wed Jul 27 12:15:46 EEST 2005
D:\eclipse\workspace\tskportal>maven j2:quickStart
.....
j2:fullDeploy:
j2:portal.deploy:
j2:remove.wars:
[echo] Remove war files, make sure to shutdown server first...
[echo] Deploying tskportal
BUILD FAILED
File...... C:\Documents and
Settings\sseppala\.maven\cache\maven-jetspeed2-plugi
n-2.0-M4-SNAPSHOT\plugin.jelly
Element... copy
Line...... 594
Column.... 116
Warning: Could not find file C:\Documents and
Settings\sseppala\.maven\repositor
y\tskportal\wars\tskportal-0.1.war to copy.
Total time: 59 seconds
Finished at: Wed Jul 27 12:42:33 EEST 2005
D:\eclipse\workspace\tskportal>
Second problem:
When I do get my portal deployed, start
tomcat and try to access my portal I get
the following exeption report.
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: Failed to initalize jetspeed.
org.apache.commons.configuration.ConfigurationException:
D:\Tomcat5.5\webapps\tskportal\WEB-INF\conf\override.properties (The
system cannot find the file specified)
org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:206)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660)
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp: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:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.commons.configuration.ConfigurationException:
D:\Tomcat5.5\webapps\tskportal\WEB-INF\conf\override.properties (The
system cannot find the file specified)
org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:128)
org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:63)
org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:179)
org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:120)
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:788)
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:677)
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473)
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
org.apache.catalina.startup.Catalina.start(Catalina.java:537)
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:271)
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.9 logs.
Has anyone succesfully created a new portal application from scratch
recently.
I'd appreciate any help.
Saku
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org