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 "Timony, Michael" <Mi...@FMR.COM> on 2007/10/12 21:46:59 UTC

RE: Moved Install to Websphere - Can't Login to Admin

I'm seeing a similar error message when running Jetspeed 2.1.2 on WAS
6.0 (I don't see it with on WAS 6.1). And the logs are being sent to
SystemOut.log instead of to the velocity.log:

[10/12/07 15:13:53:996 EDT] 00000078 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'decorations/layout/tigris/header.vm', line 1, column 1] : $Id cannot be
resolved. 

One is a problem with velocity and WAS 6.0, and the other is an issue
with commons-logging and WAS 6.0 ...


-----Original Message-----
From: Douglas_Logan@ibi.com [mailto:Douglas_Logan@ibi.com] 
Sent: Thursday, September 06, 2007 4:11 PM
To: jetspeed-user@portals.apache.org
Subject: Moved Install to Websphere - Can't Login to Admin

Hello All,

                I've been trying to get JetSpeed running on WebSphere. I
successfully deployed and setup the application using the Jetspeed
installer (running Tomcat on Debian, and using an Oracle Database) on
one computer. Running ./startup.sh everything works great. I then
repackaged this and deployed it as an EAR file to a WebSphere server
(different computer). Jetspeed came up great, all the portlets loaded,
but I am unable to log into the admin panel. Each time I put in the
login credentials it comes back to the same page I started with (no
error message). Checking the WebSphere error logs I received the
following:

 

[9/6/07 15:53:45:941 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 17]
: $decorator cannot be resolved.

[9/6/07 15:53:45:953 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 29]
: ${decoTop} cannot be resolved.

[9/6/07 15:53:45:964 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 42]
: ${decoBottom} cannot be resolved.

[9/6/07 15:53:46:011 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 17]
: $decorator cannot be resolved.

[9/6/07 15:53:46:027 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 29]
: ${decoTop} cannot be resolved.

[9/6/07 15:53:46:032 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 42]
: ${decoBottom} cannot be resolved.

[9/6/07 15:53:46:075 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 17]
: $decorator cannot be resolved.

[9/6/07 15:53:46:083 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 29]
: ${decoTop} cannot be resolved.

[9/6/07 15:53:46:088 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 42]
: ${decoBottom} cannot be resolved.

[9/6/07 15:53:46:097 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'decorations/layout/tigris/header.vm', line 1, column 1] : $Id cannot be
resolved.

 

I verified that the files referenced are in fact in the EAR file (and
extracted when deployed to the appropriate paths). Any ideas of what is
going on? Thanks.

 

Doug Logan

 


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


RE: Moved Install to Websphere - Can't Login to Admin

Posted by "Timony, Michael" <Mi...@fmr.com>.
I think I found the solution. WebSphere creates a copy of the web.xml
that it reads, and it doesn't read the web.xml where the WAR files is
deployed. See the text below:


	The reason why our changes were being picked up, is when the WAR
file is deployed by WAS, it makes a copy of the file (and any other
files in the 	WEB-INF directory) and puts them into the config
directory. It's only reads the copy, and NOT the file where the WAR is
deployed. In our install 	on the server the file is in:


	
/was61/WASINSTANCE1/profiles/base/config/cells/ws_nodename/applications/
test1-was_war.ear/deployments/test1-was_war/test1-was.war/WEB-INF/
	
	I made the changes to this file and restarted WAS and it worked.



Also, the portalfilter is in the wrong location in the web.xml. It needs
to be defined before the mappings like so:


   <filter>
     <filter-name>XXSUrlAttackFilter</filter-name>
     <filter- 
class>org.apache.jetspeed.engine.servlet.XXSUrlAttackFilter</filter-
class>
   </filter>

   <filter>
       <filter-name>staticResourceCachingFilter</filter-name>
       <filter- 
class>org.apache.jetspeed.engine.servlet.StaticResourceCachingFilter</
filter-class>
       <init-param>
           <param-name>ExpireHours</param-name>
           <param-value>48</param-value>
       </init-param>
   </filter>

   <filter>
     <filter-name>PortalFilter</filter-name>
     <filter-class>org.apache.jetspeed.login.filter.PortalFilter</ 
