Re: Database parameters missing.

2005-02-23 Thread Unmesh Kulkarni
Hi,
Evidenly, your Jetspeed is missing the DB parameters. When you copied
the binary folders, did you copy jetspeed.xml?

Please verify that the jetspeed.xml file is available under 
%tomcat_home%/conf/localhost directory. 
cheers,
Unmesh



On Wed, 23 Feb 2005 10:58:55 -0800 (PST), [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I using Tomcat 5.5.7 and jetspeed on jdk 1.5 on a windows xp platform. I'm
> running hsql by using the command "maven start.production.server" then in
> another window I run "maven quickStart".  Except when I deploy the
> jetspeed binary.  In this case I reinstall Tomcat then copy the binary
> folders over to the appropriate directories under Tomcat and I get the
> same errors.
> 
> What is not configured properly?  I understand that I may have
> misconfigured something with the source build but the binary I imagined
> would work.
> 
> I appreciate any insights,
> 
> Chris
> 
> I'm getting the errors while accessing jetspeed at
> http://localhost:8080/jetspeed.
> 
> With the source build, I had to change the build.properties paths to use
> \\ instead of / to satisfy the windows environment.
> I had to modify 4 files during the source build to accomodate "enum" since
> it is a reserved word in jdk 1.5.
> 
> After these adjustments the source compiles and deploys as planned.  But
> when I type http://localhost:8080/jetspeed I get the following error
> whether I deploy the source build or the binary.
> 
> [org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl] ERROR:
> SQLException thrown while trying to get Connection from Datasource
> (java:comp/env/jdbc/jetspeed)
> Cannot create JDBC driver of class '' for connect URL 'null'
> org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver
> of class '' for connect URL 'null'
>at
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
>at
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
>at
> org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.newConnectionFromDataSource(ConnectionFactoryAbstractImpl.java:204)
>at
> org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.lookupConnection(ConnectionFactoryAbstractImpl.java:112)
>at
> org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.getConnection(ConnectionManagerImpl.java:105)
>at
> org.springframework.orm.ojb.PersistenceBrokerTransactionManager.doBegin(PersistenceBrokerTransactionManager.java:187)
>at
> org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:269)
>at
> org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:201)
>at
> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:49)
>at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138)
>at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152)
>at $Proxy7.createNode(Unknown Source)
>at
> org.apache.jetspeed.prefs.impl.PreferencesImpl.(PreferencesImpl.java:96)
>at
> org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl.init(PreferencesFactoryImpl.java:64)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>at java.lang.reflect.Method.invoke(Unknown Source)
>at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1087)
>at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1061)
>at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:287)
>at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:205)
>at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
>at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:136)
>at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:236)
>at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:284)
>at
> org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:114)
>at
> org.springframework.context.support.FileSystemXmlApplication

JS2 - Getting Started - Maven errors

2005-02-23 Thread Ramin
Hello all, im new here.. pardon me if this has been covered before.
Just did a fresh checkout of JS2 from CVS and tried to follow the
"Gettin Started" guide on the website. Opened up 2 shells, started the
test.server and then tried to run maven allClean allBuild.

Got this error:

BUILD FAILED
File.. e:\development\projects\jetspeed\jakarta-jetspeed-2\maven.xml
Element... maven:reactor
Line.. 181
Column 40
Unable to obtain goal [catalina:base-shared] -- e:\development\projects\jetspeed
\jakarta-jetspeed-2\portal\maven.xml:524:115:  Failed to copy C:\Documents
 and Settings\ramin\.maven\repository\pluto\jars\pluto-1.0.1-rc1.jar to \\shared
\lib\pluto-1.0.1-rc1.jar due to \\shared\lib\pluto-1.0.1-rc1.jar (The network pa
th was not found)
Total time: 4 minutes 14 seconds
Finished at: Wed Feb 23 19:35:57 EST 2005

I noticed some packages would not download.. could be the cause of the problem?

Thanks
-- 
- Ramin

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



