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 Luis Colorado <Lu...@fmssolutions.com> on 2007/02/12 23:42:06 UTC

RE : Jetspeed not working...

This is a quick comment for this problem.

I downloaded Jetspeed2.0-MultiDb-install.jar, and I had exactly the same problems described by Robert.

Following Audrey's suggestions, I checked for the existence of the j2-admin directory. The directory was there. However, I also noticed that the war file had a size of about 6 MB, while the directory had only a few files and subdirectory, amounting to about 1 MB. So I did the following: 

1. I stopped the server, and then I deleted the j2-admin directory.

2. Then I restarted the server. 

3. After waiting for the "Server startup in xxxx ms" message, I tried to connect again to jetspeed. Again, I didn't get the log on portlet.

4. I checked again for the j2-admin, and this time it had been recreated from the war file, and this time the directory seemed to be populated with a lot of object. Still, I was puzzled, because I was not getting the portlet, so...


5. I stopped, and then I restarted Tomcat, and this time it worked!

So the whole problem seems to be related to the failure to create the j2-admin directory properly, and, after that, the inability for Tomcat to recognize the application. 

Good luck to all!

Luis

~~~~~~~~~~~~~~~~~~~~~~~~~~~


I don't know if this will help but, when you run jetspeed for the first time, you have to wait
a little time after you see "INFO: Server startup in XXXX". Because, jetspeed need to deploy
its applications.
   
  To see what has been deployed, you can look in webapps directory. If j2-admin is deployed,
you should see a j2-admin directory and the j2-admin.war file. If not, find j2-admin.war file
in the install jar (extract it with an archiver) and put it in deploy directory ( \webapps\jetspeed\WEB-INF\deploy
) (don't put it in webapps directory, jetspeed will do it itself).
   
  I hope this will help.
   
  Audrey

Robert Sanford <rs...@trefs.com> a ?crit :
  I'm running with Java 5 on Windows XP Pro. I downloaded the Jetspeed
Installer and ran it. I am connected to a Microsoft SQL Server database
- all of the tables have been created by the installer so I know the
database connection was made. 

Because I already have another instance of Tomcat running on 8080 I
changed the port number to 9090.

I hit http://localhost:9090/jetspeed/portal/ and I get a basic page up
with a collection of four "placeholders" on the right side where it
appears portlets should be located. Each of those placeholders has text
within it saying "Portlet Application j2-admin not available".

When I click on the "RSS Demo" tab (there are two tabs - Welcome and RSS
Demo) there is a portlet on the right titled "Rome RSS Portlet" that is
displaying topics from an "NPR World" feed. In the middle is a portlet
that has exception text(1) within it.

After doing that brief test I go to the log files and find in
jetspeed.log the following exceptions (cut down for mailing size).
2006-07-25 16:00:33,770 [http-9090-Processor25] ERROR
org.apache.jetspeed.aggregator.impl.RenderingJobImpl - Error rendering
portlet OID dp-3
javax.portlet.UnavailableException: Portlet Application j2-admin not
available


2006-07-25 16:00:33,785 [http-9090-Processor25] ERROR
org.apache.jetspeed.aggregator.impl.RenderingJobImpl - Error rendering
portlet OID dp-12
javax.portlet.UnavailableException: Portlet Application j2-admin not
available


2006-07-25 16:00:33,785 [http-9090-Processor25] ERROR
org.apache.jetspeed.aggregator.impl.RenderingJobImpl - Error rendering
portlet OID dp-22
javax.portlet.UnavailableException: Portlet Application j2-admin not
available
at
org.apache.jetspeed.factory.JetspeedPortletFactory.getPortletInstance(Je
tspeedPortletFactory.java:190)


In the velocity.log file there are some error lines that state...

2006-07-25 16:00:40,332 [http-9090-Processor24] ERROR velocity - RHS of
#set statement is null. Context will not be modified.
decorations/layout/tigris/header.vm [line 51, column 1]
2006-07-25 16:00:40,348 [http-9090-Processor24] ERROR velocity - RHS of
#set statement is null. Context will not be modified.
decorations/layout/tigris/header.vm [line 51, column 1]

And some velocity.log warnings...

2006-07-25 16:00:40,363 [http-9090-Processor24] WARN velocity -
org.apache.velocity.runtime.exception.ReferenceException: reference :
template = decorations/portlet/decorator.vm [line 27,column 43] :
${decoratorId} is not a valid reference.
2006-07-25 16:00:40,379 [http-9090-Processor24] WARN velocity -
org.apache.velocity.runtime.exception.ReferenceException: reference :
template = decorations/portlet/decorator.vm [line 45,column 41] :
${decoratorId} is not a valid reference.
2006-07-25 16:00:40,379 [http-9090-Processor24] WARN velocity -
org.apache.velocity.runtime.exception.ReferenceException: reference :
template = decorations/portlet/decorator.vm [line 27,column 43] :
${decoratorId} is not a valid reference.
2006-07-25 16:00:40,410 [http-9090-Processor24] WARN velocity -
org.apache.velocity.runtime.exception.ReferenceException: reference :
template = decorations/portlet/decorator.vm [line 45,column 41] :
${decoratorId} is not a valid reference.

In the localhost.log and catalina.log files there are no ERROR lines of
any sort and no exceptions of any sort.

So... I use the installer that was provided and it doesn't work...
What's up?

rjsjr


1 - Failed to load portlet
org.apache.portals.applications.rss.RSSPortlet:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'transformCache' defined in resource loaded through
InputStream: Can't resolve reference to bean 'transform' while setting
property 'constructor argument with index 0'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'transform' defined in resource loaded through
InputStream: Instantiation of bean failed; nested exception is
org.springframework.beans.FatalBeanException: Could not instantiate
class
[org.apache.portals.applications.transform.impl.JetspeedTransform];
constructor threw exception; nested exception is
javax.xml.transform.TransformerFactoryConfigurationError: Provider
org.apache.xalan.processor.TransformerFactoryImpl not found