Re: [jira] Commented: (JS1-509) org.apache.jetspeed.services.security.UserException: Failed to create account 'Dave': ORA-02289: sequence does not exist

2004-08-05 Thread dave . nordin




Thanks for the info, I will try and advise.  Is there a planned release
date for Jetspeed 2 ?

Thanks, Dave




   
 [EMAIL PROTECTED] 
 rta.apache.org
To 
 08/05/2004 12:19  [EMAIL PROTECTED] 
 PM cc 
   
   Subject 
   [jira] Commented: (JS1-509) 
   org.apache.jetspeed.services.securi 
   ty.UserException: Failed to create  
   account 'Dave': ORA-02289: sequence 
   does not exist  
   
   
   
   
   
   




The following comment has been added to this issue:

 Author: David Sean Taylor
Created: Thu, 5 Aug 2004 11:18 AM
   Body:
Did you follow the 2 steps found here:

http://portals.apache.org/jetspeed-1/database.html


before building?


I've seen this happen before because the Torque bindings are generated to
bind to HSQL-style sequence generation, not Oracle.
-
View this comment:
  http://issues.apache.org/jira/browse/JS1-509?page=comments#action_37068

-
View the issue:
  http://issues.apache.org/jira/browse/JS1-509

Here is an overview of the issue:
-
Key: JS1-509
Summary: org.apache.jetspeed.services.security.UserException: Failed to
create account 'Dave': ORA-02289: sequence does not exist
   Type: Bug

 Status: Unassigned
   Priority: Major

Project: Jetspeed

   Assignee:
   Reporter: Dave Nordin

Created: Thu, 5 Aug 2004 8:43 AM
Updated: Thu, 5 Aug 2004 11:18 AM
Environment: Win 2000; Jetspeed 1.5; JBOSS 3.2.3; Oracle 9.1; Built with
Maven 2.0

Description:
After building the Jetspeed tutorial from source (1.5), I can get
connected to oracle.  I can alter data in the tutorial (coffee) database
table (now in oracle) and the changes show up.  If I try t create a new
jetspeed account, I get the following error:

org.apache.jetspeed.services.security.UserException: Failed to create
account 'Dave': ORA-02289: sequence does not exist

I can see that others have had this problem, but have yet to get an
explanation that works for me.  Below are my torque.properties settings.

torque.database.default.adapter=oracle

torque.dsfactory.default.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory

torque.dsfactory.default.pool.defaultMaxConnections=10
torque.dsfactory.default.pool.maxExpiryTime=3600
torque.dsfactory.default.pool.connectionWaitTimeout=10
### Oracle
torque.dsfactory.default.connection.driver =
oracle.jdbc.driver.OracleDriver
torque.dsfactory.default.connection.url =
jdbc:oracle:thin:@global120.ihs.com:1625:PPVDEV
torque.dsfactory.default.connection.user = PPVX
torque.dsfactory.default.connection.password = Pay4


Thanks, Dave

Dave Nordin
Engineer IHS



-
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira




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



[jira] Closed: (JS2-104) Embedded Tomcat context file support for hot deployed war files

2004-08-05 Thread jetspeed-dev
Message:

   The following issue has been closed.

   Resolver: Ate Douma
   Date: Thu, 5 Aug 2004 7:27 PM

Done
-
View the issue:
  http://issues.apache.org/jira/browse/JS2-104

Here is an overview of the issue:
-
Key: JS2-104
Summary: Embedded Tomcat context file support  for hot deployed war files
   Type: Improvement

 Status: Closed
   Priority: Major
 Resolution: FIXED

Project: Jetspeed 2
 Components: 
 Deployment
   Fix Fors:
 2.0-dev/cvs
   Versions:
 2.0-dev/cvs

   Assignee: Ate Douma
   Reporter: Ate Douma

Created: Thu, 5 Aug 2004 7:23 PM
Updated: Thu, 5 Aug 2004 7:27 PM

Description:
For Portlet Applications which need special context configuration on Tomcat, like for 
jndi datasources or allowing crosscontext, the hot deployment will allow embedding a 
Tomcat context file in the war file.
This context file, which must be stored as META-INF/tomcat-context.xml, will be 
automatically put in the correct location (based on the version of Tomcat) with the 
same name as the context path of the portlet application.
The Context path and docBase attributes of the context definition will also be 
automatically (re)written.
If no context file is found the normal deployment behaviour will be performed.

To be able to determine the correct destination for the context file on Tomcat 5, a 
few properties in jetspeed.properties (located in jetspeed/META-INF/conf) have to be 
set correctly (with defaults based on a default Tomcat 5 installation):
  autodeployment.catalina.version.major=5
  autodeployment.catalina.base=${applicationRoot}/../../ 
  autodeployment.catalina.engine=Catalina
  
Important note:
The above property autodeployment.catalina.version.major as defined in the Jetspeed 2 
source (default value: 4) must *not* be modified because its value is automatically 
filtered by ant during deployment.
based on the build property org.apache.jetspeed.catalina.version.major.
A "normal" filter construction (like @CATALINA_VERSION_MAJOR@) cannot be used because 
the properties are also used during testing and in this specific case would lead to a 
failure of TestSpringEngine (NumberFormatException). 

Also important is that the Tomcat Host configuration (both on 4 and 5) should *not* 
have attribute autoDeploy="true" (which is the default) but be set to "false".
Otherwise Tomcat may interfer with the deployment by doing it itself before Jetspeed 
can initiate it.

Although Tomcat 5 officially supports embedding a context file in a war (stored as 
META-INF/context.xml), in practice this doesn't work flawlessly (major 
understatement!).
To prevent conflicts another file name (tomcat-context.xml) is choosen.

I've tested this enhancement on Tomcat 4.1.30 and 5.0.27.
  
The security portlet application contains a tomcat-context.xml as demonstration, 
allowing it to use crosscontext.



-
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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



cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/tools/pamanager/servletcontainer TomcatManager.java

2004-08-05 Thread ate
ate 2004/08/05 19:23:37

  Modified:portal/src/webapp/WEB-INF/conf jetspeed.properties
   portal   maven.xml
   maven-plugin plugin.jelly
   portal/src/test/org/apache/jetspeed/deployment
TestSimpleDeployment.java
   portal/src/webapp/WEB-INF/assembly jetspeed-spring.xml
   portal/src/java/org/apache/jetspeed/tools/pamanager/servletcontainer
TomcatManager.java
  Added:   applications/security/src/webapp/META-INF tomcat-context.xml
  Log:
  Embedded Tomcat context file support for hot deployed war files (JS2-104)
  
  Revision  ChangesPath
  1.62  +7 -1  
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/conf/jetspeed.properties
  
  Index: jetspeed.properties
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/conf/jetspeed.properties,v
  retrieving revision 1.61
  retrieving revision 1.62
  diff -u -r1.61 -r1.62
  --- jetspeed.properties   4 Aug 2004 19:48:04 -   1.61
  +++ jetspeed.properties   6 Aug 2004 02:23:37 -   1.62
  @@ -107,6 +107,12 @@
   #-
   # Run Auto-Deployment set up
   #'-
  +# THE NEXT PROPERTY DEFINITION MAY NOT BE MODIFIED (NOT EVEN BE PADDED WITH 
WHITESPACE) 
  +# BECAUSE ITS FILTERED BY ANT DURING DEPLOYMENT.
  +# ITS CONCREET VALUE WILL BE SET FROM BUILD PROPERTY 
org.apache.jetspeed.catalina.version.major 
  +autodeployment.catalina.version.major=4
  +autodeployment.catalina.base=${applicationRoot}/../../
  +autodeployment.catalina.engine=Catalina
   autodeployment.server=localhost
   autodeployment.port=8080
   [EMAIL PROTECTED]@
  
  
  
  1.94  +7 -0  jakarta-jetspeed-2/portal/maven.xml
  
  Index: maven.xml
  ===
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/maven.xml,v
  retrieving revision 1.93
  retrieving revision 1.94
  diff -u -r1.93 -r1.94
  --- maven.xml 5 Aug 2004 04:49:30 -   1.93
  +++ maven.xml 6 Aug 2004 02:23:37 -   1.94
  @@ -597,6 +597,13 @@
   
   
 
  +  
  +  
  +
  +  
   
 
 
  
  
  
  1.13  +14 -0 jakarta-jetspeed-2/maven-plugin/plugin.jelly
  
  Index: plugin.jelly
  ===
  RCS file: /home/cvs/jakarta-jetspeed-2/maven-plugin/plugin.jelly,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- plugin.jelly  3 Aug 2004 13:57:44 -   1.12
  +++ plugin.jelly  6 Aug 2004 02:23:37 -   1.13
  @@ -158,6 +158,13 @@
 
 
   
  +
  +
  +  
  +
 

   
  @@ -187,6 +194,13 @@
 
   
   
  +  
  +  
  +  
  +
 
   

  
  
  
  1.18  +4 -4  