RE: File upload using commons fileuploader not working

2005-02-23 Thread nik gonzalez
By the way, its a JSR 168 portlet that i deployed  in Fusion.

Thanks,
Nik

> -Original Message-
> From: nik gonzalez [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 23, 2005 5:05 PM
> To: jetspeed-user@jakarta.apache.org
> Subject: File upload using commons fileuploader not working
> 
> 
> Hello,
> 
> I ran the following code in my portlet.
> 
>   PortletFileUpload dfu = new PortletFileUpload();
> //get the FileItems
> List fileItems = dfu.parseRequest(request);
> Iterator iter = fileItems.iterator();
> while (iter.hasNext())
> {
> FileItem item = (FileItem) iter.next();
> if (item.isFormField())
> {
> //pass along to render request
> String fieldName = item.getFieldName();
> String value = item.getString();
> response.setRenderParameter(fieldName, value);
> }
> else
> {
> //write the uploaded file to a new location
> String fieldName = item.getFieldName();
> String fileName = item.getName();
> String contentType = item.getContentType();
> long size = item.getSize();
> response.setRenderParameter("size",
> Long.toString(size));
> 
> response.setRenderParameter("contentType", contentType);
> String tempDir = 
> System.getProperty("java.io.tmpdir");
> System.out.println("tempDir: "+tempDir);
> String serverFileName = fieldName + 
> "-portlet.tmp";
> File serverFile = new File(tempDir, 
> serverFileName);
> item.write(serverFile);
> response.setRenderParameter("serverFileName",
> serverFileName);
> getPortletContext().log(
> "serverFileName : " + tempDir + "/" +
> serverFileName);
> }
> }
> 
> Once i submit the multipart form, it does not enter the while 
> loop meaning
> that the iterator is empty.  Is this a bug?
> 
> I attached the rest of the source code. got this from one of 
> the messages in
> this mailing list.
> 
> Thanks,
> Nik
> 
> 
> 
> 
> 
> 
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 2/22/2005
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 2/22/2005
> 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 2/22/2005
 


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



Importing Jetspeed settings into database

2005-02-23 Thread Sven Richter
Hello,
I so far made all the changes to Torque.properties.merge  
JetspeedResources.properties.merge and project.properties and created all  
tables in MySQL, as described on the Jetspeed homepage. The next step is  
(according to the website) to import the file-based settings to the  
database with "maven import". Unfurtunately I get the error message that  
the goal import does not exist.

Could you please help me with this problem?
Thank you very much,
Sven.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: portal-struts bridge, filter and buffering

2005-02-23 Thread Mike Douglass
Further work has persuaded me that something needs to flush the output - 
I imagine somewhere in the portlet bridge.

The problem will show up with any filtered application that reads or 
modifes the response stream. A flush should be done before control is 
handed back to the first filter in the chain -  and now I think of it - 
maybe my filter should flush for the same reason.

I found the following in the tomcat source in ResponseIncludeWrapper 
which seems to imply the same

   /**
* Flush the servletOutputStream or printWriter ( only one will be 
non-null )
*
* This must be called after a requestDispatcher.include, since we 
can't assume that
* the included servlet flushed its stream.
*/
   public void flushOutputStreamOrWriter() throws IOException {
   if ( servletOutputStream != null ) {
   servletOutputStream.flush();
   }
   if ( printWriter != null ) {
   printWriter.flush();
   }
   }

What I did to get my application to work is include the following as the 
last line in the jsp:

<% pageContext.getOut().flush(); %>

Mike Douglass wrote:
I've spent some time trying to use the portal-struts bridge to get an 
application running as a portlet.

I'm experiencing behaviour which appears to be related to buffering in 
the JspWriter.

The struts application uses an xslt filter to transform xml to html 
(usually). As a standalone application it works, as a portlet I got 
tow responses from it,

no content, or truncated xml at about 8k. I could trigger the second 
response by adding content till the xml exceeded the 8k boundary.

I tried setting a jsp page directive with  buffer="none" and now I get 
no content whatever I do.

The filter wraps the response and I added some debugging to the 
wrapper - for example I flagged the getWriter() call. Before setting 
the buffering in the page directive, getWriter() was called after the 
jsp was processed. Once I set buffer="none" is was called early in the 
jsp. However, nothing was written o the writer (more debugging to 
track that).

Any clues?
--
Mike Douglass   [EMAIL PROTECTED]
Senior Systems Programmer
Communication & Collaboration Technologies  518 276 6780(voice) 2809
(fax)
Rensselaer Polytechnic Institute 110 8th Street, Troy, NY 12180
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Database parameters missing.

2005-02-23 Thread superman
Hi,

I using Tomcat 5.5.7 and jetspeed on jdk 1.5 on a windows xp platform. I'm
running hsql by using the command "maven start.production.server" then in
another window I run "maven quickStart".  Except when I deploy the
jetspeed binary.  In this case I reinstall Tomcat then copy the binary
folders over to the appropriate directories under Tomcat and I get the
same errors.

What is not configured properly?  I understand that I may have
misconfigured something with the source build but the binary I imagined
would work.

I appreciate any insights,

Chris


I'm getting the errors while accessing jetspeed at
http://localhost:8080/jetspeed.

With the source build, I had to change the build.properties paths to use
\\ instead of / to satisfy the windows environment.
I had to modify 4 files during the source build to accomodate "enum" since
it is a reserved word in jdk 1.5.

After these adjustments the source compiles and deploys as planned.  But
when I type http://localhost:8080/jetspeed I get the following error
whether I deploy the source build or the binary.

[org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl] ERROR:
SQLException thrown while trying to get Connection from Datasource
(java:comp/env/jdbc/jetspeed)
Cannot create JDBC driver of class '' for connect URL 'null'
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver
of class '' for connect URL 'null'
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.newConnectionFromDataSource(ConnectionFactoryAbstractImpl.java:204)
at
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.lookupConnection(ConnectionFactoryAbstractImpl.java:112)
at
org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.getConnection(ConnectionManagerImpl.java:105)
at
org.springframework.orm.ojb.PersistenceBrokerTransactionManager.doBegin(PersistenceBrokerTransactionManager.java:187)
at
org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:269)
at
org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:201)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:49)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152)
at $Proxy7.createNode(Unknown Source)
at
org.apache.jetspeed.prefs.impl.PreferencesImpl.(PreferencesImpl.java:96)
at
org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl.init(PreferencesFactoryImpl.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1087)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1061)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:287)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:205)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:136)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:236)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:284)
at
org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:114)
at
org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:96)
at
org.apache.jetspeed.components.SpringComponentManager.(SpringComponentManager.java:44)
at
org.apache.jetspeed.engine.SpringEngine.initComponents(SpringEngine.java:108)
at 
org.apache.jetspeed.engine.AbstractEngine.init(AbstractEngine.java:135)
at org.apache.jetspeed.Jetspeed.createEngine(Jetspeed.java:64)
at 
org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java

