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 Norman Schöneich <sc...@ecooperate.de> on 2001/09/06 15:28:54 UTC

PSML Files ?

Jetspeed 1.3a1 creates a default psml file and user directory, if a user,
that's registered in DB allready, logged in for the first time.

What's about Jetspeed 1.3a2 ?

I get the following error (user == test)

[Thu Sep 06 15:27:25 CEST 2001] -- INFO -- Created a CapabilityMap for
agent:  Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
[Thu Sep 06 15:27:25 CEST 2001] -- INFO -- PSML-Man: calculated
resource:user/test/html/de//default.psml. Base:
/home/schoeneich/server/JBoss-2.4.0_Tomcat-3.2.3/jboss/tmp/deploy/Default/ig
efaportal.ear/web1014/WEB-INF/psml
[Thu Sep 06 15:27:25 CEST 2001] -- INFO -- CastorPsmlManager: about to
return null doc:
[Thu Sep 06 15:27:25 CEST 2001] -- INFO -- PSML-Man: calculated
resource:user/test/html/de/default.psml. Base:
/home/schoeneich/server/JBoss-2.4.0_Tomcat-3.2.3/jboss/tmp/deploy/Default/ig
efaportal.ear/web1014/WEB-INF/psml
[Thu Sep 06 15:27:25 CEST 2001] -- INFO -- CastorPsmlManager: about to
return null doc:
[Thu Sep 06 15:27:25 CEST 2001] -- INFO -- PSML-Man: calculated
resource:user/test/html/default.psml. Base:
/home/schoeneich/server/JBoss-2.4.0_Tomcat-3.2.3/jboss/tmp/deploy/Default/ig
efaportal.ear/web1014/WEB-INF/psml
[Thu Sep 06 15:27:25 CEST 2001] -- INFO -- CastorPsmlManager: about to
return null doc:
[Thu Sep 06 15:27:25 CEST 2001] -- INFO -- PSML-Man: calculated
resource:user/test/default.psml. Base:
/home/schoeneich/server/JBoss-2.4.0_Tomcat-3.2.3/jboss/tmp/deploy/Default/ig
efaportal.ear/web1014/WEB-INF/psml
[Thu Sep 06 15:27:25 CEST 2001] -- INFO -- CastorPsmlManager: about to
return null doc:
[Thu Sep 06 15:27:25 CEST 2001] -- INFO -- PSML-Man: calculated
resource:anon/default.psml. Base:
/home/schoeneich/server/JBoss-2.4.0_Tomcat-3.2.3/jboss/tmp/deploy/Default/ig
efaportal.ear/web1014/WEB-INF/psml
[Thu Sep 06 15:27:25 CEST 2001] -- INFO -- CastorPsmlManager: about to
return null doc:
[Thu Sep 06 15:27:25 CEST 2001] -- DEBUG -- JetspeedTemplatePage: requested
template = Home.vm
[Thu Sep 06 15:27:25 CEST 2001] -- DEBUG -- template exists:
/home/schoeneich/server/JBoss-2.4.0_Tomcat-3.2.3/jboss/tmp/deploy/Default/ig
efaportal.ear/web1014/WEB-INF/templates/vm/screens/html/Home.vm returning
/html/Home.vm
[Thu Sep 06 15:27:25 CEST 2001] -- DEBUG -- JetspeedTemplatePage: calculated
template = /html/Home.vm
[Thu Sep 06 15:27:25 CEST 2001] -- DEBUG -- template exists:
/home/schoeneich/server/JBoss-2.4.0_Tomcat-3.2.3/jboss/tmp/deploy/Default/ig
efaportal.ear/web1014/WEB-INF/templates/vm/layouts/html/default.vm returning
/html/default.vm
[Thu Sep 06 15:27:25 CEST 2001] -- DEBUG -- JetspeedTemplatePage:
layoutTemplate is finally /html/default.vm
[Thu Sep 06 15:27:25 CEST 2001] -- ERROR -- Error rendering Velocity
template: screens/html/Home.vm: Invocation of method 'getPane' in  class
org.apache.jetspeed.util.template.JetspeedTool threw exception class
java.lang.ClassCastException : java.lang.String
[Thu Sep 06 15:27:25 CEST 2001] -- ERROR -- Error rendering Velocity
template: screens/Error.vm: Unable to find resource 'screens/Error.vm'
[Thu Sep 06 15:27:25 CEST 2001] -- ERROR --
	Exception:  org.apache.turbine.util.TurbineException: Error rendering
