Re: http://wiki.apache.org/portals/Jetspeed2 seems to be down

2005-02-28 Thread Andreas Ernst
Andreas Ernst schrieb:
Hi,
http://wiki.apache.org/portals/Jetspeed2 seems to be down?!?
Andreas

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


Problem with - Create user portlet prefs_property_key table

2005-02-28 Thread Shah Amit
Hi all,
I have found following -
I created a user with the create user portlet. Now I added user.name.given 
and user.name.family properties to the user. Now I understand that the 
values for these properties go to - prefs_property_value table. But the keys 
(user.name.given and user.name.family) are added to  prefs_property_key 
table too. So in the prefs_property_key table I have two entries for each of 
above. (Because there is already one pair for the admin user). I know that 
the UI does not let you choose these properties from like a dropdown, or 
create new properties. To me it logically makes sense that there should only 
be one user.name.given and user.name.family entries in the 
prefs_property_key table, and then multiple values in the value table.

I dont know if this is a problem, or I am misunderstanding something.
Thanks,
Amit

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


Re: using MySQL with J2 - setup problem

2005-02-28 Thread Scott T. Weaver
IIRC, quickStart does all the copying/DB ops, not allBuild.  allBuild 
just basically builds J2 sans any deployment.

Regrads,
Marina wrote:
ooh, I feel so bad... :)
I knew it was something very stupid - I did not run
the 'maven quickStart'. For some reason I thought it
was intended for the HSQLDB only...
Sorry for wasting so much of your time!
Thanks, Randy,
Marina
--- [EMAIL PROTECTED] wrote:
 

Marina:
If your j2 DB is not setup, nothing will work
anyway, so we are back to
the failing maven build... you did use maven
quickStart, no?
Also, your DB URL probably needs to be
jdbc:mysql://127.0.0.1:3306/j2
or
jdbc:mysql://localhost/j2,
(mysql can be picky about IP usage and I am not sure
about the port you
specified).
Randy
   

Thanks, Randy :)
I modified jetspeed.xml file using the one from a
working HSQL J2M2 installation as an example and
copied it into the
TOMCAT_HOME/conf/Catalina/localhost dir.
I also copied a security.xml file from the HSQLDB
 

J2M2
   

installation and adjusted the docBase value.
Unfortunately, when I started Tomcat, I've got the
same error:
Caused by:
org.apache.jetspeed.prefs.PreferencesException:
 

Failed
   

to initialize prefs
 

api.org.springframework.transaction.CannotCreateTransactionException:
 

Could not create OJB transaction; nested exception
 

is
   

org.apache.ojb.broker.accesslayer.LookupException:
SQLException thrown while trying to get Connection
from Datasource (java:comp/env/jdbc/jetspeed) at
 

org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl.init(Preference
 

sFactoryImpl.java:70) at
 

sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
 

at
 

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 

...
And in the J2's log file:
2005-02-27 18:24:24
 

StandardContext[/jetspeed]StandardWrapper.Throwable
   

java.lang.NullPointerException
at
 

org.apache.jetspeed.velocity.JetspeedVelocityViewServlet.init(JetspeedVelocityViewServlet.java:137)
 

at
 

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044)
 

at
 

org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:876)
 

at
One thing that puzzles me (among others, of
 

course) is
   

that the 'j2' DB did not get populated while
 

'j2test'
   

did...
Here is my jetspeed.xml - lines that I changed:
   !-- HSQL dB username and password for dB
connections  --
   parameter
nameusername/name
valueadmin/value
   /parameter
   parameter
namepassword/name
valueadmin/value
   /parameter
   !-- Class name for HSQL JDBC driver --
   parameter
  namedriverClassName/name
  valueorg.gjt.mm.mysql.Driver/value
   /parameter
   !-- The JDBC connection url for connecting to
your HSQL dB.  --
   parameter
 nameurl/name
 valuejdbc:mysql://127.0.0.1:3306/value
   /parameter
 /ResourceParams
Thanks for looking into this!
Marina
--- [EMAIL PROTECTED] wrote:
 

Marina,
   

3. jetspeed.xml
there was no jetspeed.xml in the
=TOMCAT_HOME/conf/Catalina/localhost dir
The only jetspeed.xml files in the
 

J2-project-home
   

directory that I found were:
 

maven-plugin/target/classes/plugin-resources/jetspeed.xml
 

