Resource Menu


posted by Sebastien Jourdain at Jan 11, 2006 12:22 PM
Quote
Hello everyone,

The problem come from our Bootstrap that has an old version of the template which is not compatible with the last release… We should update our bootstrap… (Sorry)

To solve this problem and use template, juste make your own standard project with project and so on. Then edit (Edit resource) the basic template and set the uri to your standard project, so the template will save the state of your standard project and now the template will instanciate your default project structure… By this way you should fix the error of the default template…

posted by Rüdiger Lincke at Jan 11, 2006 12:22 PM
Quote
Hello Sebastian,

no, unfortunatelly, its still the same problem. I am currently using the manual create resource for creating new projects, doing everything step by step by hand.

My current stategy is to set up some "template" project having all the menu, forum, bug tracker, … I want. Then exporting it into XML. This I will import when needed using the Import data from XML, in the create resource (project) dialog.

I guess thats not the intended way doing it, but the best I can currently think of.

Rüdiger

posted by Guest at Jan 11, 2006 12:22 PM
Quote
Hello,

I have exactly the same error. Did you find a way to overcome this error.


Sébastien Sockeel
posted by Guest at Jan 11, 2006 12:22 PM
Quote
Ok, here is exactly what I did:

I am logged in as root (SUPERUSER), and should therefore have all permissions needed.

On the Platform Home (ls://localhost:9000/projects), in the Getting started section I clicked:

Create a new project using this template.

On the side Basic Project template (ls://localhost:9000/templates/basicProject) I entered under Instance uri:

/projects/test

and when I click on create instance I get the following error displayed:

Basic Project template ls://localhost:9000/templates/basicProject Unexpected error - Go Back Error in newInstanceTemplate : Problem during import(/projects/test)


org.libresource.core.LibresourceCoreServiceException: Error in newInstanceTemplate : Problem during import(/projects/test) at org.libresource.core.ejb.LibresourceCoreServiceBean.newInstanceTemplate(Unknown Source) at org.libresource.core.interfaces.JOnASLibresourceCoreService275938075Remote.newInstanceTemplate(JOnASLibresourceCoreService275938075Remote.java:767) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) at org.objectweb.carol.rmi.jrmp.server.JUnicastServerRef.runDispatch(JUnicastServerRef.java:160) at org.objectweb.carol.rmi.jrmp.server.JUnicastServerRef.dispatch(JUnicastServerRef.java:145) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) at java.lang.Thread.run(Thread.java:534) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) at org.objectweb.carol.rmi.jrmp.server.JRemoteCall.executeCall(JRemoteCall.java:89) at org.objectweb.carol.rmi.jrmp.server.JUnicastRef.invoke(JUnicastRef.java:161) at org.libresource.core.interfaces.JOnASLibresourceCoreService275938075Remote_Stub.newInstanceTemplate(Unknown Source) at org.libresource.web.controllers.core.NewInstanceController.process(Unknown Source) at org.libresource.web.servlets.Browse.process(Unknown Source) at org.libresource.web.servlets.BaseServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:500) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:129) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:61) at org.libresource.web.filters.SiteMeshFilter.doFilter(Unknown Source) at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:500) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152) at org.libresource.web.filters.SecurityFilter.doFilter(Unknown Source) at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:500) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152) 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:684) at java.lang.Thread.run(Thread.java:534) Caused by: org.libresource.LibresourceException: Problem during import(/projects/test) at org.libresource.xml.LibresourceImportExport.importXML(Unknown Source) at org.libresource.core.ejb.LibresourceCoreServiceBean.newInstanceTemplate(Unknown Source) at org.libresource.core.interfaces.JOnASLibresourceCoreService275938075Remote.newInstanceTemplate(JOnASLibresourceCoreService275938075Remote.java:767) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) at org.objectweb.carol.rmi.jrmp.server.JUnicastServerRef.runDispatch(JUnicastServerRef.java:160) at org.objectweb.carol.rmi.jrmp.server.JUnicastServerRef.dispatch(JUnicastServerRef.java:145) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) … 1 more Caused by: java.lang.NullPointerException at org.libresource.xml.LibresourceSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) … 16 more

Is there something I am doing wrong?

In the error logs we find a lot of read past EOF exceptions.

I talked to some other LibreSource user, and he seemed also to experience this error. We are currently creating our projects directly in the ressource editor, creating each single ressource by hand.

Should this feature work? Or shall we just ignore it?

Thanks, Rüdiger

posted by Maxime Biais at Jan 11, 2006 12:22 PM
Quote
Can you explain a bit more the error ? Did you change the default URI suggested by the "create ressource" page ?
posted by Rüdiger Lincke at Jan 11, 2006 12:22 PM
Quote
Hello,

I got my LibreSource platform bootstrapped. Now I am logged in as root, and I want to create a new Project. I tried the Create new project using this template function, but I am receiving an error.

Basic Project template ls://localhost:9000/templates/basicProject Unexpected error - Go Back Error in newInstanceTemplate : Problem during import(/projects/test)

Any idea what I am doing wrong? Is there a description on how to create a new project and customize it? The manual I got (QuickStart) stops with this chapter.

Thank you in advance, Rüdiger

rudiger.lincke@msi.vxu.se