jakarta-jetspeed-2/portal/src/test/org/apache/jetspeed/deployment/TestSimpleDeployment.java
  
  Index: TestSimpleDeployment.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/test/org/apache/jetspeed/deployment/TestSimpleDeployment.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- TestSimpleDeployment.java 4 Aug 2004 03:57:08 -   1.17
  +++ TestSimpleDeployment.java 6 Aug 2004 02:23:37 -   1.18
  @@ -143,7 +143,7 @@
   {
   
   System.out.println("Deployment src: " + deploySrc);
  -manager = new TomcatManager("", 0, "", "");
  +manager = new TomcatManager("", "", 0, "", 0, "", "");
   SimpleRegistry simpleRegistry = new InMemoryRegistryImpl();
   DeployDecoratorEventListener ddel = new 
DeployDecoratorEventListener(simpleRegistry, deployRootFile
   .getAbsolutePath());
  @@ -244,7 +244,7 @@
   
   public void testUndeployVersusRedeploy() throws Exception
   {
  -manager = new TomcatManager("", 0, "", "");
  +manager = new TomcatManager("", "", 0, "", 0, "", "");
   
   DeployPortletAppEventListener dpal = new 
DeployPortletAppEventListener(webAppsDir, new FileSystemPAM(
   webAppsDir, portletRegistry, entityAccess, windowAccess, 
portletCache, manager), portletRegistry, portletFactory );
  @@ -461,7 +461,7 @@
*/
   public void tearDown() throws Exception
   {
  -manager = new TomcatManager("", 0, "", "");
  +manager = new TomcatManager("", "", 0, "", 0, "", "");
   FileSystemPAM pam = new FileSystemPAM(webAppsDir, portletRegistry, 
entityAccess, windowAccess, portletCache, manager);
   
   try
  
  
  
  1.1 

cvs commit: jakarta-jetspeed-2/applications/security/src/webapp/META-INF - New directory

2004-08-05 Thread ate
ate 2004/08/05 19:23:32

  jakarta-jetspeed-2/applications/security/src/webapp/META-INF - New directory

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



[jira] Created: (JS2-104) Embedded Tomcat context file support for hot deployed war files

2004-08-05 Thread jetspeed-dev
Message:

  A new issue has been created in JIRA.

-
View the issue:
  http://issues.apache.org/jira/browse/JS2-104

Here is an overview of the issue:
-
Key: JS2-104
Summary: Embedded Tomcat context file support  for hot deployed war files
   Type: Improvement

 Status: Open
   Priority: Major

Project: Jetspeed 2
 Components: 
 Deployment
   Fix Fors:
 2.0-dev/cvs
   Versions:
 2.0-dev/cvs

   Assignee: Ate Douma
   Reporter: Ate Douma

Created: Thu, 5 Aug 2004 7:23 PM
Updated: Thu, 5 Aug 2004 7:23 PM

Description:
For Portlet Applications which need special context configuration on Tomcat, like for 
jndi datasources or allowing crosscontext, the hot deployment will allow embedding a 
Tomcat context file in the war file.
This context file, which must be stored as META-INF/tomcat-context.xml, will be 
automatically put in the correct location (based on the version of Tomcat) with the 
same name as the context path of the portlet application.
The Context path and docBase attributes of the context definition will also be 
automatically (re)written.
If no context file is found the normal deployment behaviour will be performed.

To be able to determine the correct destination for the context file on Tomcat 5, a 
few properties in jetspeed.properties (located in jetspeed/META-INF/conf) have to be 
set correctly (with defaults based on a default Tomcat 5 installation):
  autodeployment.catalina.version.major=5
  autodeployment.catalina.base=${applicationRoot}/../../ 
  autodeployment.catalina.engine=Catalina
  
Important note:
The above property autodeployment.catalina.version.major as defined in the Jetspeed 2 
source (default value: 4) must *not* be modified because its value is automatically 
filtered by ant during deployment.
based on the build property org.apache.jetspeed.catalina.version.major.
A "normal" filter construction (like @CATALINA_VERSION_MAJOR@) cannot be used because 
the properties are also used during testing and in this specific case would lead to a 
failure of TestSpringEngine (NumberFormatException). 

Also important is that the Tomcat Host configuration (both on 4 and 5) should *not* 
have attribute autoDeploy="true" (which is the default) but be set to "false".
Otherwise Tomcat may interfer with the deployment by doing it itself before Jetspeed 
can initiate it.

Although Tomcat 5 officially supports embedding a context file in a war (stored as 
META-INF/context.xml), in practice this doesn't work flawlessly (major 
understatement!).
To prevent conflicts another file name (tomcat-context.xml) is choosen.

I've tested this enhancement on Tomcat 4.1.30 and 5.0.27.
  
The security portlet application contains a tomcat-context.xml as demonstration, 
allowing it to use crosscontext.



-
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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



cvs commit: jakarta-jetspeed-2/portal/src/webapp/WEB-INF/templates/layout/html/columns layout.vm

2004-08-05 Thread weaver
weaver  2004/08/05 17:33:22

  Modified:portal/src/webapp/WEB-INF/templates/layout/html/columns
layout.vm
  Log:
  removed debug info from template
  
  Revision  ChangesPath
  1.9   +0 -2  
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm
  
  Index: layout.vm
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- layout.vm 6 Aug 2004 00:31:58 -   1.8
  +++ layout.vm 6 Aug 2004 00:33:22 -   1.9
  @@ -63,8 +63,6 @@

#set($row = $f.getProperties($layoutType).get(0).intValue)
#set($col = $f.getProperties($layoutType).get(1).intValue)
  -Row: $row
  - Column:$col
#if($editing) 

  
  
  
  

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



cvs commit: jakarta-jetspeed-2/layout-portlets/src/webapp/WEB-INF portlet.xml

2004-08-05 Thread weaver
weaver  2004/08/05 17:31:58

  Modified:portal/src/java/org/apache/jetspeed/velocity
JetspeedVelocityViewServlet.java
   portal/src/webapp/WEB-INF/templates/layout/html/columns
layout.vm
   layout-portlets/src/webapp/WEB-INF portlet.xml
  Log:
  Fixed issue with the "Done" url moving portlets around (doh!)
  
  Revision  ChangesPath
  1.3   +9 -1  
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/velocity/JetspeedVelocityViewServlet.java
  
  Index: JetspeedVelocityViewServlet.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/velocity/JetspeedVelocityViewServlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JetspeedVelocityViewServlet.java  20 Jul 2004 13:56:15 -  1.2
  +++ JetspeedVelocityViewServlet.java  6 Aug 2004 00:31:58 -   1.3
  @@ -11,8 +11,10 @@
   import java.io.UnsupportedEncodingException;
   
   import javax.portlet.PortletConfig;
  +import javax.portlet.PortletMode;
   import javax.portlet.PortletRequest;
   import javax.portlet.RenderResponse;
  +import javax.portlet.WindowState;
   import javax.servlet.http.HttpServletRequest;
   import javax.servlet.http.HttpServletResponse;
   
  @@ -64,6 +66,12 @@
   ctx.put("renderRequest", renderRequest);
   ctx.put("renderResponse", renderResponse);
   ctx.put("portletConfig", portletConfig);
  +ctx.put("portletModeView", PortletMode.VIEW);
  +ctx.put("portletModeEdit", PortletMode.EDIT);
  +ctx.put("portletModeHelp", PortletMode.HELP);
  +ctx.put("windowStateNormal", WindowState.NORMAL);
  +ctx.put("windowStateMinimized", WindowState.MINIMIZED);
  +ctx.put("windowStateMaximized", WindowState.MAXIMIZED);
   return super.handleRequest(request, response, ctx);
   }
   
  
  
  
  1.8   +12 -7 
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm
  
  Index: layout.vm
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- layout.vm 5 Aug 2004 23:36:46 -   1.7
  +++ layout.vm 6 Aug 2004 00:31:58 -   1.8
  @@ -39,14 +39,17 @@
 #parse($jetspeed.getDecoration($decoTop, "layout").appRelativePath)
 #end
   
  -
  +#set($layoutType =$portletConfig.getInitParameter("layoutType"))
   #if($jetspeed.portletMode.toString() == "edit")
 #set($editing = true)  
 #set($lastColumn = $renderRequest.getAttribute("numberOfColumns") - 1)
  -  #set($layoutType =$portletConfig.getInitParameter("layoutType"))
  -Done
  +#set($viewUrl = $renderResponse.createRenderURL())
  + $!viewUrl.setPortletMode($portletModeView)
  +Done
   #else
  - Customize
  + #set($editUrl = $renderResponse.createRenderURL())
  + $!editUrl.setPortletMode($portletModeEdit)
  + Customize
   #end 
   
   
  @@ -58,12 +61,14 @@
  #foreach($f in $entry)   
   

  + #set($row = $f.getProperties($layoutType).get(0).intValue)
  + #set($col = $f.getProperties($layoutType).get(1).intValue)
  +Row: $row
  + Column:$col
#if($editing) 

  
  - #set($row = $f.getProperties($layoutType).get(0).intValue)
  - #set($col = $f.getProperties($layoutType).get(1).intValue)
  -
  + 
#if($col > 0)   
  #set($leftUrl = $renderResponse.createRenderURL())
  $!leftUrl.setParameter("moveBy","-1,0")
  
  
  
  1.3   +1 -1  
jakarta-jetspeed-2/layout-portlets/src/webapp/WEB-INF/portlet.xml
  
  Index: portlet.xml
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/layout-portlets/src/webapp/WEB-INF/portlet.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- portlet.xml   5 Aug 2004 23:36:11 -   1.2
  +++ portlet.xml   6 Aug 2004 00:31:58 -   1.3
  @@ -1 +1 @@
  -




TwoColumns
Two Columns Layout

  ViewPage
  /WEB-INF/layout/columns.jsp


  columns
  2


  sizes
  50%,50%


  layoutType
  TwoColumns


org.apache.jetspeed.portlets.layout.MultiColumnPortlet
-1

  text/html
  VIEW


  TwoColumns
  TwoColumns




VelocityTwoColumns
Two Columns Layout Using Velocity

  ViewPage
  columns


  MaxPage
  maximized
 

cvs commit: jakarta-jetspeed-2/layout-portlets/src/java/org/apache/jetspeed/portlets/layout MultiColumnPortlet.java

2004-08-05 Thread weaver
weaver  2004/08/05 16:57:44

  Modified:layout-portlets/src/java/org/apache/jetspeed/portlets/layout
MultiColumnPortlet.java
  Log:
  Made the flow for rearranging porlets smoother
  
  Revision  ChangesPath
  1.3   +14 -6 
jakarta-jetspeed-2/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/MultiColumnPortlet.java
  
  Index: MultiColumnPortlet.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/MultiColumnPortlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MultiColumnPortlet.java   5 Aug 2004 23:36:46 -   1.2
  +++ MultiColumnPortlet.java   5 Aug 2004 23:57:44 -   1.3
  @@ -292,18 +292,18 @@
   
   int newRow = row + y;
   int newColumn = column + x;
  -doMoveFragmentTo(fToMove, newColumn, newRow,  request, fragments);
  +doMoveFragmentTo(fToMove, newColumn, newRow,  request, fragments, true);
 
   }
   
  -protected void doMoveFragmentTo( Fragment fToMove, int column, int row, 
RenderRequest request, List fragments )
  +protected void doMoveFragmentTo( Fragment fToMove, int column, int row, 
RenderRequest request, List fragments, boolean firstCall )
   {
   //Wrapping logic 
   if(column >= numColumns)
   {
   column = 0;
   row+=1;
  -doMoveFragmentTo(fToMove, column, row, request, fragments);
  +doMoveFragmentTo(fToMove, column, row, request, fragments, false);
   return;
   
   }
  @@ -311,17 +311,18 @@
   {
   row-=1;
   column=(numColumns-1);   
  -doMoveFragmentTo(fToMove, column, row, request, fragments);
  +doMoveFragmentTo(fToMove, column, row, request, fragments, false);
   return;
   }
   else if(row < 0)
   {   
   row = getLastRowInColumn(column, fragments, fToMove)+1;
  -doMoveFragmentTo(fToMove, column, row, request, fragments);  
  +doMoveFragmentTo(fToMove, column, row, request, fragments, false);  
   return;
   }
   else
   {   
  +
  int currentRow = Integer.parseInt(fToMove.getPropertyValue(layoutType, 
"row"));
  int currentColumn = 
Integer.parseInt(fToMove.getPropertyValue(layoutType, "column"));
  
  @@ -346,7 +347,14 @@
  int aColumn = 
Integer.parseInt(aFragment.getPropertyValue(layoutType, "column"));
  if (aColumn == column && aRow == row)
  {
  - doMoveFragmentTo(aFragment, currentColumn, currentRow,  
request, fragments );
  +   if(currentColumn == column && currentRow < row && firstCall)
  +   {
  +  doMoveFragmentTo(aFragment, column, (row-1),  request, 
fragments, false );
  +   }
  +   else
  +   {
  +   doMoveFragmentTo(aFragment, column, (row+1),  request, 
fragments, false );
  +   }
  }
  }
  
  
  
  

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



cvs commit: jakarta-jetspeed-2/portal/src/webapp/WEB-INF/templates/layout/html/columns layout.vm

2004-08-05 Thread weaver
weaver  2004/08/05 16:36:46

  Modified:layout-portlets/src/java/org/apache/jetspeed/portlets/layout
MultiColumnPortlet.java LayoutPortlet.java
   portal/src/webapp/WEB-INF/templates/layout/html/columns
layout.vm
  Log:
  Houston, we have customization
  
  Revision  ChangesPath
  1.2   +180 -86   
jakarta-jetspeed-2/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/MultiColumnPortlet.java
  
  Index: MultiColumnPortlet.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/MultiColumnPortlet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MultiColumnPortlet.java   10 Jun 2004 20:12:45 -  1.1
  +++ MultiColumnPortlet.java   5 Aug 2004 23:36:46 -   1.2
  @@ -16,25 +16,26 @@
   package org.apache.jetspeed.portlets.layout;
   
   import java.io.IOException;
  +import java.util.ArrayList;
  +import java.util.Collections;
   import java.util.Iterator;
   import java.util.List;
  -import java.util.ArrayList;
  -import java.util.Vector;
   import java.util.StringTokenizer;
  -import java.util.Collections;
  +import java.util.Vector;
   
   import javax.portlet.PortletConfig;
   import javax.portlet.PortletException;
   import javax.portlet.RenderRequest;
   import javax.portlet.RenderResponse;
   
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
   import org.apache.jetspeed.Jetspeed;
   import org.apache.jetspeed.om.page.Fragment;
  -import org.apache.jetspeed.om.page.Property;
  +import org.apache.jetspeed.om.page.Page;
  +import org.apache.jetspeed.page.PageManager;
   import org.apache.jetspeed.request.RequestContext;
   import org.apache.pluto.om.window.PortletWindow;
  -import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogFactory;
   
   /**
*/
  @@ -51,40 +52,58 @@
   private int numColumns = 0;
   private String colSizes = null;
   private String portletName = null;
  +private String layoutType;
   
  -public void init(PortletConfig config)
  -throws PortletException
  +public void init( PortletConfig config ) throws PortletException
   {
   super.init(config);
   this.numColumns = 
Integer.parseInt(config.getInitParameter(PARAM_NUM_COLUMN));
   this.colSizes = config.getInitParameter(PARAM_COLUMN_SIZES);
   this.portletName = config.getPortletName();
  +this.layoutType = config.getInitParameter("layoutType");
   }
   
  -public void doView(RenderRequest request, RenderResponse response)
  -throws PortletException, IOException
  +public void doView( RenderRequest request, RenderResponse response ) throws 
PortletException, IOException
   {
   RequestContext context = Jetspeed.getCurrentRequestContext();
   PortletWindow window = 
context.getNavigationalState().getMaximizedWindow(context.getPage());
  -
  +
  +if (request.getParameter("moveBy") != null && 
request.getParameter("fragmentId") != null)
  +{
  +Page page = getPage(request);
  +ArrayList tempFrags = new 
ArrayList(page.getRootFragment().getFragments());
  +
doMoveFragment(page.getFragmentById(request.getParameter("fragmentId")), 
request.getParameter("moveBy"), request, tempFrags);
  +PageManager pm = (PageManager) 
Jetspeed.getComponentManager().getComponent(PageManager.class);
  +try
  +{
  +pm.updatePage(page);
  +}
  +catch (Exception e)
  +{
  +throw new PortletException(e.toString(), e);
  +}
  +
  +}
  +
   // if (targetState != null && targetState.isMaximized())
   if (window != null)
   {
  -super.doView(request,response);
  +super.doView(request, response);
   return;
   }
  -
  +
   List[] columns = buildColumns(getFragment(request, false), this.numColumns);
   
   request.setAttribute("columns", columns);
  +request.setAttribute("numberOfColumns", new Integer(numColumns));
   
   // now invoke the JSP associated with this portlet
  -super.doView(request,response);
  +super.doView(request, response);
   
   request.removeAttribute("columns");
   }
   
  -protected List[] buildColumns(Fragment f, int colNum)
  +protected List[] buildColumns( Fragment f, int colNum )
   {
   // normalize the constraints and calculate max num of rows needed
   Iterator iterator = f.getFragments().iterator();
  @@ -95,41 +114,28 @@
   while (iterator.hasNext())
   {
   Fragment fChild = (Fragment) iterator.next();
  -List

cvs commit: jakarta-jetspeed-2/layout-portlets/src/webapp/WEB-INF portlet.xml

2004-08-05 Thread weaver
weaver  2004/08/05 16:36:12

  Modified:layout-portlets/src/webapp/WEB-INF portlet.xml
  Log:
  added "layoutType" which is used to get properties from a Fragment based on layout.
  
  Revision  ChangesPath
  1.2   +1 -1  
jakarta-jetspeed-2/layout-portlets/src/webapp/WEB-INF/portlet.xml
  
  Index: portlet.xml
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/layout-portlets/src/webapp/WEB-INF/portlet.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- portlet.xml   10 Jun 2004 20:12:45 -  1.1
  +++ portlet.xml   5 Aug 2004 23:36:11 -   1.2
  @@ -1 +1 @@
  -




TwoColumns
Two Columns Layout

  ViewPage
  /WEB-INF/layout/columns.jsp


  columns
  2


  sizes
  50%,50%


org.apache.jetspeed.portlets.layout.MultiColumnPortlet
-1

  text/html
  VIEW


  TwoColumns
  TwoColumns




VelocityTwoColumns
Two Columns Layout Using Velocity

  ViewPage
  columns


  MaxPage
  maximized


  columns
  2


  sizes
  50%,50%


org.apache.jetspeed.portlets.layout.MultiColumnPortlet
-1

  text/html
  VIEW


  VelocityTwoColumns
  TwoColumns






  \ No newline at end of file
  +




TwoColumns
Two Columns Layout

  ViewPage
  /WEB-INF/layout/columns.jsp


  columns
  2


  sizes
  50%,50%


  layoutType
  TwoColumns


org.apache.jetspeed.portlets.layout.MultiColumnPortlet
-1

  text/html
  VIEW


  TwoColumns
  TwoColumns




VelocityTwoColumns
Two Columns Layout Using Velocity

  ViewPage
  columns


  MaxPage
  maximized


  columns
  2


  sizes
  50%,50%


  layoutType
  TwoColumns


org.apache.jetspeed.portlets.layout.MultiColumnPortlet
-1

  text/html
  VIEW


  VelocityTwoColumns
  TwoColumns






  \ No newline at end of file
  
  
  

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



cvs commit: jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/page Property.java Fragment.java

2004-08-05 Thread weaver
weaver  2004/08/05 16:35:26

  Modified:jetspeed-api/src/java/org/apache/jetspeed/om/page
Property.java Fragment.java
  Log:
  Added easier access to property values of fragments
  
  Revision  ChangesPath
  1.2   +11 -1 
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/page/Property.java
  
  Index: Property.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/page/Property.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Property.java 28 May 2004 18:51:56 -  1.1
  +++ Property.java 5 Aug 2004 23:35:26 -   1.2
  @@ -60,6 +60,16 @@
* @return the string value of the property
*/
   public String getValue();
  +
  +/**
  + * 
  + * 
  + * getIntValue
  + * 
  + *
  + * @return the string value of the property as an int
  + */
  +public int getIntValue();
   
   /**
* Sets the value of the property
  
  
  
  1.2   +25 -1 
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/page/Fragment.java
  
  Index: Fragment.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/page/Fragment.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Fragment.java 28 May 2004 18:51:56 -  1.1
  +++ Fragment.java 5 Aug 2004 23:35:26 -   1.2
  @@ -152,6 +152,30 @@
* @return an immutable List of Property objects
*/
   public List getProperties(String layoutName);
  +
  +/**
  + * 
  + * 
  + * getPropertyValue
  + * 
  + *
  + * @param layout
  + * @param propName
  + * @return
  + */
  +public String getPropertyValue(String layout, String propName);
  +
  +/**
  + * 
  + * 
  + * setPropertyValue
  + * 
  + *
  + * @param layout
  + * @param propName
  + * @param value
  + */
  +public void setPropertyValue(String layout, String propName, String value);
   
   /**
* Adds a new property to this fragment
  
  
  

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



cvs commit: jakarta-jetspeed-2/jetspeed-api maven.xml

2004-08-05 Thread weaver
weaver  2004/08/05 16:35:16

  Modified:jetspeed-api maven.xml
  Log:
  Fixed the deployJar to copy to the shared/lib
  
  Revision  ChangesPath
  1.4   +1 -1  jakarta-jetspeed-2/jetspeed-api/maven.xml
  
  Index: maven.xml
  ===
  RCS file: /home/cvs/jakarta-jetspeed-2/jetspeed-api/maven.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- maven.xml 22 Jul 2004 15:01:08 -  1.3
  +++ maven.xml 5 Aug 2004 23:35:16 -   1.4
  @@ -19,7 +19,7 @@
   
  

  - 
  + 
 
   
   
  
  
  

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



cvs commit: jakarta-jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/om/page/psml PropertyImpl.java FragmentImpl.java

2004-08-05 Thread weaver
weaver  2004/08/05 16:34:52

  Modified:components/page-manager/src/java/org/apache/jetspeed/om/page/psml
PropertyImpl.java FragmentImpl.java
  Log:
  Added easier access to property values of fragments
  
  Revision  ChangesPath
  1.3   +13 -1 
jakarta-jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/om/page/psml/PropertyImpl.java
  
  Index: PropertyImpl.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/om/page/psml/PropertyImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PropertyImpl.java 28 May 2004 22:05:08 -  1.2
  +++ PropertyImpl.java 5 Aug 2004 23:34:52 -   1.3
  @@ -114,4 +114,16 @@
   {
   return super.clone();
   }
  +/**
  + * 
  + * getIntValue
  + * 
  + *
  + * @see org.apache.jetspeed.om.page.Property#getIntValue()
  + * @return
  + */
  +public int getIntValue()
  +{
  +return Integer.parseInt(value);
  +}
   }
  
  
  
  1.3   +76 -1 
jakarta-jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/om/page/psml/FragmentImpl.java
  
  Index: FragmentImpl.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/om/page/psml/FragmentImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FragmentImpl.java 28 May 2004 22:05:08 -  1.2
  +++ FragmentImpl.java 5 Aug 2004 23:34:52 -   1.3
  @@ -133,6 +133,41 @@
   
   return props;
   }
  +
  +public String getPropertyValue(String layout, String propName)
  +{
  +Iterator itr = getProperties(layout).iterator();
  +while(itr.hasNext())
  +{
  +Property aProp = (Property) itr.next();
  +if(aProp.getName().equals(propName))
  +{
  +return aProp.getValue();
  +}
  +}
  +
  +return null;
  +}
  +
  +public void setPropertyValue(String layout, String propName, String value)
  +{
  +Iterator itr = getProperties(layout).iterator();
  +while(itr.hasNext())
  +{
  +Property aProp = (Property) itr.next();
  +if(aProp.getName().equals(propName))
  +{
  +aProp.setValue(value);
  +return;
  +}
  +}
  +
  +PropertyImpl newProp = new PropertyImpl();
  +newProp.setLayout(layout);
  +newProp.setName(propName);
  +newProp.setValue(value);
  +addProperty(newProp);
  +}
   
   public void addProperty(Property p)
   {
  @@ -201,4 +236,44 @@
   
   }   // clone
   
  +/**
  + * 
  + * equals
  + * 
  + *
  + * @see java.lang.Object#equals(java.lang.Object)
  + * @param obj
  + * @return
  + */
  +public boolean equals( Object obj )
  +{
  +if(obj != null && obj instanceof Fragment)
  +{
  +Fragment aFragment = (Fragment) obj;
  +return getId().equals(aFragment.getId());
  +}
  +else
  +{
  +return false;
  +}
  +}
  +/**
  + * 
  + * hashCode
  + * 
  + *
  + * @see java.lang.Object#hashCode()
  + * @return
  + */
  +public int hashCode()
  +{
  +if(getId() != null)
  +{
  +return (Fragment.class.getName()+":"+getId()).hashCode();
  +}
  +else
  +{
  +return super.hashCode();
  +}
  +}
   }
  
  
  

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