Creating Roles in Jetspeed2

2005-02-23 Thread Z B
Hi,
Somehow I've configured Jetspeed2 to work with Tomcat5.0 and Oracle. I was 
also able to login.

Please bear with me as I'm a newbie. I logged in with admin/admin and tried 
creating roles through Role Management tab, but was unable to create it. It 
does not show me the role that I've created in the tree. I've also checked 
the database, but did not find any entries.

If someone has also experienced the same thing, please let me know if you've 
found the solution to it.

Many thanks,
ZB
_
Want to block unwanted pop-ups? Download the free MSN Toolbar now!  
http://toolbar.msn.co.uk/

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


regarding roadmaps

2005-02-23 Thread Siddharth Chhabra
hi
In my current company we are currently evaluating
portal products and Jetspeed appears to be the most
ambitious and cost effective project out ther(when we
see all the possible things it intends to support out
of the  box).

But we need to have our portal out sometime by the end
of this year and out managements concerns is whether
jetspeed 2 will have a release version out by that
time.
The roadmaps on the site have no dates next to them.

Could any of the senior/involved developers let us
know the timeframe for the final release ??
This would help us in pitching Jetspeed 2 against the
other products.

-Siddharth



Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

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



Re: getting started

2005-02-23 Thread Bernhard Bauer
hi amit!
i now use the build.properties file which comes with the .zip file! now it 
works... :-)
it was the missing DB configuration section...

