Re: Dumb question?

2004-08-31 Thread John West
Sorry -- I didn't mean that I want to use jetspeed-2 on WebSphere but 
that my experience with jetspeed-1 (as WebSphere Portal Server) leads me 
to want to be involved with jetspeed-2 development. I'm actually not 
interested in using WebSphere at all.

I'll apply Randy's patches and see if I can't get a running install (on 
Tomcat).

Thanks!
David Sean Taylor wrote:
John West wrote:
I've been developing Jetspeed 1 portlets (mostly on WebSphere Portal 
Server) for some time now and I thought I'd get involved with 
Jetspeed 2.

I'm having trouble getting a build out of cvs. I update my local 
directory then 'maven allClean allBuild' per the instructions on the 
Getting Started page.  Everything progresses nicely until:

Jetspeed  Fusion runs on Websphere (running J2 underneath)
See here:
http://wiki.apache.org/portals/Jetspeed2/Fusion
In this attempt I'm using the Hypersonic DB, but I get the same error 
when I tried to move to MySQL instead. I'll come right out and admit 
I've never used Maven before, so I don't really understand what's 
going on in there.

I don't think HSQL works with Websphere
Also check this out for tips on setting up MySQL with Websphere:
http://www.webspherepower.com/issuesprint/issue200403/1236.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
*John West*
ExNihilo Inc.
2 Charles St.
Providence, RI 02904
Phone 401 621.8277 ext. 25
Fax 401 454.5029
www.exnihilo.com 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Dumb question?

2004-08-30 Thread David Sean Taylor
John West wrote:
I've been developing Jetspeed 1 portlets (mostly on WebSphere Portal 
Server) for some time now and I thought I'd get involved with Jetspeed 2.

I'm having trouble getting a build out of cvs. I update my local 
directory then 'maven allClean allBuild' per the instructions on the 
Getting Started page.  Everything progresses nicely until:

Jetspeed  Fusion runs on Websphere (running J2 underneath)
See here:
http://wiki.apache.org/portals/Jetspeed2/Fusion
In this attempt I'm using the Hypersonic DB, but I get the same error 
when I tried to move to MySQL instead. I'll come right out and admit 
I've never used Maven before, so I don't really understand what's 
going on in there.

I don't think HSQL works with Websphere
Also check this out for tips on setting up MySQL with Websphere:
http://www.webspherepower.com/issuesprint/issue200403/1236.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Dumb question?

2004-08-30 Thread Randy Watler
...same patches attached to avoid line wrapping...
Randy Watler
rwatler wrote:
John/Scott:
The patch below for o/a/j/page/impl/CastorXmlPageManager.java worked 
for me... it seems that page ids now require an extension so that they 
can be cached correctly in the FileCache with a real file name. I am 
not sure this is the CORRECT fix. It is certainly not the cleanest or 
most efficient possible... perhaps adding an additional name/alias 
lookup to the FileCache would be better?

I also had to escape the French LATIN-1 character embedded in the 
o/a/j/page/TestCastorXmlPageManager.java source file to make sure it 
functioned properly. I seem to recall somewhere that LATIN-1 
characters must be escaped in string literals, (?).

Randy Watler

--- CastorXmlPageManager.java.orig  2004-08-30 21:37:13.0 -0600
+++ CastorXmlPageManager.java   2004-08-30 20:44:43.0 -0600
@@ -194,7 +194,14 @@
 
 Page page = null;
 