cvs commit: jakarta-jetspeed-2/components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy JetspeedWebApplicationRewriter.java

2004-08-05 Thread taylor
taylor  2004/08/05 16:30:31

  Modified:components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy
JetspeedWebApplicationRewriter.java
  Log:
  allow empty web.xml
  
  CVS: --
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  ChangesPath
  1.6   +3 -2  
jakarta-jetspeed-2/components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy/JetspeedWebApplicationRewriter.java
  
  Index: JetspeedWebApplicationRewriter.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy/JetspeedWebApplicationRewriter.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- JetspeedWebApplicationRewriter.java   5 Aug 2004 18:54:47 -   1.5
  +++ JetspeedWebApplicationRewriter.java   5 Aug 2004 23:30:30 -   1.6
  @@ -115,9 +115,10 @@
   
   Object jetspeedServlet = XPath.selectSingleNode(document, 
JETSPEED_SERVLET_XPATH);
   Object jetspeedServletMapping = XPath.selectSingleNode(document, 
JETSPEED_SERVLET_MAPPING_XPATH);
  -if (document.getRootElement().getChildren().size() == 0)
  +if (!document.hasRootElement())
   {
  -throw new Exception("Source web.xml has no content!!!");
  +root = new Element("web-app");
  +document.setRootElement(root);
   }
   
   if (jetspeedServlet == null)
  
  
  

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