portal/src/resources/jetspeed.xml
Should I manually edit one of them and copy
 

into
   

TOMCAT_HOME/conf/Catalina/localhost dir ?
 

Since you manually copied the jetspeed.war into
webapps, I assume you will
need to do the same thing with the
portal/src/resources/jetspeed.xml file.
It is certainly simple enough to try!
   

Is not it supposed to be done by the maven
 

'allBuild'
   

goal?
 

Well, so is copying jetspeed.war into webapps! :)
Something is broken for
sure, but I am just interesting in seeing if you
   

can
   

get it to run at all
since you have taken it almost this far already.
Yes, we are in the weeds
at this point!
Randy

   

-
 

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]

 


--
Great minds discuss ideas. Average minds discuss events. Small minds discuss 
people.  - Admiral Hyman Rickover
***
*   Scott T. Weaver   *
* [EMAIL PROTECTED] *
* http://www.einnovation.com*
* 

HELP: Installing Portlet on J2

2005-02-28 Thread Rajesh Jain
Hi 

I am developing a RSS Portlet on JetSpeed. 

I used the RSS Demo for the base code, and 
created my custom Portlet. 

Next, I edited the portlet.xml
to add my portlets.

Build and Deployed the WAR file to Tomcat

I edited the RSS.psml and/or default.psml
to reference my portlet rss::Myportlet

I get a error saying cannot find the portlet
definition. 

I think my portlet is not getting registered
in the database - HSQL. 
I have the HSQL database running. I check 
the tables Portlet Applications , Portlets etc
and I cann't see my Portlet. 

I have also created a brand new Web Project
and my own PSML. It seems that my portlets
are not getting registered in the DAtabase. 

Please help, am I missing some step. 

Also where is the docs of J2, the Wiki/Web Site is 
sparse -- any help will be really useful. 

TIA

rajesh. 
 



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



Re: HELP: Installing Portlet on J2

2005-02-28 Thread Rajesh Jain
This is on JetSpeed 2 + Tomcat 4.x + HSQL. 

regards

--- Rajesh Jain [EMAIL PROTECTED] wrote:

 Hi 
 
 I am developing a RSS Portlet on JetSpeed. 
 
 I used the RSS Demo for the base code, and 
 created my custom Portlet. 
 
 Next, I edited the portlet.xml
 to add my portlets.
 
 Build and Deployed the WAR file to Tomcat
 
 I edited the RSS.psml and/or default.psml
 to reference my portlet rss::Myportlet
 
 I get a error saying cannot find the portlet
 definition. 
 
 I think my portlet is not getting registered
 in the database - HSQL. 
 I have the HSQL database running. I check 
 the tables Portlet Applications , Portlets etc
 and I cann't see my Portlet. 
 
 I have also created a brand new Web Project
 and my own PSML. It seems that my portlets
 are not getting registered in the DAtabase. 
 
 Please help, am I missing some step. 
 
 Also where is the docs of J2, the Wiki/Web Site is 
 sparse -- any help will be really useful. 
 
 TIA
 
 rajesh. 
  
 
 
 

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



Spring IOC with Jetspeed

2005-02-28 Thread Shah Amit
Hi all,
I want to use sprint framework IOC feature in my portal. Can I just go ahead 
and load the servlet like this in my web.xml  --

servlet
servlet-namecontext/servlet-name

servlet-classorg.springframework.web.context.ContextLoaderServlet/servlet-class
load-on-startup1/load-on-startup
/servlet


Or there can be some issues and I should not use it? I only know that 
jetspeed uses spring ioc feature so I was just concerned.

Thanks,
Amit

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


Struts Bridge/Freemarker Issue?

2005-02-28 Thread Marvin Malkowski Jr
We have been developing an application using FreeMarker and Struts  
within JetSpeed 2 latest CVS.

The first deployment of the portlet we see no issues at all and the  
pages render.  On the redeployment of the portlet, we see the following  
stacktrace with the portlet stating that is unavailable.

