David Sean Taylor schrieb:
Marcus Breier wrote:
Dear all,

I have got some trouble with my Jetspeed 2.0 installation. Beside the
public demo pages in "($J2_HOME)/webapps/jetspeed/WEB-INF/pages/Public"
another folder "pages/test" has been created. Within this folder the
PSML descriptors for my own public pages have been created. To show the
content of a test page the contentviewer portlet of the demo context has
been copied to an own testcontext. This copy is used to display plain
HTML files.

Problem: Everytime another page is linked using the mechanism of the
demo package the contentviewer looks for the HTML pages in the wrong
context. Instead of a lookup in the also created context "test" it looks
for the pages in the "demo" context.

Question: How can I correct this behaviour?

Not really sure if I understand the problem...
Why do you say that its looking in the demo context?
Did you register a portlet application with the name "test"?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Well, I have copied the whole HTML content of the
"webapps/demo/WEB-INF/_content" folder, that comes with the Jetspeed 2
installer. It has been put into a WAR file in a similar path
"WEB-INF/content". After deploying that WAR file with J2 the HTML
fragments are accessible under "webapps/test/WEB-INF/content".

To display the HTML content I am using the demo portlet "ContentViewer", which has been copied to my WAR file too. The copied portlet has been registered as "TestCV" (please find the part of my portlet.xml below).

For the first test a copy of the menu page, originally located to the J2 "Public Content" area, is displayed. Copies of the original subparts "Constitution" and "Bill of Rights" are linked like in the original context. After a click on one of both links, the layout of the original "Public Content" area is shown in my browser with the message, that "File /WEB-INF//content/Constitution.html not found.".

The strange thing for me is, that if I copy my HTML testpages to "webapps/demo/WEB-INF/_content" and put additional links into the original menu, the pages can be linked. In my own context stored to "webapps/test/WEB-INF/content" J2 cannot locate them. This behaviour lead me to the assumption, that J2 is looking for my pages in the wrong location.

Hope I got you right and my problem a bit more clear. ;-) ... Thanks for help.

Best regards
Marcus

--- part of my portlet.xml ---

<?xml version="1.0" encoding="UTF-8"?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"; id="test" version="1.0">
  ...
  <portlet>
    <description>Content Viewer portlet 2</description>
    <portlet-name>TestCV</portlet-name>
    <display-name>Content Viewer 2</display-name>
     <portlet-class>
       org.apache.portals.gems.file.FilePortlet
     </portlet-class>
     <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>VIEW</portlet-mode>
     </supports>
     <supports>
       <mime-type>application/pdf</mime-type>
       <portlet-mode>VIEW</portlet-mode>
     </supports>
     <supports>
       <mime-type>application/zip</mime-type>
       <portlet-mode>VIEW</portlet-mode>
     </supports>
     <supports>
       <mime-type>text/csv</mime-type>
       <portlet-mode>VIEW</portlet-mode>
     </supports>
     <supported-locale>en</supported-locale>
     <portlet-info>
       <title>Content Viewer</title>
       <short-title>Content</short-title>
       <keywords>content,viewer,file</keywords>
     </portlet-info>
   </portlet>
</portlet-app>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to