thank you very much,
Bernhard
- Original Message - 
From: "Shah Amit" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, February 23, 2005 3:06 PM
Subject: Re: getting started


Hi Bernhard,
The build file that you showed earlier on this thread, is that the 
complete build file that you have? I just happened to notice that it is 
missing the entire DB configuration section. I would suggest take the same 
build file that comes with the distribution and just copy it to your home 
directory and rename it, and change the paths. This has always worked for 
me.

Let me know if you need any help ;)
Cheers,
Amit
Original Message Follows
From: "Bernhard" <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" 
To: "Jetspeed Users List" 
Subject: Re: getting started
Date: Wed, 23 Feb 2005 10:53:02 +0100

no, i didn't so... the filename is build.properties...
what i don't understand is that also if i remove the build.properties from 
my user home directory, the maven build process is successful... (anyway - 
same error in the browser)...

did you use the build.properties file delivered in the .zip file? i 
created my own, like it is told in the getting started manual... maybe i 
give it a try and use the delivered file (changing the name from 
build.properties.sampe to build.properties ;-)

amit - thank you for attention to my problems,
i'll let you know if i'm successful!
bernhard
- Original Message - From: "Shah Amit" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, February 22, 2005 9:48 PM
Subject: Re: getting started

Did you rename your build.properties.sample file to build.properties ??? I 
was rebuilding jetspeed on a machine and just tumbled upon the same 
problem so  I dont know if you already got pass this, so just thought 
should let you know.

Amit
Original Message Follows
From: "Bernhard Bauer" <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" 
To: "Jetspeed Users List" 
Subject: Re: getting started
Date: Tue, 22 Feb 2005 08:49:33 +0100
my build.properties file looks like this:
# jetspeed 2 home required for build
org.apache.jetspeed.project.home = e:/jetspeed-2.0
# jetspeed required properties
org.apache.jetspeed.server.home = e:/Jakarta/Tomcat 5.0
org.apache.jetspeed.catalina.version.major = 5
org.apache.jetspeed.server.shared =
${org.apache.jetspeed.server.home}/shared/lib
org.apache.jetspeed.deploy.war.dir =
${org.apache.jetspeed.server.home}/webapps
org.apache.jetspeed.services.autodeployment.user = j2deployer
org.apache.jetspeed.services.autodeployment.password = j2deployer
btw - the error i get in the browser is: HTTP Status 503 - Servlet 
jetspeed is currently unavailable

- Original Message - From: "Shah Amit" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, February 22, 2005 1:56 AM
Subject: RE: getting started

Can you show your build.properties file ... I think you might not have 
set the proper paths on the build.properties file.

Also note that the slashes are all forward slash even though it is 
windows. It has biten lot of people including me ;)

C:/Documentsx/and not C:\Documentsx\
Goodluck,
Amit
Original Message Follows
From: "Bernhard" <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" 
To: "j2 mailing list" 
Subject: getting started
Date: Tue, 22 Feb 2005 00:07:46 +0100
hi all!
has somebody a detailed installation instruction for jetspeed 2?
i use  windows xp
 -tomcat 5.0.28
 -maven 1.0.2
 -java 1.4.2_03
i tried to follow the getting started instruction on the apache homepage 
but
it doesn't work...
after following all steps, and trying to start jetspeed (in a browser), i 
get a message: http error ?404? - servlet not available!
does someone know what to do?

i installed the components the following way:
firstly - java,
then - tomcat,
at last - maven
then i created the build.properties file and placed it under C:\Document 
and Settings\User