[J2] Jetspeed 2 can now be deployed to JBoss

2004-08-05 Thread Scott T. Weaver
Everyone,
David Taylor and I have been working on getting Jetspeed 2 to deploy 
into JBoss.   We have met with success, and now have J2 running and 
deploying portlets in JBoss 3.2.5.  I have documented and expanded the 
steps David Taylor outlined in one of his commits from last night.  The 
instructions can now be found on the J2 wiki at:  
http://wiki.apache.org/portals/Jetspeed2/JBossHowTo.

Enjoy!
--
**
*   Scott T. Weaver  *
* <[EMAIL PROTECTED]>*
*    *
* -- *
*   Apache Jetspeed Enterprise Portal*
* Apache Pluto Portlet Container *
**
* OpenEditPro, Website Content Mangement *
*    *
**
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


cvs commit: jakarta-jetspeed/fusion/src/java/org/apache/jetspeed/fusion/modules/actions/portlets RegisterPortletApplicationAction.java

2004-08-05 Thread taylor
taylor  2004/08/05 12:58:45

  Modified:fusion/src/java/org/apache/jetspeed/fusion/modules/actions/portlets
RegisterPortletApplicationAction.java
  Log:
  added support for re-registration of PAs
  
  CVS: --
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  ChangesPath
  1.4   +33 -10
jakarta-jetspeed/fusion/src/java/org/apache/jetspeed/fusion/modules/actions/portlets/RegisterPortletApplicationAction.java
  
  Index: RegisterPortletApplicationAction.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed/fusion/src/java/org/apache/jetspeed/fusion/modules/actions/portlets/RegisterPortletApplicationAction.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RegisterPortletApplicationAction.java 3 Aug 2004 05:06:16 -   1.3
  +++ RegisterPortletApplicationAction.java 5 Aug 2004 19:58:44 -   1.4
  @@ -167,6 +167,18 @@
   public void doInsert(RunData rundata, Context context)
   throws Exception
   {
  +processRegistration(rundata, context, true);
  +}
  +
  +public void doUpdate(RunData rundata, Context context)
  +throws Exception
  +{
  +processRegistration(rundata, context, false);
  +}
  +
  +private void processRegistration(RunData rundata, Context context, boolean 
insert)
  +throws Exception
  +{
   PortletApplicationViewBean bean = null;
   String name = rundata.getParameters().getString("name");
   String pacontext = rundata.getParameters().getString("context");   
  @@ -184,16 +196,26 @@
   }
   
   PortletApplicationViewBean dup = this.getPortletApplication(name);
  -if (dup != null)
  +if (insert)
   {
  -redirect(rundata, SecurityConstants.MID_ENTITY_ALREADY_EXISTS);
  -storeBean(rundata, new PortletApplicationViewBean(name, pacontext));
  -return;   
  +if (dup != null)
  +{
  +redirect(rundata, SecurityConstants.MID_ENTITY_ALREADY_EXISTS);
  +storeBean(rundata, new PortletApplicationViewBean(name, pacontext));
  +return;   
  +}
  +}
  +else
  +{
  +if (dup == null)
  +{
  +redirect(rundata, SecurityConstants.MID_INVALID_ENTITY_NAME);
  +storeBean(rundata, new PortletApplicationViewBean(name, pacontext));
  +return;   
  +}
   }
   
   bean = new PortletApplicationViewBean(name, pacontext);
  -System.out.println("Adding PA here: name= " + name);
  -System.out.println("Adding PA here: context = " + pacontext);
   
   ServletContext webContext = 