filter-class>
   </filter>

   <filter-mapping>
     <filter-name>XXSUrlAttackFilter</filter-name>
     <url-pattern>/*</url-pattern>
   </filter-mapping>

   <filter-mapping>
       <filter-name>staticResourceCachingFilter</filter-name>
       <servlet-name>default</servlet-name>
   </filter-mapping>

   <filter-mapping>
     <filter-name>PortalFilter</filter-name>
     <url-pattern>/*</url-pattern>
   </filter-mapping>


Mick Timony

-----Original Message-----
From: Timony, Michael 
Sent: Friday, October 12, 2007 3:47 PM
To: Douglas_Logan@ibi.com; jetspeed-user@portals.apache.org
Subject: RE: Moved Install to Websphere - Can't Login to Admin

I'm seeing a similar error message when running Jetspeed 2.1.2 on WAS
6.0 (I don't see it with on WAS 6.1). And the logs are being sent to
SystemOut.log instead of to the velocity.log:

[10/12/07 15:13:53:996 EDT] 00000078 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'decorations/layout/tigris/header.vm', line 1, column 1] : $Id cannot be
resolved. 

One is a problem with velocity and WAS 6.0, and the other is an issue
with commons-logging and WAS 6.0 ...


-----Original Message-----
From: Douglas_Logan@ibi.com [mailto:Douglas_Logan@ibi.com]
Sent: Thursday, September 06, 2007 4:11 PM
To: jetspeed-user@portals.apache.org
Subject: Moved Install to Websphere - Can't Login to Admin

Hello All,

                I've been trying to get JetSpeed running on WebSphere. I
successfully deployed and setup the application using the Jetspeed
installer (running Tomcat on Debian, and using an Oracle Database) on
one computer. Running ./startup.sh everything works great. I then
repackaged this and deployed it as an EAR file to a WebSphere server
(different computer). Jetspeed came up great, all the portlets loaded,
but I am unable to log into the admin panel. Each time I put in the
login credentials it comes back to the same page I started with (no
error message). Checking the WebSphere error logs I received the
following:

 

[9/6/07 15:53:45:941 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 17]
: $decorator cannot be resolved.

[9/6/07 15:53:45:953 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 29]
: ${decoTop} cannot be resolved.

[9/6/07 15:53:45:964 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 42]
: ${decoBottom} cannot be resolved.

[9/6/07 15:53:46:011 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 17]
: $decorator cannot be resolved.

[9/6/07 15:53:46:027 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 29]
: ${decoTop} cannot be resolved.

[9/6/07 15:53:46:032 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 42]
: ${decoBottom} cannot be resolved.

[9/6/07 15:53:46:075 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 17]
: $decorator cannot be resolved.

[9/6/07 15:53:46:083 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 29]
: ${decoTop} cannot be resolved.

[9/6/07 15:53:46:088 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 42]
: ${decoBottom} cannot be resolved.

[9/6/07 15:53:46:097 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'decorations/layout/tigris/header.vm', line 1, column 1] : $Id cannot be
resolved.

 

I verified that the files referenced are in fact in the EAR file (and
extracted when deployed to the appropriate paths). Any ideas of what is
going on? Thanks.

 

Doug Logan

 


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


RE: Moved Install to Websphere - Can't Login to Admin

Posted by Mohan K <km...@gmail.com>.
As far as the login failures, I believe the default or installer uses
j_security_check (or I could be wrong about the installer), which means
login's are delegated to the app server and you need some sort of
authentication provider that hooks into default j2 authentication mechanism.
For Weblogic, I use the ProtalFilter filter which is commented out in
web.xml, that will allow you to bypass the j_security_check login mechanism.

Cheers
Mohan

-----Original Message-----
From: Timony, Michael [mailto:Michael.Timony@FMR.COM] 
Sent: Friday, October 12, 2007 3:47 PM
To: Douglas_Logan@ibi.com; jetspeed-user@portals.apache.org
Subject: RE: Moved Install to Websphere - Can't Login to Admin

I'm seeing a similar error message when running Jetspeed 2.1.2 on WAS
6.0 (I don't see it with on WAS 6.1). And the logs are being sent to
SystemOut.log instead of to the velocity.log:

[10/12/07 15:13:53:996 EDT] 00000078 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'decorations/layout/tigris/header.vm', line 1, column 1] : $Id cannot be
resolved. 

One is a problem with velocity and WAS 6.0, and the other is an issue
with commons-logging and WAS 6.0 ...


-----Original Message-----
From: Douglas_Logan@ibi.com [mailto:Douglas_Logan@ibi.com] 
Sent: Thursday, September 06, 2007 4:11 PM
To: jetspeed-user@portals.apache.org
Subject: Moved Install to Websphere - Can't Login to Admin

Hello All,

                I've been trying to get JetSpeed running on WebSphere. I
successfully deployed and setup the application using the Jetspeed
installer (running Tomcat on Debian, and using an Oracle Database) on
one computer. Running ./startup.sh everything works great. I then
repackaged this and deployed it as an EAR file to a WebSphere server
(different computer). Jetspeed came up great, all the portlets loaded,
but I am unable to log into the admin panel. Each time I put in the
login credentials it comes back to the same page I started with (no
error message). Checking the WebSphere error logs I received the
following:

 

[9/6/07 15:53:45:941 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 17]
: $decorator cannot be resolved.

[9/6/07 15:53:45:953 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 29]
: ${decoTop} cannot be resolved.

[9/6/07 15:53:45:964 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 42]
: ${decoBottom} cannot be resolved.

[9/6/07 15:53:46:011 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 17]
: $decorator cannot be resolved.

[9/6/07 15:53:46:027 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 29]
: ${decoTop} cannot be resolved.

[9/6/07 15:53:46:032 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 42]
: ${decoBottom} cannot be resolved.

[9/6/07 15:53:46:075 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 17]
: $decorator cannot be resolved.

[9/6/07 15:53:46:083 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 29]
: ${decoTop} cannot be resolved.

[9/6/07 15:53:46:088 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'/WEB-INF/templates/layout/html/columns/layout.vm', line 40, column 42]
: ${decoBottom} cannot be resolved.

[9/6/07 15:53:46:097 EDT] 00000067 velocity      I
org.apache.jetspeed.webapp.logging.velocity.CommonsLoggingLog4JLogSystem
logVelocityMessage Null reference [template
'decorations/layout/tigris/header.vm', line 1, column 1] : $Id cannot be
resolved.

 

I verified that the files referenced are in fact in the EAR file (and
extracted when deployed to the appropriate paths). Any ideas of what is
going on? Thanks.

 

Doug Logan

 


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


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