first question:
when i enter the "maven start.test.server" command - i get a message: 
'server.properties not found, using command line or default properties'
but the hsqldb server is running...
is this normal behavior?

- maven allClean allBuild seems to work fine;
when i stop the test.server and enter "maven.start.production.server" 
into the
command prompt, i get the same 'server.properties not found,...' 
message...
but also production.server is running;

maven quickstart maybe doesn't what it should, it creates the jetspeed 
folder directly under the root directory - is there something wrong with 
my build properties?

ok, i copy the jetspeed folder (also tried it with the .war file) under 
the webapps directory; start up tomcat and enter the adress 
http://localhost:8080/jetspeed into my browser... - but the portal 
doesn't start - i only get the above described HTTP ERROR - servlet not 
available...

thank you all for your help,
greeting

Re: getting started

2005-02-23 Thread Shah Amit
Hi Bernhard,
The build file that you showed earlier on this thread, is that the complete 
build file that you have? I just happened to notice that it is missing the 
entire DB configuration section. I would suggest take the same build file 
that comes with the distribution and just copy it to your home directory and 
rename it, and change the paths. This has always worked for me.

Let me know if you need any help ;)
Cheers,
Amit
Original Message Follows
From: "Bernhard" <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" 
To: "Jetspeed Users List" 
Subject: Re: getting started
Date: Wed, 23 Feb 2005 10:53:02 +0100

no, i didn't so... the filename is build.properties...
what i don't understand is that also if i remove the build.properties from 
my user home directory, the maven build process is successful... (anyway - 
same error in the browser)...

did you use the build.properties file delivered in the .zip file? i created 
my own, like it is told in the getting started manual... maybe i give it a 
try and use the delivered file (changing the name from 
build.properties.sampe to build.properties ;-)

amit - thank you for attention to my problems,
i'll let you know if i'm successful!
bernhard
- Original Message - From: "Shah Amit" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, February 22, 2005 9:48 PM
Subject: Re: getting started

Did you rename your build.properties.sample file to build.properties ??? I 
was rebuilding jetspeed on a machine and just tumbled upon the same problem 
so  I dont know if you already got pass this, so just thought should 
let you know.

Amit
Original Message Follows
From: "Bernhard Bauer" <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" 
To: "Jetspeed Users List" 
Subject: Re: getting started
Date: Tue, 22 Feb 2005 08:49:33 +0100
my build.properties file looks like this:
# jetspeed 2 home required for build
org.apache.jetspeed.project.home = e:/jetspeed-2.0
# jetspeed required properties
org.apache.jetspeed.server.home = e:/Jakarta/Tomcat 5.0
org.apache.jetspeed.catalina.version.major = 5
org.apache.jetspeed.server.shared =
${org.apache.jetspeed.server.home}/shared/lib
org.apache.jetspeed.deploy.war.dir =
${org.apache.jetspeed.server.home}/webapps
org.apache.jetspeed.services.autodeployment.user = j2deployer
org.apache.jetspeed.services.autodeployment.password = j2deployer
btw - the error i get in the browser is: HTTP Status 503 - Servlet jetspeed 
is currently unavailable

- Original Message - From: "Shah Amit" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, February 22, 2005 1:56 AM
Subject: RE: getting started

Can you show your build.properties file ... I think you might not have set 
the proper paths on the build.properties file.

Also note that the slashes are all forward slash even though it is 
windows. It has biten lot of people including me ;)

C:/Documentsx/and not C:\Documentsx\
Goodluck,
Amit
Original Message Follows
From: "Bernhard" <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" 
To: "j2 mailing list" 
Subject: getting started
Date: Tue, 22 Feb 2005 00:07:46 +0100
hi all!
has somebody a detailed installation instruction for jetspeed 2?
i use  windows xp
 -tomcat 5.0.28
 -maven 1.0.2
 -java 1.4.2_03