-page = (Page) pages.getDocument(id);
+if (id.endsWith(this.ext))
+{
+page = (Page) pages.getDocument(id);
+}
+else
+{
+page = (Page) pages.getDocument(id + this.ext);
+}
 
 if (page == null)
 {
@@ -206,7 +213,14 @@
 // watcher
 try
 {
-pages.put(id, page, this.rootDir);
+if (id.endsWith(this.ext))
+{
+pages.put(id, page, this.rootDir);
+}
+else
+{
+pages.put(id + this.ext, page, this.rootDir);
+}
 int lastSlash = id.indexOf("/");
 if (lastSlash > -1)
 {
@@ -385,7 +399,16 @@
 }
 
 // marshal page to disk
-File f = new File(this.rootDir, id + this.ext);
+
+File f = null;
+if (id.endsWith(this.ext))
+{
+f = new File(this.rootDir, id);
+}
+else
+{
+f = new File(this.rootDir, id + this.ext);
+}
 FileWriter writer = null;
 
 try
@@ -437,7 +460,14 @@
 {
 try
 {
-pages.put(id, page, this.rootDir);
+if (id.endsWith(this.ext))
+{
+pages.put(id, page, this.rootDir);
+}
+else
+{
+pages.put(id + this.ext, page, this.rootDir);
+}
 }
 catch (IOException e)
 {
@@ -467,11 +497,26 @@
 return;
 }
 
-File file = new File(this.rootDir, id + this.ext);
+File file = null;
+if (id.endsWith(this.ext))
+{
+file = new File(this.rootDir, id);
+}
+else
+{
+file = new File(this.rootDir, id + this.ext);
+}
 
 synchronized (pages)
 {
-pages.remove(id);
+if (id.endsWith(this.ext))
+{
+pages.remove(id);
+}
+else
+{
+pages.remove(id + this.ext);
+}
 }
 
 file.delete();
--- TestCastorXmlPageManager.java.orig  2004-08-30 21:21:44.0 -0600
+++ TestCastorXmlPageManager.java   2004-08-30 21:22:26.0 -0600
@@ -346,7 +346,7 @@
 Folder folder1French = pageManager.getFolder("folder1");
 FolderMetaData metaData = folder1French.getMetaData();
 assertNotNull(metaData);
-assertEquals("Titre français pour la chemise 1", 
metaData.getTitle(Locale.FRENCH));
+assertEquals("Titre fran\347ais pour la chemise 1", 
metaData.getTitle(Locale.FRENCH));
 
 Folder folder1English = pageManager.getFolder("folder1");
 metaData = folder1English.getMetaData();

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

Re: Dumb question?

2004-08-30 Thread Randy Watler
John/Scott:
The patch below for o/a/j/page/impl/CastorXmlPageManager.java worked for 
me... it seems that page ids now require an extension so that they can 
be cached correctly in the FileCache with a real file name. I am not 
sure this is the CORRECT fix. It is certainly not the cleanest or most 
efficient possible... perhaps adding an additional name/alias lookup to 
the FileCache would be better?

I also had to escape the French LATIN-1 character embedded in the 
o/a/j/page/TestCastorXmlPageManager.java source file to make sure it 
functioned properly. I seem to recall somewhere that LATIN-1 characters 
must be escaped in string literals, (?).

Randy Watler
-
--- CastorXmlPageManager.java.orig2004-08-30 21:37:13.0 -0600
+++ CastorXmlPageManager.java2004-08-30 20:44:43.0 -0600
@@ -194,7 +194,14 @@
Page page = null;
-page = (Page) pages.getDocument(id);
+if (id.endsWith(this.ext))
+{
+page = (Page) pages.getDocument(id);
+}
+else
+{
+page = (Page) pages.getDocument(id + this.ext);
+}
if (page == null)
{
@@ -206,7 +213,14 @@
// watcher
try
{
-pages.put(id, page, this.rootDir);
+if (id.endsWith(this.ext))
+{
+pages.put(id, page, this.rootDir);
+}
+else
+{
+pages.put(id + this.ext, page, this.rootDir);
+}
int lastSlash = id.indexOf("/");
if (lastSlash > -1)
{
@@ -385,7 +399,16 @@
}
// marshal page to disk
-File f = new File(this.rootDir, id + this.ext);
+
+File f = null;
+if (id.endsWith(this.ext))
+{
+f = new File(this.rootDir, id);
+}
+else
+{
+f = new File(this.rootDir, id + this.ext);
+}
FileWriter writer = null;
try
@@ -437,7 +460,14 @@
{
try
{
-pages.put(id, page, this.rootDir);
+if (id.endsWith(this.ext))
+{
+pages.put(id, page, this.rootDir);
+}
+else
+{
+pages.put(id + this.ext, page, this.rootDir);
+}
}
catch (IOException e)
{
@@ -467,11 +497,26 @@
return;
}
-File file = new File(this.rootDir, id + this.ext);
+File file = null;
+if (id.endsWith(this.ext))
+{
+file = new File(this.rootDir, id);
+}
+else
+{
+file = new File(this.rootDir, id + this.ext);
+}
synchronized (pages)
{
-pages.remove(id);
+if (id.endsWith(this.ext))
+{
+pages.remove(id);
+}
+else
+{
+pages.remove(id + this.ext);
+}
}
file.delete();
-
--- TestCastorXmlPageManager.java.orig2004-08-30 21:21:44.0 
-0600
+++ TestCastorXmlPageManager.java2004-08-30 21:22:26.0 -0600
@@ -346,7 +346,7 @@
Folder folder1French = pageManager.getFolder("folder1");
FolderMetaData metaData = folder1French.getMetaData();
assertNotNull(metaData);
-assertEquals("Titre français pour la chemise 1", 
metaData.getTitle(Locale.FRENCH));
+assertEquals("Titre fran\347ais pour la chemise 1", 
metaData.getTitle(Locale.FRENCH));
   
Folder folder1English = pageManager.getFolder("folder1");
metaData = folder1English.getMetaData();
--

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


Dumb question?

2004-08-29 Thread John West
I've been developing Jetspeed 1 portlets (mostly on WebSphere Portal 
Server) for some time now and I thought I'd get involved with Jetspeed 
2.

I'm having trouble getting a build out of cvs. I update my local 
directory then 'maven allClean allBuild' per the instructions on the 
Getting Started page.  Everything progresses nicely until:

dbSetup:
[copy] Copying 1 file to 
/usr/local/jetspeed2/components/page-manager/target/test-classes

[junit] Running org.apache.jetspeed.om.page.TestPageObjectModel
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 1.283 
sec
[junit] Running org.apache.jetspeed.page.TestCastorXmlPageManager
[junit] Tests run: 11, Failures: 1, Errors: 0, Time elapsed: 5.648 
sec
[junit] [ERROR] TEST 
org.apache.jetspeed.page.TestCastorXmlPageManager FAILED
[junit] Running org.apache.jetspeed.page.TestDatabasePageManager
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 4.827 
sec
[junit] Running org.apache.jetspeed.profiler.TestProfiler
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 8.045 
sec

BUILD FAILED
File.. /usr/local/jetspeed2/maven.xml
Element... maven:reactor
Line.. 256
Column 40
Unable to obtain goal [test:test] -- 
/Users/jwest/.maven/cache/maven-test-plugin-1.6.2/plugin.jelly:181:54: 
 There were test failures.
Total time: 7 minutes 18 seconds
Finished at: Sun Aug 29 20:46:57 EDT 2004

In this attempt I'm using the Hypersonic DB, but I get the same error 
when I tried to move to MySQL instead. I'll come right out and admit 
I've never used Maven before, so I don't really understand what's going 
on in there.

Any tips on a) getting a build and b) getting involved with Jetspeed 2?
Thanks,
John
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]