Sven,
Zip up and send me your project and PSML and I'll see if I can get it to work. I always run the importer from the Jetspeed source directory. Never tried it from a plugin project. Make sure you run 'maven clean' before zipping the project and sending it.
David
Sven Richter wrote:
Hello,
I found the solution to the first problem: you don't have to copy the ./src/webapp directory to ./webapp (there are only the merge-files and the files that you changed in there); you have to first run "maven jetspeed:deploy" (of course) and then copy the ./target/[your-projects-name] (in my case: ./target/MyPortal) under the name ./webapp. Then it at least imports the profiles (I checked with an database tool). But I still get the following error message with maven:
===============================================================================================
[MyPortal]# maven import __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2
build:start:
import:
[java] ***** PSML Importer *****
[java] log4j:WARN No appenders could be found for logger (org.apache.stratum.component.ComponentLoader).
[java] log4j:WARN Please initialize the log4j system properly.
[java] NOTICE: Finished initializing all services!
[java] Running with Importer Service: class org.apache.jetspeed.services.psmlmanager.db.DatabasePsmlManagerService
[java] Running with Exporter Service: class org.apache.jetspeed.services.psmlmanager.CastorPsmlManagerService
[java] PSMLImporter completed. Exported 24 profiles
[java] **** PSML Importer - completed
[java] [ERROR] Java Result: 1
BUILD SUCCESSFUL
Total time: 13 seconds
Finished at: Sun Mar 20 17:23:32 CET 2005
===============================================================================================
And even worse than that. When I try to start it in the browser (http://localhost:8080/MyPortal) jetspeed doesn't seem to find the database entries and I get the following error message:
===============================================================================================
There has been an Error! Reason:
org.apache.jetspeed.om.profile.ProfileException: java.lang.NullPointerException
Get/Post Data:
template = /html/ShowError.vm
Stacktrace:
org.apache.jetspeed.om.profile.ProfileException: java.lang.NullPointerException
at org.apache.jetspeed.services.profiler.JetspeedProfilerService.fallbackProfile(JetspeedProfilerService.java:502)
at org.apache.jetspeed.services.profiler.JetspeedProfilerService.getProfile(JetspeedProfilerService.java:245)
at org.apache.jetspeed.services.profiler.JetspeedProfilerService.getProfile(JetspeedProfilerService.java:528)
at org.apache.jetspeed.services.Profiler.getProfile(Profiler.java:87)
at org.apache.jetspeed.modules.actions.JetspeedAccessController.doPerform(JetspeedAccessController.java:74)
at org.apache.turbine.modules.Action.perform(Action.java:87)
at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
at org.apache.turbine.Turbine.doGet(Turbine.java:529)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:45)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)
===============================================================================================
Does anyone know why?
Thank you very much, Sven.
------- My original mail ------- Von: "Sven Richter" <[EMAIL PROTECTED]> An: "Jetspeed Users List" <[email protected]> Betreff: Re: importing PSML into the database - where do I put the driver? Datum: Sat, 19 Mar 2005 16:05:06 +0100
Hello,
I think I'm slowly getting there. At least I don't get any error message anymore. It says now:
===============================================================================================
[MyPortal]# maven import __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2
build:start:
import:
[java] ***** PSML Importer *****
===============================================================================================
But that's all it does. It stucks there. I waited for about 30 minutes, but nothing is happening. I also looked with an Database-Tool: it doesn't add any entries to the tables. It seems as if the ImporterService doesn't know what to add.
Thank you very much, Sven.
Am Fri, 18 Mar 2005 07:15:46 -0800 schrieb David Sean Taylor <[EMAIL PROTECTED]>:
Sven Richter wrote:
He also mentioned that I have to update the path to include the jetspeed 1.5 jar. But I don't know how. I tried several things, but I know always get the error message, that the file NULL/.../TurbineResources.properties was not found. Maven is looking in the wrong directory (in NULL). Could you (or somebody else) send me an example of this file and/or $HOME/build.properties, so that I can figure out how?Didn't you say that you created your project with the Jetspeed Plugin?
If so, then it appears that you will need to copy your ./src/webapp directory to ./webapp, and you will need a TurbineResources.properties file located in ./webapp/WEB-INF/conf/TurbineResources.properties
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- David Sean Taylor Bluesunrise Software [EMAIL PROTECTED] [office] +01 707 773-4646 [mobile] +01 707 529 9194
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