i tried to follow the getting started instruction on the apache homepage 
but
it doesn't work...
after following all steps, and trying to start jetspeed (in a browser), i 
get a message: http error ?404? - servlet not available!
does someone know what to do?

i installed the components the following way:
firstly - java,
then - tomcat,
at last - maven
then i created the build.properties file and placed it under C:\Document 
and Settings\User

first question:
when i enter the "maven start.test.server" command - i get a message: 
'server.properties not found, using command line or default properties'
but the hsqldb server is running...
is this normal behavior?

- maven allClean allBuild seems to work fine;
when i stop the test.server and enter "maven.start.production.server" into 
the
command prompt, i get the same 'server.properties not found,...' 
message...
but also production.server is running;

maven quickstart maybe doesn't what it should, it creates the jetspeed 
folder directly under the root directory - is there something wrong with 
my build properties?

ok, i copy the jetspeed folder (also tried it with the .war file) under 
the webapps directory; start up tomcat and enter the adress 
http://localhost:8080/jetspeed into my browser... - but the portal doesn't 
start - i only get the above described HTTP ERROR - servlet not 
available...

thank you all for your help,
greetings, bernd

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


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

Re: getting started

2005-02-23 Thread Bernhard

no, i didn't so... the filename is build.properties...
what i don't understand is that also if i remove the build.properties from 
my user home directory, the maven build process is successful... (anyway - 
same error in the browser)...

did you use the build.properties file delivered in the .zip file? i created 
my own, like it is told in the getting started manual... maybe i give it a 
try and use the delivered file (changing the name from 
build.properties.sampe to build.properties ;-)

amit - thank you for attention to my problems,
i'll let you know if i'm successful!
bernhard
- Original Message - 
From: "Shah Amit" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, February 22, 2005 9:48 PM
Subject: Re: getting started


Did you rename your build.properties.sample file to build.properties ??? I 
was rebuilding jetspeed on a machine and just tumbled upon the same 
problem so  I dont know if you already got pass this, so just thought 
should let you know.

Amit
Original Message Follows
From: "Bernhard Bauer" <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" 
To: "Jetspeed Users List" 
Subject: Re: getting started
Date: Tue, 22 Feb 2005 08:49:33 +0100
my build.properties file looks like this:
# jetspeed 2 home required for build
org.apache.jetspeed.project.home = e:/jetspeed-2.0
# jetspeed required properties
org.apache.jetspeed.server.home = e:/Jakarta/Tomcat 5.0
org.apache.jetspeed.catalina.version.major = 5
org.apache.jetspeed.server.shared =
${org.apache.jetspeed.server.home}/shared/lib
org.apache.jetspeed.deploy.war.dir =
${org.apache.jetspeed.server.home}/webapps
org.apache.jetspeed.services.autodeployment.user = j2deployer
org.apache.jetspeed.services.autodeployment.password = j2deployer
btw - the error i get in the browser is: HTTP Status 503 - Servlet 
jetspeed is currently unavailable

- Original Message - From: "Shah Amit" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, February 22, 2005 1:56 AM
Subject: RE: getting started

Can you show your build.properties file ... I think you might not have set 
the proper paths on the build.properties file.

Also note that the slashes are all forward slash even though it is 
windows. It has biten lot of people including me ;)

C:/Documentsx/and not C:\Documentsx\
Goodluck,
Amit
Original Message Follows
From: "Bernhard" <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" 
To: "j2 mailing list" 
Subject: getting started
Date: Tue, 22 Feb 2005 00:07:46 +0100
hi all!
has somebody a detailed installation instruction for jetspeed 2?
i use  windows xp
 -tomcat 5.0.28
 -maven 1.0.2
 -java 1.4.2_03
i tried to follow the getting started instruction on the apache homepage 
but
it doesn't work...
after following all steps, and trying to start jetspeed (in a browser), i 
get a message: http error ?404? - servlet not available!
does someone know what to do?

i installed the components the following way:
firstly - java,
then - tomcat,
at last - maven
then i created the build.properties file and placed it under C:\Document 
and Settings\User