Velocity template: screens/Error.vm: Unable to find resource
'screens/Error.vm'
	Stack Trace follows:
	org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'screens/Error.vm'
	at
org.apache.velocity.runtime.resource.ResourceManager.getResource(ResourceMan
ager.java:438)
	at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java
:734)
	at
org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.ja
va:353)
	at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:518)
	at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:497)
rethrown as org.apache.turbine.util.TurbineException: Error rendering
Velocity template: screens/Error.vm: Unable to find resource
'screens/Error.vm'
	at
org.apache.turbine.services.velocity.TurbineVelocityService.renderingError(T
urbineVelocityService.java:518)
	at
org.apache.turbine.services.velocity.TurbineVelocityService.decodeRequest(Tu
rbineVelocityService.java:484)
	at
org.apache.turbine.services.velocity.TurbineVelocityService.handleRequest(Tu
rbineVelocityService.java:313)
	at
org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(TurbineVe
locity.java:146)
	at
org.apache.turbine.modules.screens.VelocityDirectScreen.buildTemplate(Veloci
tyDirectScreen.java:142)
	at
org.apache.turbine.modules.screens.TemplateScreen.doBuild(TemplateScreen.jav
a:130)
	at org.apache.turbine.modules.Screen.build(Screen.java:99)
	at org.apache.turbine.modules.ScreenLoader.eval(ScreenLoader.java:129)
	at
org.apache.turbine.util.template.TemplateScreen.toString(TemplateScreen.java
:126)
	at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.jav
a:324)
	at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:26
7)
	at org.apache.velocity.Template.merge(Template.java:296)
	at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:528)
	at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:497)
	at
org.apache.turbine.services.velocity.TurbineVelocityService.decodeRequest(Tu
rbineVelocityService.java:479)
	at
org.apache.turbine.services.velocity.TurbineVelocityService.handleRequest(Tu
rbineVelocityService.java:313)
	at
org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(TurbineVe
locity.java:146)
	at
org.apache.turbine.modules.layouts.VelocityDirectLayout.doBuild(VelocityDire
ctLayout.java:106)
	at org.apache.turbine.modules.Layout.build(Layout.java:91)
	at org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:123)
	at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:166)
	at org.apache.turbine.modules.Page.build(Page.java:90)
	at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
	at org.apache.turbine.Turbine.doGet(Turbine.java:447)
	at org.apache.turbine.Turbine.doPost(Turbine.java:537)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)


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


jsp/tag/???

Posted by Anthony Smith <an...@fedex.com>.
If I take one of the jsp pages located in templates/jsp/layouts/html

and place them in another folder I created called jsp that is located right
under the jetspeed folder.

I changed the taglib  uri to read....

<%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed'
%>

Now I called the page without using a servlet and I get a Servlet Exception.

I looked at the logs and stuff and it does not seem to like this line in the
jsp page

 <head>
  <base href="<jetspeed:uriLookup type="BaseURL" />">
  <link href="css/default.css" type="text/css" rel="stylesheet">


</head>

How can I fix this? Basically I just want to be able to access jsp pages
without having to use servlets?

HERE IS THE ERROR
[Fri Sep 07 10:13:38 CDT 2001] --  ERROR  -- Error processing uriLookup-tag,
parameter: BaseURL
	Exception:  java.lang.NullPointerException
	Stack Trace follows:
	java.lang.NullPointerException
	at
org.apache.jetspeed.util.URILookup.getWebAppBaseDirURI(URILookup.java:682)
	at
org.apache.jetspeed.services.jsp.tags.URILookupTag.doStartTag(URILookupTag.j
ava:184)
	at
jsp._0002fjsp_0002ffaq_0005flayout_0002ejspfaq_0005flayout_jsp_4._jspService
(_0002fjsp_0002ffaq_0005flayout_0002ejspfaq_0005flayout_jsp_4.java:67)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)


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


Re: AW: PSML Files ?