rundata.getServletContext().getContext(pacontext);
   InputStream portletXml = null;
  @@ -244,9 +266,12 @@
   {
   webXml.close();
   }
  -System.out.println("Registering " + name);
   try
   {
  +if (false == insert) // update mode
  +{
  +((Registration)getRegistrationComponent()).unregister(name);
  +}
   getRegistrationComponent().registerPortletApplication(name, pacontext, 
webContext);
   }
   catch (Throwable t)
  @@ -254,9 +279,7 @@
   redirect(rundata, SecurityConstants.MID_FAILED_REGISTER_PA);
   storeBean(rundata, bean);
   }
  -System.out.println("Done registering ");
   }
  -
   
   /**
* Database Delete Action for Security Groups. Performs deletes into security 
database.
  
  
  

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



cvs commit: jakarta-jetspeed/fusion/src/java/org/apache/jetspeed/fusion/tools/pamanager FusionPAM.java

2004-08-05 Thread taylor
taylor  2004/08/05 12:57:44

  Modified:fusion/src/java/org/apache/jetspeed/fusion/tools/pamanager
FusionPAM.java
  Log:
  added support for re-registration of PAs
  
  CVS: --
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  ChangesPath
  1.12  +2 -8  
jakarta-jetspeed/fusion/src/java/org/apache/jetspeed/fusion/tools/pamanager/FusionPAM.java
  
  Index: FusionPAM.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed/fusion/src/java/org/apache/jetspeed/fusion/tools/pamanager/FusionPAM.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- FusionPAM.java5 Aug 2004 19:55:14 -   1.11
  +++ FusionPAM.java5 Aug 2004 19:57:44 -   1.12
  @@ -348,7 +348,6 @@
   public void undeploy( PortletApplicationWar paWar ) throws 
PortletApplicationException
   {
   String paName = paWar.getPortletApplicationName();
  -System.out.println("* UN Deploying now" + paName);
   
   fusionUndeploy(paName, true);
   super.undeploy(paWar);
  @@ -361,9 +360,7 @@
* @param name of the portlet in the registry
*/
   private void removePSML(String name)
  -{
  -System.out.println("Trying to remove all PSML instances for: " + name);
  -
  +{
   QueryLocator locator = new QueryLocator(QueryLocator.QUERY_USER); // ALL

   Iterator profiles = null;
   int count = 0;
  @@ -402,12 +399,10 @@
   {
   if (existed)
   {
  -System.out.println("Un Deploying");
   fusionUndeploy(portletApplicationName, false);
   }
   try
   {
  -System.out.println("Deploying");
   fusionDeploy(portletApplicationName);
   }
   catch (Exception e)
  @@ -461,7 +456,6 @@
   PortletDefinition pdef = (PortletDefinition) pdsIter.next();
   String name = pdef.getName();
   Registry.removeEntry(Registry.PORTLET, name);
  -System.out.println("registry entry removed: " + name);
   
   // remove PSML refs
   if (zapPSML)
  
  
  

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



cvs commit: jakarta-jetspeed/fusion/src/java/org/apache/jetspeed/fusion/tools/pamanager FusionPAM.java

2004-08-05 Thread taylor
taylor  2004/08/05 12:55:15

  Modified:fusion/src/java/org/apache/jetspeed/fusion/tools/pamanager
FusionPAM.java
  Log:
  added support for re-registration of PAs
  
  CVS: --
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  ChangesPath
  1.11  +2 -2  
jakarta-jetspeed/fusion/src/java/org/apache/jetspeed/fusion/tools/pamanager/FusionPAM.java
  
  Index: FusionPAM.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed/fusion/src/java/org/apache/jetspeed/fusion/tools/pamanager/FusionPAM.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- FusionPAM.java4 Aug 2004 04:52:18 -   1.10
  +++ FusionPAM.java5 Aug 2004 19:55:14 -   1.11
  @@ -484,7 +484,7 @@
   public void unregister( String paName ) 
   throws PortletApplicationException
   {
  -fusionUndeploy(paName, true);
  +fusionUndeploy(paName, false);
   super.unregister(paName);
   }
   }
  
  
  

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



cvs commit: jakarta-jetspeed/fusion/src/webapp/WEB-INF/templates/vm/portlets/html pa-form.vm pa-browser.vm

2004-08-05 Thread taylor
taylor  2004/08/05 12:55:00

  Modified:fusion/src/webapp/WEB-INF/templates/vm/portlets/html
pa-form.vm pa-browser.vm
  Log:
  added support for re-registration of PAs
  
  CVS: --
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  ChangesPath
  1.3   +3 -3  
jakarta-jetspeed/fusion/src/webapp/WEB-INF/templates/vm/portlets/html/pa-form.vm
  
  Index: pa-form.vm
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed/fusion/src/webapp/WEB-INF/templates/vm/portlets/html/pa-form.vm,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- pa-form.vm2 Aug 2004 21:02:42 -   1.2
  +++ pa-form.vm5 Aug 2004 19:54:59 -   1.3
  @@ -65,11 +65,11 @@
 *#
   
 #if ($mode == "update")
  -
  +
 #elseif ($mode == "delete")
   
 #else
  -
  +
 #end
 
 
  
  
  
  1.2   +4 -2  
jakarta-jetspeed/fusion/src/webapp/WEB-INF/templates/vm/portlets/html/pa-browser.vm
  
  Index: pa-browser.vm
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed/fusion/src/webapp/WEB-INF/templates/vm/portlets/html/pa-browser.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- pa-browser.vm 2 Aug 2004 18:56:01 -   1.1
  +++ pa-browser.vm 5 Aug 2004 19:54:59 -   1.2
  @@ -35,7 +35,9 @@
   
   #foreach ($app in $apps)
   
  -  #entryCell ($app.Name)
  +  
  +  $app.Name
  +
 #entryCell ($app.getWebApplicationDefinition().ContextRoot)   
 
 
 Remove
  
  
  

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



cvs commit: jakarta-jetspeed-2/components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy JetspeedWebApplicationRewriter.java

2004-08-05 Thread taylor
taylor  2004/08/05 11:54:47

  Modified:components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy
JetspeedWebApplicationRewriter.java
  Log:
  double check for register at init init paramwhen rewriting web.xml
  
  CVS: --
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  ChangesPath
  1.5   +39 -18
jakarta-jetspeed-2/components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy/JetspeedWebApplicationRewriter.java
  
  Index: JetspeedWebApplicationRewriter.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy/JetspeedWebApplicationRewriter.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- JetspeedWebApplicationRewriter.java   22 Jul 2004 23:38:39 -  1.4
  +++ JetspeedWebApplicationRewriter.java   5 Aug 2004 18:54:47 -   1.5
  @@ -40,7 +40,10 @@
*/
   public class JetspeedWebApplicationRewriter
   {
  +public static final String REGISTER_AT_INIT = "registerAtInit";
  +public static final String JETSPEED_CONTAINER = "JetspeedContainer";
   public static final String JETSPEED_SERVLET_XPATH = 
"/web-app/servlet/servlet-name[contains(child::text(), \"JetspeedContainer\")]";
  +public static final String REGISTER_AT_INIT_XPATH = 
"/init-param/param-name[contains(child::text(), \"registerAtInit\")]";
   public static final String JETSPEED_SERVLET_MAPPING_XPATH = 
"/web-app/servlet-mapping/servlet-name[contains(child::text(), 
\"JetspeedContainer\")]";
   protected static final String WEB_XML_PATH = "WEB-INF/web.xml";
   
  @@ -55,6 +58,7 @@
   private boolean changed = false;
   private boolean registerAtInit = false;
   
  +
   public JetspeedWebApplicationRewriter(Document doc, String portletApplication, 
boolean registerAtInit)
   {
   this.document = doc;
  @@ -119,7 +123,7 @@
   if (jetspeedServlet == null)
   {
   Element jetspeedServletElement = new Element("servlet");
  -Element servletName = (Element) new 
Element("servlet-name").addContent("JetspeedContainer");
  +Element servletName = (Element) new 
Element("servlet-name").addContent(JETSPEED_CONTAINER);
   Element servletDspName = (Element) new 
Element("display-name").addContent("Jetspeed Container");
   Element servletDesc = (Element) new Element("description")
   .addContent("MVC Servlet for Jetspeed Portlet 
Applications");
  @@ -131,33 +135,30 @@
   jetspeedServletElement.addContent(servletClass);
   if (this.registerAtInit)
   {
  -Element paramName = (Element) new 
Element("param-name").addContent("registerAtInit");
  -Element paramValue = (Element) new 
Element("param-value").addContent("1"); 
  -Element initParam = new Element("init-param");
  -initParam.addContent(paramName);
  -initParam.addContent(paramValue);
  -jetspeedServletElement.addContent(initParam);
  -
  -Element param2Name = (Element) new 
Element("param-name").addContent("portletApplication");
  -Element param2Value = (Element) new 
Element("param-value").addContent(portletApplication); 
  -Element init2Param = new Element("init-param");
  -init2Param.addContent(param2Name);
  -init2Param.addContent(param2Value);
  -jetspeedServletElement.addContent(init2Param);  
  
  -
  -Element loadOnStartup = (Element) new 
Element("load-on-startup").addContent("100");
  -jetspeedServletElement.addContent(loadOnStartup);
  +insertRegisterAtInit(jetspeedServletElement);
   }
   insertElementCorrectly(root, jetspeedServletElement, 
ELEMENTS_BEFORE_SERVLET);

Re: Jetspeed2 and Single Sign On

2004-08-05 Thread Scott T. Weaver
Hi Chris,
My current project hooks into an existing based SSO solution.  I wrote a 
custom valve that checks for the SSO cookie and forwards on to the SSO 
login server if it is not found.   The SSO server sends me back J2 if 
authentication passed.  Just to give you an idea of how you can possibly 
tackle SSO.

Chris Delgado wrote:
Is anyone currently working on an SSO mechanism for J2?  Something that
holds passwords
to other backend systems so that portlets could access them without
requiring the user
to re-authenticate? What I had in mind was something similar to IBM's
"credential vault".

I have requirements for a portal that I'd like to propose using J2; but SSO
is a must and we'd
be accessing many backend systems.

If nobody's tackling this, is this something I could help contribute to the
J2 project?  Thanks.

Chris Delgado
1703 Durley Down Court
Smyrna GA 30082 USA
[EMAIL PROTECTED]
(404) 931-2557

 


--
**
*   Scott T. Weaver  *
* <[EMAIL PROTECTED]>*
*    *
* -- *
*   Apache Jetspeed Enterprise Portal*
* Apache Pluto Portlet Container *
**
* OpenEditPro, Website Content Mangement *
*    *
**
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Jetspeed2 and Single Sign On

2004-08-05 Thread David Sean Taylor
On Aug 5, 2004, at 11:29 AM, Chris Delgado wrote:
Is anyone currently working on an SSO mechanism for J2?  Something that
holds passwords
Not that I know of
to other backend systems so that portlets could access them without
requiring the user
to re-authenticate? What I had in mind was something similar to IBM's
"credential vault".

I have requirements for a portal that I'd like to propose using J2; 
but SSO
is a must and we'd

be accessing many backend systems.

If nobody's tackling this, is this something I could help contribute 
to the
J2 project?  Thanks.

absolutely!

Chris Delgado
1703 Durley Down Court
Smyrna GA 30082 USA
[EMAIL PROTECTED]
(404) 931-2557


--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194

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


cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/tools/pamanager FileSystemPAM.java

2004-08-05 Thread taylor
taylor  2004/08/05 11:27:07

  Modified:portal/src/java/org/apache/jetspeed/tools/pamanager
FileSystemPAM.java
  Log:
  set checksum on registered apps
  write out jetspeed-portlet.xml
  
  CVS: --
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  ChangesPath
  1.41  +26 -18
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/tools/pamanager/FileSystemPAM.java
  
  Index: FileSystemPAM.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/tools/pamanager/FileSystemPAM.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- FileSystemPAM.java4 Aug 2004 04:01:00 -   1.40
  +++ FileSystemPAM.java5 Aug 2004 18:27:07 -   1.41
  @@ -40,8 +40,11 @@
   import org.apache.jetspeed.om.common.servlet.MutableWebApplication;
   import 
org.apache.jetspeed.tools.pamanager.servletcontainer.ApplicationServerManager;
   import org.apache.jetspeed.util.ArgUtil;
  +import org.apache.jetspeed.util.ChecksumHelper;
   import org.apache.jetspeed.util.DirectoryHelper;
   import org.apache.jetspeed.util.FileSystemHelper;
  +import org.apache.jetspeed.util.descriptor.ExtendedPortletMetadata;
  +import org.apache.jetspeed.util.descriptor.MetaDataException;
   import org.apache.jetspeed.util.descriptor.PortletApplicationDescriptor;
   import org.apache.jetspeed.util.descriptor.PortletApplicationWar;
   import org.apache.jetspeed.util.descriptor.WebApplicationDescriptor;
  @@ -724,12 +727,10 @@
   PortletApplicationException, 
   IOException
   {
  -Reader portletXmlReader = null;
  +Reader portletXmlReader = null;  
   MutablePortletApplication portletApp = null;
   InputStream is = null;
   
  -
  -
   try
   {
   is = context.getResourceAsStream("WEB-INF/portlet.xml");
  @@ -738,37 +739,44 @@
   throw new PortletApplicationException("Failed to find Portlet XML");
   }
   portletXmlReader = new InputStreamReader(is);   
  -
  +  
   PortletApplicationDescriptor paDescriptor = new 
PortletApplicationDescriptor(portletXmlReader, paName);
   portletApp = paDescriptor.createPortletApplication();
  -// validate(portletApplication);
  -/*
  -Reader extMetaDataXml = null;
  +portletApp.setChecksum(ChecksumHelper.getChecksum(is));
  +
  +Reader extendedXmlReader = null;
  +InputStream eis = null;   
   try
   {
  -extMetaDataXml = getReader(EXTENDED_PORTLET_XML_PATH);
  -if (extMetaDataXml != null)
  +eis = context.getResourceAsStream("WEB-INF/jetspeed-portlet.xml");
  +extendedXmlReader = new InputStreamReader(eis);   
  +
  +if (extendedXmlReader != null)
   {
  -ExtendedPortletMetadata extMetaData = new 
ExtendedPortletMetadata(extMetaDataXml, portletApp);
  +ExtendedPortletMetadata extMetaData = new 
ExtendedPortletMetadata(extendedXmlReader, portletApp);
   extMetaData.load();
   }
   }
  -catch (IOException e)
  -{
  -log.info("Did not load exteneded metadata as it most likely does 
not exist.  " + e.toString());
  -}
   catch (MetaDataException e)
   {
   log.warn("Failed to load existing metadata.  " + e.toString(), e);
   }
  +catch (Exception e)
  +{
  +log.info("Did not load exteneded metadata as it most likely does 
not exist.  " + e.toString());
  +}
   finally
   {
  -if (null != extMetaDataXml)
  +if (eis != null)
  +{
  +eis.close();
  +}
  + 
  +if (null != extendedXmlRea

cvs commit: jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/util ChecksumHelper.java AbstractFileSystemHelper.java

2004-08-05 Thread taylor
taylor  2004/08/05 11:26:19

  Modified:commons/src/java/org/apache/jetspeed/util
AbstractFileSystemHelper.java
  Added:   commons/src/java/org/apache/jetspeed/util
ChecksumHelper.java
  Log:
  refactored checksum into simple util
  
  CVS: --
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  ChangesPath
  1.2   +20 -26
jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/util/AbstractFileSystemHelper.java
  
  Index: AbstractFileSystemHelper.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/util/AbstractFileSystemHelper.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractFileSystemHelper.java 23 Jul 2004 02:43:31 -  1.1
  +++ AbstractFileSystemHelper.java 5 Aug 2004 18:26:19 -   1.2
  @@ -17,9 +17,9 @@
   
   import java.io.File;
   import java.io.FileInputStream;
  +import java.io.FileNotFoundException;
   import java.io.IOException;
  -import java.util.zip.Adler32;
  -import java.util.zip.CheckedInputStream;
  +import java.io.InputStream;
   
   
   /**
  @@ -39,34 +39,28 @@
   {
   return 0;
   }
  -
  -CheckedInputStream cis = null;
  +
   long checksum = 0;
  -try 
  +InputStream is = null;
  +try
   {
  -cis = new CheckedInputStream(new FileInputStream(child), new Adler32());
  -byte[] tempBuf = new byte[128];
  -while (cis.read(tempBuf) >= 0) 
  -{
  -}
  -checksum = cis.getChecksum().getValue();
  -} 
  -catch (IOException e) 
  +is = new FileInputStream(child);
  +checksum = ChecksumHelper.getChecksum(is);
  +}
  +catch (FileNotFoundException e)
   {
  -checksum = 0;
   }
  -finally
  +finally 
   {
  -if (cis != null)
  -{
  -try
  -{
  -cis.close();
  -}
  -catch (IOException ioe)
  -{
  -}
  -}
  + if (is != null)
  + {
  + try
  + {
  + is.close();
  + }
  + catch (IOException io)
  + {}
  + }
   }
   return checksum;
   }
  
  
  
  1.1  
jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/util/ChecksumHelper.java
  
  Index: ChecksumHelper.java
  ===
  /*
   * Copyright 2000-2001,2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *  http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.util;
  
  import java.io.InputStream;
  import java.io.IOException;
  import java.util.zip.Adler32;
  import java.util.zip.CheckedInputStream;
  
  
  /**
   * implements checksum related utilities
   *
   * @author mailto:[EMAIL PROTECTED]">David Sean Taylor 
   * @version $Id: ChecksumHelper.java,v 1.1 2004/08/05 18:26:19 taylor Exp $
   */
  public final class ChecksumHelper
  {
  public static long getChecksum(InputStream is)
  {
  CheckedInputStream cis = null;
  long checksum = 0;
  try 
  {
  cis = new CheckedInputStream(is, new Adler32());
  byte[] tempBuf = new byte[128];
  while (

Jetspeed2 and Single Sign On

2004-08-05 Thread Chris Delgado
Is anyone currently working on an SSO mechanism for J2?  Something that
holds passwords

to other backend systems so that portlets could access them without
requiring the user

to re-authenticate? What I had in mind was something similar to IBM's
"credential vault".

 

I have requirements for a portal that I'd like to propose using J2; but SSO
is a must and we'd

be accessing many backend systems.

 

If nobody's tackling this, is this something I could help contribute to the
J2 project?  Thanks.

 

Chris Delgado

1703 Durley Down Court

Smyrna GA 30082 USA

[EMAIL PROTECTED]

(404) 931-2557

 



[jira] Commented: (JS1-509) org.apache.jetspeed.services.security.UserException: Failed to create account 'Dave': ORA-02289: sequence does not exist

2004-08-05 Thread jetspeed-dev
The following comment has been added to this issue:

 Author: David Sean Taylor
Created: Thu, 5 Aug 2004 11:18 AM
   Body:
Did you follow the 2 steps found here:

http://portals.apache.org/jetspeed-1/database.html


before building?


I've seen this happen before because the Torque bindings are generated to bind to 
HSQL-style sequence generation, not Oracle.
-
View this comment:
  http://issues.apache.org/jira/browse/JS1-509?page=comments#action_37068

-
View the issue:
  http://issues.apache.org/jira/browse/JS1-509

Here is an overview of the issue:
-
Key: JS1-509
Summary: org.apache.jetspeed.services.security.UserException: Failed to create 
account 'Dave': ORA-02289: sequence does not exist
   Type: Bug

 Status: Unassigned
   Priority: Major

Project: Jetspeed

   Assignee: 
   Reporter: Dave Nordin

Created: Thu, 5 Aug 2004 8:43 AM
Updated: Thu, 5 Aug 2004 11:18 AM
Environment: Win 2000; Jetspeed 1.5; JBOSS 3.2.3; Oracle 9.1; Built with Maven 2.0

Description:
After building the Jetspeed tutorial from source (1.5), I can get  connected to 
oracle.  I can alter data in the tutorial (coffee) database table (now in oracle) and 
the changes show up.  If I try t create a new jetspeed account, I get the following 
error:

org.apache.jetspeed.services.security.UserException: Failed to create account 'Dave': 
ORA-02289: sequence does not exist

I can see that others have had this problem, but have yet to get an explanation that 
works for me.  Below are my torque.properties settings.

torque.database.default.adapter=oracle

torque.dsfactory.default.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory
torque.dsfactory.default.pool.defaultMaxConnections=10
torque.dsfactory.default.pool.maxExpiryTime=3600
torque.dsfactory.default.pool.connectionWaitTimeout=10
### Oracle
torque.dsfactory.default.connection.driver = oracle.jdbc.driver.OracleDriver
torque.dsfactory.default.connection.url = 
jdbc:oracle:thin:@global120.ihs.com:1625:PPVDEV
torque.dsfactory.default.connection.user = PPVX
torque.dsfactory.default.connection.password = Pay4


Thanks, Dave

Dave Nordin
Engineer IHS



-
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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



Re: cvs commit: jakarta-jetspeed-2/applications/localeselector/src/java/org/apache/jetspeed/portlets/localeselector/resources LocaleSelectorResources_nl.properties LocaleSelectorResources_en.properties LocaleSelectorResources.properties LocaleSelectorResources_ja.properties

2004-08-05 Thread David Sean Taylor
On Aug 5, 2004, at 9:16 AM, Massimiliano Dessì wrote:
Where they are the files to translate ?
Watch for my upcoming commits later today
The example of how to do so will be there
Basically it involves added localized resources to a portlet 
application in the JSR 168 standard way
So this will be a good lesson for us all

This is cool .. we already have volunteers for Portuguese and Italian !
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194

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


Re: cvs commit: jakarta-jetspeed-2/applications/localeselector/src/java/org/apache/jetspeed/portlets/localeselector/resources LocaleSelectorResources_nl.properties LocaleSelectorResources_en.properties LocaleSelectorResources.properties LocaleSelectorResources_ja.properties

2004-08-05 Thread David Sean Taylor
On Aug 5, 2004, at 9:10 AM, Luiz Esmiralha wrote:

Anyone interested in a Brazilan Portuguese translation??
Of course we are interested!
Your contribution is very much welcome
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194

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


Re: cvs commit: jakarta-jetspeed-2/applications/localeselector/src/java/org/apache/jetspeed/portlets/localeselector/resources LocaleSelectorResources_nl.properties LocaleSelectorResources_en.properties LocaleSelectorResources.properties LocaleSelectorResources_ja.properties

2004-08-05 Thread Massimiliano Dessì
Where they are the files to translate ?

 --- David Sean Taylor <[EMAIL PROTECTED]> ha
scritto: 
> 
> On Aug 5, 2004, at 8:54 AM, [EMAIL PROTECTED] wrote:
> 
> > ate 2004/08/05 08:54:46
> >
> >   Modified: 
> >
>
applications/localeselector/src/java/org/apache/jetspeed/portlets/
> 
> > localeselector/resources
> >
> LocaleSelectorResources_en.properties
> >
> LocaleSelectorResources.properties
> >
> LocaleSelectorResources_ja.properties
> >   Added:
> >
>
applications/localeselector/src/java/org/apache/jetspeed/portlets/
> 
> > localeselector/resources
> >
> LocaleSelectorResources_nl.properties
> >   Log:
> >   Had to add a Dutch (nl) translation :-)
> >
> 
> Goed!
> 
> I hope to find some time to add French and German
> over the next few  
> days to all the demo portlets
> Guess I can get my wife to help with the Dutch ;-)
> 
> It will be a good test of some of the registry
> persistence with nested  
> collections ...
> There are actually 2 ways to do localization, either
> thru a bundle or  
> in the portlet.xml itself
> Im going to test both
> 
> --
> David Sean Taylor
> Bluesunrise Software
> [EMAIL PROTECTED]
> [office]   +01 707 773-4646
> [mobile] +01 707 529 9194
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>  







Yahoo! Companion - Scarica gratis la toolbar di Ricerca di Yahoo! 
http://companion.yahoo.it

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



Re: cvs commit: jakarta-jetspeed-2/applications/localeselector/src/java/org/apache/jetspeed/portlets/localeselector/resources LocaleSelectorResources_nl.properties LocaleSelectorResources_en.properties LocaleSelectorResources.properties LocaleSelectorResources_ja.properties

2004-08-05 Thread Luiz Esmiralha
David Sean Taylor wrote:
On Aug 5, 2004, at 8:54 AM, [EMAIL PROTECTED] wrote:
Goed!
I hope to find some time to add French and German over the next few  
days to all the demo portlets
Guess I can get my wife to help with the Dutch ;-)

It will be a good test of some of the registry persistence with 
nested  collections ...
There are actually 2 ways to do localization, either thru a bundle or  
in the portlet.xml itself
Im going to test both

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194

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

Anyone interested in a Brazilan Portuguese translation??
Luiz Esmiralha
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: cvs commit: jakarta-jetspeed-2/applications/localeselector/src/java/org/apache/jetspeed/portlets/localeselector/resources LocaleSelectorResources_nl.properties LocaleSelectorResources_en.properties LocaleSelectorResources.properties LocaleSelectorResources_ja.properties

2004-08-05 Thread David Sean Taylor
On Aug 5, 2004, at 8:54 AM, [EMAIL PROTECTED] wrote:
ate 2004/08/05 08:54:46
  Modified: 
applications/localeselector/src/java/org/apache/jetspeed/portlets/ 
localeselector/resources
LocaleSelectorResources_en.properties
LocaleSelectorResources.properties
LocaleSelectorResources_ja.properties
  Added:
applications/localeselector/src/java/org/apache/jetspeed/portlets/ 
localeselector/resources
LocaleSelectorResources_nl.properties
  Log:
  Had to add a Dutch (nl) translation :-)

Goed!
I hope to find some time to add French and German over the next few  
days to all the demo portlets
Guess I can get my wife to help with the Dutch ;-)

It will be a good test of some of the registry persistence with nested  
collections ...
There are actually 2 ways to do localization, either thru a bundle or  
in the portlet.xml itself
Im going to test both

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194

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


cvs commit: jakarta-jetspeed-2/applications/localeselector/src/java/org/apache/jetspeed/portlets/localeselector/resources LocaleSelectorResources_nl.properties LocaleSelectorResources_en.properties LocaleSelectorResources.properties LocaleSelectorResources_ja.properties

2004-08-05 Thread ate
ate 2004/08/05 08:54:46

  Modified:
applications/localeselector/src/java/org/apache/jetspeed/portlets/localeselector/resources
LocaleSelectorResources_en.properties
LocaleSelectorResources.properties
LocaleSelectorResources_ja.properties
  Added:   
applications/localeselector/src/java/org/apache/jetspeed/portlets/localeselector/resources
LocaleSelectorResources_nl.properties
  Log:
  Had to add a Dutch (nl) translation :-)
  
  Revision  ChangesPath
  1.2   +2 -1  
jakarta-jetspeed-2/applications/localeselector/src/java/org/apache/jetspeed/portlets/localeselector/resources/LocaleSelectorResources_en.properties
  
  Index: LocaleSelectorResources_en.properties
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/applications/localeselector/src/java/org/apache/jetspeed/portlets/localeselector/resources/LocaleSelectorResources_en.properties,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LocaleSelectorResources_en.properties 5 Aug 2004 04:49:04 -   1.1
  +++ LocaleSelectorResources_en.properties 5 Aug 2004 15:54:45 -   1.2
  @@ -27,6 +27,7 @@
   localeselector.locale.it=Italian
   localeselector.locale.ja=Japanese
   localeselector.locale.ko=Korean
  +localeselector.locale.nl=Dutch
   localeselector.locale.sv=Swedish
   localeselector.locale.zh=Simplified Chinese
   localeselector.locale.zh_TW=Traditional Chinese
  
  
  
  1.2   +3 -2  
jakarta-jetspeed-2/applications/localeselector/src/java/org/apache/jetspeed/portlets/localeselector/resources/LocaleSelectorResources.properties
  
  Index: LocaleSelectorResources.properties
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/applications/localeselector/src/java/org/apache/jetspeed/portlets/localeselector/resources/LocaleSelectorResources.properties,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LocaleSelectorResources.properties5 Aug 2004 04:49:04 -   1.1
  +++ LocaleSelectorResources.properties5 Aug 2004 15:54:45 -   1.2
  @@ -17,7 +17,7 @@
   
   # Base Locales
   # DO NOT TRANSLATE & DO NOT INCLUDE IN L10N PROPERTIES FILE
  -localeselector.locales=de,en,es,fr,it,ja,ko,sv,zh,zh_TW
  +localeselector.locales=de,en,es,fr,it,ja,ko,nl,sv,zh,zh_TW
   
   # Label
   localeselector.label.language=Language:
  @@ -31,6 +31,7 @@
   localeselector.locale.it=Italian
   localeselector.locale.ja=Japanese
   localeselector.locale.ko=Korean
  +localeselector.locale.nl=Dutch
   localeselector.locale.sv=Swedish
   localeselector.locale.zh=Simplified Chinese
   localeselector.locale.zh_TW=Traditional Chinese
  
  
  
  1.2   +2 -1  
jakarta-jetspeed-2/applications/localeselector/src/java/org/apache/jetspeed/portlets/localeselector/resources/LocaleSelectorResources_ja.properties
  
  Index: LocaleSelectorResources_ja.properties
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/applications/localeselector/src/java/org/apache/jetspeed/portlets/localeselector/resources/LocaleSelectorResources_ja.properties,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LocaleSelectorResources_ja.properties 5 Aug 2004 04:49:04 -   1.1
  +++ LocaleSelectorResources_ja.properties 5 Aug 2004 15:54:45 -   1.2
  @@ -27,6 +27,7 @@
   localeselector.locale.it=\u30A4\u30BF\u30EA\u30A2\u8A9E
   localeselector.locale.ja=\u65E5\u672C\u8A9E
   localeselector.locale.ko=\u97D3\u56FD\u8A9E
  +localeselector.locale.nl=\u30AA\u30E9\u30F3\u30C0\u8A9E
   localeselector.locale.sv=\u30B9\u30A6\u30A7\u30FC\u30C7\u30F3\u8A9E
   localeselector.locale.zh=\u7C21\u4F53\u5B57\u4E2D\u56FD\u8A9E
   localeselector.locale.zh_TW=\u7E41\u4F53\u5B57\u4E2D\u56FD\u8A9E
  
  
  
  1.1  
jakarta-jetspeed-2/applications/localeselector/src/java/org/apache/jetspeed/portlets/localeselector/resources/LocaleSelectorResources_nl.properties
  
  Index: LocaleSelectorResources_nl.properties
  ===
  # Copyright 2004 The Apache Software Foundation
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  # http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  #
  # $Id: LocaleSelectorResources_nl.properties,v 1.1 2004/08

[jira] Created: (JS1-509) org.apache.jetspeed.services.security.UserException: Failed to create account 'Dave': ORA-02289: sequence does not exist

2004-08-05 Thread jetspeed-dev
Message:

  A new issue has been created in JIRA.

-
View the issue:
  http://issues.apache.org/jira/browse/JS1-509

Here is an overview of the issue:
-
Key: JS1-509
Summary: org.apache.jetspeed.services.security.UserException: Failed to create 
account 'Dave': ORA-02289: sequence does not exist
   Type: Bug

 Status: Unassigned
   Priority: Major

Project: Jetspeed

   Assignee: 
   Reporter: Dave Nordin

Created: Thu, 5 Aug 2004 8:43 AM
Updated: Thu, 5 Aug 2004 8:43 AM
Environment: Win 2000; Jetspeed 1.5; JBOSS 3.2.3; Oracle 9.1; Built with Maven 2.0

Description:
After building the Jetspeed tutorial from source (1.5), I can get  connected to 
oracle.  I can alter data in the tutorial (coffee) database table (now in oracle) and 
the changes show up.  If I try t create a new jetspeed account, I get the following 
error:

org.apache.jetspeed.services.security.UserException: Failed to create account 'Dave': 
ORA-02289: sequence does not exist

I can see that others have had this problem, but have yet to get an explanation that 
works for me.  Below are my torque.properties settings.

torque.database.default.adapter=oracle

torque.dsfactory.default.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory
torque.dsfactory.default.pool.defaultMaxConnections=10
torque.dsfactory.default.pool.maxExpiryTime=3600
torque.dsfactory.default.pool.connectionWaitTimeout=10
### Oracle
torque.dsfactory.default.connection.driver = oracle.jdbc.driver.OracleDriver
torque.dsfactory.default.connection.url = 
jdbc:oracle:thin:@global120.ihs.com:1625:PPVDEV
torque.dsfactory.default.connection.user = PPVX
torque.dsfactory.default.connection.password = Pay4


Thanks, Dave

Dave Nordin
Engineer IHS



-
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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



cvs commit: jakarta-jetspeed-2 .classpath

2004-08-05 Thread ate
ate 2004/08/05 08:17:37

  Modified:..classpath
  Log:
  Added applications/localeselector/src/java as classpathentry
  
  Revision  ChangesPath
  1.58  +1 -0  jakarta-jetspeed-2/.classpath
  
  Index: .classpath
  ===
  RCS file: /home/cvs/jakarta-jetspeed-2/.classpath,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- .classpath29 Jul 2004 22:27:51 -  1.57
  +++ .classpath5 Aug 2004 15:17:37 -   1.58
  @@ -1,6 +1,7 @@
   
   

  + 



  
  
  

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



cvs commit: jakarta-jetspeed-2/design-docs/src/locale Locale.txt

2004-08-05 Thread taylor
taylor  2004/08/05 05:39:04

  Added:   design-docs/src/locale Locale.txt
  Log:
  Locale design docs
  
  CVS: --
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  ChangesPath
  1.1  jakarta-jetspeed-2/design-docs/src/locale/Locale.txt
  
  Index: Locale.txt
  ===
  Copyright 2004 The Apache Software Foundation
  
  Licensed under the Apache License, Version 2.0 (the "License"); you
  may not use this file except in compliance with the License. You may
  obtain a copy of the License at
  
  http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  implied. See the License for the specific language governing
  permissions and limitations under the License.
  
  
  ===
  Locale Selector Portlet
  ===
  
Overviews:
--
  
 The goal of Locale Selector is that Jetpseed user selects the preferred
 locale for J2 on Locale Selector Portlet.
  
 Currently, J2 determines the locale from Browser Preferred Locale or
 System Default Locale. Introducing Locale Selector, J2 gets the preferred
 locale by the following order:
  
  1. User Persistence Database
  2. Session Attribute
  3. Browser Preferred Locale
  4. System Default Locale
  
  
Design:
---
  
 i) Process to set prefered locale
  
  User's Prefered Locale
   | Select the locale by user
   V
---
| Locale Selector Portlet |
---
   | Set Prefered Locale
   V
 -
 | User's Persistence Database(TODO) |
 |  and  |
 |  Application Scope Session|
 -
  
  
 ii) Process to get prefered locale
  
 -
 | User's Persistence Database(TODO) |
 |  or   |
 |  Application Scope Session|
 -
   | Get Prefered Locale
   V
   -
   |Jetspeed2(Portal Container)|
   | o.a.j.localization.impl.LocalizationValveImpl |
   |   o.a.j.engine.servlet.ServletRequestImpl |
   -
   | Prefered Locale Info
   V
  Portlets, Libraries or Frameworks
  
  
Task Lists:
---
  
 Added Classes
 -
  
  o org.apache.jetspeed.portlets.localeselector.LocaleSelectorPortlet
(Class for Locale Selector Portlet)
  
   - Set the selected locale to User's Persistence Database. (if not anon)
   - Set the selected locale to the session attribute [Done]
 (The name of the session key is "org.apache.jetspeed.prefered.locale".)
  
  
 Added Resources
 ---
  
  o 
org.apache.jetspeed.portlets.localeselector.resources.LocaleSelectorResources.properties
  
   - Message resource file for Locale Selector Portlet [Done]
  
  o 
org.apache.jetspeed.portlets.localeselector.resources.LocaleSelectorResources_en.properties
  
   - English message resource file for Locale Selector Portlet [Done]
  
  o 
org.apache.jetspeed.portlets.localeselector.resources.LocaleSelectorResources_ja.properties
  
   - Japanese message resource file for Locale Selector Portlet [Done]
  

Newbie-Question

2004-08-05 Thread Koller Daniel

Hi,

I'm a newbie to this list. 

My portal context is long work with SAP Enterprise Portal (6.0) and I'm
interested in supporting open source projects. From this perspective I
think I could serve with handling and administrative experience with
other portal solutions.

As I'm not aware of the overall status at the moment ("prealpha" as a
mail said some days ago), I ask you where the open issues are and what
are the tasks related to them.

Kind regards,

Daniel




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



cvs commit: jakarta-jetspeed/src/test/org/apache/jetspeed/services/registry TestRegistryPersistence.java

2004-08-05 Thread jford
jford   2004/08/05 07:52:01

  Removed: src/test/org/apache/jetspeed/services/registry
TestRegistryPersistence.java
  Log:
  Removed test since service has been removed

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



Re: [J2] Unable to run the PHP portlet

2004-08-05 Thread [EMAIL PROTECTED]
Make sure that you have both libraries in the path. The error indicates
that the JNI call can't find the dll (php engine).

...

I have no experience with setting up PHP (nor with the language, lol) 
but I did check the php website for further information concerning 
configuration requirements. That didn't help me much. I think I need 
to define a php.ini somewhere but don't know where nor what to define 
in it.

If you could provide a quick tutorial/example setup or pointers where 
to look how to do so that would be great.
Note: I have not so much intention to work with PHP but it would be 
nice to be able to validate if it is working (and keeps working when I 
change something in J2).

I have a document describing how to integrate a PHP application into a
portlet that includes the system setup.
I'll commit the document as soon as I'm back in the office (mid August).
Regards,
Ate
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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