first question:
when i enter the "maven start.test.server" command - i get a message: 
'server.properties not found, using command line or default properties'
but the hsqldb server is running...
is this normal behavior?

- maven allClean allBuild seems to work fine;
when i stop the test.server and enter "maven.start.production.server" into 
the
command prompt, i get the same 'server.properties not found,...' 
message...
but also production.server is running;

maven quickstart maybe doesn't what it should, it creates the jetspeed 
folder directly under the root directory - is there something wrong with 
my build properties?

ok, i copy the jetspeed folder (also tried it with the .war file) under 
the webapps directory; start up tomcat and enter the adress 
http://localhost:8080/jetspeed into my browser... - but the portal doesn't 
start - i only get the above described HTTP ERROR - servlet not 
available...

thank you all for your help,
greetings, bernd

-
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]

-
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]


File upload using commons fileuploader not working

2005-02-23 Thread nik gonzalez
Hello,

I ran the following code in my portlet.

PortletFileUpload dfu = new PortletFileUpload();
//get the FileItems
List fileItems = dfu.parseRequest(request);
Iterator iter = fileItems.iterator();
while (iter.hasNext())
{
FileItem item = (FileItem) iter.next();
if (item.isFormField())
{
//pass along to render request
String fieldName = item.getFieldName();
String value = item.getString();
response.setRenderParameter(fieldName, value);
}
else
{
//write the uploaded file to a new location
String fieldName = item.getFieldName();
String fileName = item.getName();
String contentType = item.getContentType();
long size = item.getSize();
response.setRenderParameter("size",
Long.toString(size));
response.setRenderParameter("contentType", contentType);
String tempDir = System.getProperty("java.io.tmpdir");
System.out.println("tempDir: "+tempDir);
String serverFileName = fieldName + "-portlet.tmp";
File serverFile = new File(tempDir, serverFileName);
item.write(serverFile);
response.setRenderParameter("serverFileName",
serverFileName);
getPortletContext().log(
"serverFileName : " + tempDir + "/" +
serverFileName);
}
}

Once i submit the multipart form, it does not enter the while loop meaning
that the iterator is empty.  Is this a bug?

I attached the rest of the source code. got this from one of the messages in
this mailing list.

Thanks,
Nik






--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 2/22/2005


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

jsp tag issues on fusion

2005-02-23 Thread nik gonzalez
Hi,

Deployed a JSR168 portlet in Jetspeed fusion and encountered some issues.

First, calling pageContext.getSession() returns null.
pageContext.getRequest().getSession() returned a value but this makes
deploying existing portlets that already use pageContext.getSession
problematic.

Secondly, I inserted some objects as attributes in the request object.  When
i called request.getAttributeNames() in the tag class, I found that the
attribute names were appended with "Pluto_22_".  Obviously, this is a
problem since i inserted an object with a certain key but it seems that the
container is changing the key names that i have indicated.

Is there some way to fix these?

Thanks in advance.
Nik Gonzalez


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 2/22/2005



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



Re: [J2] Passing attributes from a portlet to a servlet...

2005-02-23 Thread Luc Fouin
hello
Andrew Hill a écrit :
Firstly you need to explicitly state that its Session Application Scope:
PortletSession.setAttribute("listImage", m, 
PortletSession.APPLICATION_SCOPE);
i've just tried this, and it didn't work...
Secondly check that your actually getting the same session in your 
servlet. If you dont see anything in the attributes it would indicate 
that its probably a different session, as even the PORTLET_SCOPE 
attributes would show up with some namespacing applied.
i don't really understand what you mean...
How are you 'calling' the servlet? Is it in the same webapp?
actually, my servlet is in the same webapp, and is generating a png 
image, so it's called by an  markup written in my portlet...

Luc
--
Luc FOUIN - Stagiaire Aptiwan
14 rue Niepce
75014 Paris
Tél : 06 77 95 17 24
Mél : [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]