Posted by David Sean Taylor <da...@bluesunrise.com>.
Im confused, Is the question, "How do you change the default resource name
for psml?"
If so, you can do that in JRP

# The default resource filename
services.Profiler.resource.default=default

The PSML is written out using the org.apache.jetspeed.services.PSMLManager
interface
By default its the Castor PSML Manager service:

services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.Cast
orPsmlManagerService


----- Original Message -----
From: "Chris Kimpton" <ki...@yahoo.com>
To: <je...@jakarta.apache.org>
Sent: Thursday, September 06, 2001 10:24 AM
Subject: Re: AW: PSML Files ?


> Hi,
>
> --- Norman_Schoneich <sc...@ecooperate.de> wrote:
> > OK,
> > but can you tell in which source code / (action?) the default.psml
> > file for
> > a user is written.
> > Then i can do the stuff i need.
> >
>
> Sorry - don't know that - I would search the source for default.psml
> - which is probably in a config file/static string somewhere...
>
> Chris
>
> =====
> Need somewhere to Live in London - http://freeflats.com
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger
> http://im.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>



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


Re: AW: PSML Files ?

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- Norman_Schoneich <sc...@ecooperate.de> wrote:
> OK,
> but can you tell in which source code / (action?) the default.psml
> file for
> a user is written.
> Then i can do the stuff i need.
> 

Sorry - don't know that - I would search the source for default.psml
- which is probably in a config file/static string somewhere...

Chris

=====
Need somewhere to Live in London - http://freeflats.com

__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

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


AW: PSML Files ?

Posted by Norman Schoneich <sc...@ecooperate.de>.
OK,
but can you tell in which source code / (action?) the default.psml file for
a user is written.
Then i can do the stuff i need.

TIA

-----Ursprungliche Nachricht-----
Von: Chris Kimpton [mailto:kimptoc_mail@yahoo.com]
Gesendet: Donnerstag, 6. September 2001 15:49
An: jetspeed-user@jakarta.apache.org
Betreff: Re: PSML Files ?


Hi,

--- Norman_Schvneich <sc...@ecooperate.de> wrote:
> Jetspeed 1.3a1 creates a default psml file and user directory, if a
> user,
> that's registered in DB allready, logged in for the first time.
>
> What's about Jetspeed 1.3a2 ?

If the user registers through the site, then I think it gets created
ok.

If they just exist in the db and then login, I've seen problems with
this.

>
> I get the following error (user == test)
>
> [Thu Sep 06 15:27:25 CEST 2001] -- INFO -- Created a CapabilityMap
> for
> agent:  Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
> [Thu Sep 06 15:27:25 CEST 2001] -- INFO -- PSML-Man: calculated
> resource:user/test/html/de//default.psml. Base:
>
/home/schoeneich/server/JBoss-2.4.0_Tomcat-3.2.3/jboss/tmp/deploy/Default/ig
> efaportal.ear/web1014/WEB-INF/psml

Looks like you are running with tomcat embedded in JBoss - have you
tried it with standalone tomcat - do you get the same error?

That's correct. I didn't tried yet.

HTH,
Chris

=====
Need somewhere to Live in London - http://freeflats.com

__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

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


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


Re: PSML Files ?

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- Norman_Sch�neich <sc...@ecooperate.de> wrote:
> Jetspeed 1.3a1 creates a default psml file and user directory, if a
> user,
> that's registered in DB allready, logged in for the first time.
> 
> What's about Jetspeed 1.3a2 ?

If the user registers through the site, then I think it gets created
ok.

If they just exist in the db and then login, I've seen problems with
this.

> 
> I get the following error (user == test)
> 
> [Thu Sep 06 15:27:25 CEST 2001] -- INFO -- Created a CapabilityMap
> for
> agent:  Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
> [Thu Sep 06 15:27:25 CEST 2001] -- INFO -- PSML-Man: calculated
> resource:user/test/html/de//default.psml. Base:
>
/home/schoeneich/server/JBoss-2.4.0_Tomcat-3.2.3/jboss/tmp/deploy/Default/ig
> efaportal.ear/web1014/WEB-INF/psml

Looks like you are running with tomcat embedded in JBoss - have you
tried it with standalone tomcat - do you get the same error?

HTH,
Chris

=====
Need somewhere to Live in London - http://freeflats.com

__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

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