java.lang.ClassCastException
at  
freemarker.ext.servlet.FreemarkerServlet.createModel(FreemarkerServlet.j 
ava:482)
at  
freemarker.ext.servlet.FreemarkerServlet.process(FreemarkerServlet.java: 
419)
at  
freemarker.ext.servlet.FreemarkerServlet.doGet(FreemarkerServlet.java: 
364)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica 
tionFilterChain.java:252)
at  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt 
erChain.java:173)
at  
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc 
her.java:696)
at  
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp 
atcher.java:585)
at  
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat 
cher.java:510)
at  
org.apache.portals.bridges.struts.PortletServletRequestDispatcher.invoke 
(PortletServletRequestDispatcher.java:128)
at  
org.apache.portals.bridges.struts.PortletServletRequestDispatcher.forwar 
d(PortletServletRequestDispatcher.java:135)
at  
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav 
a:1056)
at  
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr 
ocessor.java:388)
at  
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: 
231)
at  
org.apache.portals.bridges.struts.PortletRequestProcessor.process(Portle 
tRequestProcessor.java:50)
at  
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at  
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

A restart of Tomcat clears this up but that makes development rather  
difficult. Any thoughts or recommendations?

-
Marvin Malkowski Jr.
-
[EMAIL PROTECTED]
http://www.linuxgames.com/
-
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Jetspeed-2: Drop support for Tomcat 4...? Please comment/vote!

2005-02-28 Thread Ate Douma
Dear developer team and users,
I've been working the last two weeks (off and on) on a new and much simplified 
deployment implementation
for Jetspeed-2 which builds mainly on official Servlet specification (2.3) 
features.
See JIRA: http://issues.apache.org/jira/browse/JS2-210
I expect that with this solution, deployment for Application servers other than 
Tomcat will become much easier
to implement and support.
I've got this working already beautifully on Tomcat 5 (5.0.28) and with a few 
nice side-effects too:
- the Jetspeed-2 context isn't fixed at /jetspeed any more
- multiple layout portlet applications can be deployed/used at the same time
  for both see:
http://issues.apache.org/jira/browse/JS2-182
http://issues.apache.org/jira/browse/JS2-172
- no more temporarily expanded wars in the java.io.tmpdir to workaround 
classloading issues
- much quicker startup
To be honest, my refactoring isn't finished yet and some features currently 
available will have to be
reimplemented (differently) like undeployment.
But
I can't get the redeployment working flawlessly under Tomcat 4.1 (tested with 
4.1.30 and 4.1.31).
Tomcat 4 won't always release certain jars in deployed applications when doing 
an undeployment or redeployment while this
is no problem with Tomcat 5.0.
Furthermore, auto redeployment of war files isn't available at all in Tomcat 4: 
you need to use the TomcatManager
to remove an existing application first (which sometimes fails) before a new 
application can tried to be deployed
again.
And then, There are other serious problems with Tomcat 4 too like no separate 
sessions for the portal and portlet applications
(which is a *serious* security breach and the foremost reason I myself won't 
use Tomcat 4 for Portals anymore).
The Pluto Team won't even use Tomcat 5.0 anymore and require Tomcat 5.5.7 or 
higher because Tomcat 5.0 also has a session bug
in which a Portlet Application and its Web application don't share the same 
session when invoked independently
(as they should according to the portlet specification).
Both the development of Tomcat 4 and Tomcat 5.0 has largely come to an end, 
except for really nasty bugs, but the onces I
described above aren't regarded as such by the Tomcat team :-(
Al in all, to me the question right now is: do we really, really need to keep 
supporting Tomcat 4.
For my deployment refactorings it poses a problem I don't have time left to 
further investigate (nor do I have any hope it
*can* be resolved). As long as we need to support Tomcat 4, I can't commit my 
changes...
I'd like to hear from both team members and users who absolutely require Tomcat 
4 support for Jetspeed-2 and why.
And, if there are no big objections, I'd like to vote on dropping Tomcat 4 
support!
Please comment,
Ate

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


Re: using jetspeed 1 plugin with fusion

2005-02-28 Thread Fabrice Dewasmes
here is the answer which is quite simple :
as you succeed in building JS with fusion build a zip dist (maven dist) 
and deploy it in jetspeed/distributions.

Fabrice
Le 21 févr. 05, à 17:26, Fabrice Dewasmes a écrit :
Hi all,
Has anyone tried to use jetspeed 1 plugin (for example jetspeed:deploy 
goal)
with jetspeed-fusion ?

I have compiled JS1 with fusion but when using jetspeed;deploy in my 
own projet
the resulting war seems not to be fusion aware.

Any idea ?
Thanks
Fabrice
--
-
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]