slightly off-topic, replacing tomcat default servlet with uri tojetspeed?

2002-12-19 Thread Eric White
I'm rummaging around on various websites trying to find the incantation
to replace the default Tomcat servlet with my portal.

I'd really like to try and avoid hacking /etc/tomcat4/server.xml or
/etc/tomcat4/web.xml if I can, but I've been unable to usurp the default
servlet that is mapped to "/" in /etc/tomcat4/web.xml.

I don't really want to change the docbase because I still want access to
the Tomcat admin and manager apps (... and changing the docbase would
mean hacking those xml files as well).

I'm deploying my portal as a WAR, so would like to modify the web.xml
down inside of jetspeed.war so that it snags the default context...

... but then again, this as seemed to be the wrong week to stop
huffing...

any pointers to obvious URLs discussing this configuration are quite
welcome.

thanks




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: minimal psml for empty anon user page

2002-12-18 Thread Eric White
this works perfectly (got rid of the stack trace in the log).

thanks

On Wed, 2002-12-18 at 17:07, David Sean Taylor wrote:
> > -Original Message-
> > From: Eric White [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, December 18, 2002 2:10 PM
> > To: Jetspeed Users List
> > Subject: minimal psml for empty anon user page
> >
> >
> > I'm using the following PSML for the anon user because I don't want
> > anything displayed until the portal visitor logs in. However, this
> > (portlet) empty psml is generating java stack exceptions in my
> > jetspeed.log, so clearly I've not got this correct. Any suggestions are
> > welcome:
> >
> >
> >
> > 
> > http://xml.apache.org/jetspeed/2000/psml";>
> > 
> >   Default Jetspeed Page
> > 
> >
> >   
> >
> >   
> > 
> >   
> >
> > 
> >
> 
> Why don't you drop the control and controller?
> This works fine for me, and is how the customizer would write it out if you
> deleted all portlets and tabs:
> 
> 
> http://xml.apache.org/jetspeed/2000/psml";>
> 
>   Default Jetspeed Page
> 
> 
> 
> remove this:
> 
>   
> 
>   
> 
>   
> 
> David Sean Taylor
> Bluesunrise.com
> [EMAIL PROTECTED]
> +01 (707) 773 4646
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




RE: minimal psml for empty anon user page

2002-12-18 Thread Eric White
sorry, I should have noted the platform:

Jetspeed 1.4b3 (from the CVS tag) on Linux, against a MySQL backend

On Wed, 2002-12-18 at 16:17, David Sean Taylor wrote:
> 
> > -Original Message-
> > From: Eric White [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, December 18, 2002 2:10 PM
> > To: Jetspeed Users List
> > Subject: minimal psml for empty anon user page
> >
> >
> > I'm using the following PSML for the anon user because I don't want
> > anything displayed until the portal visitor logs in. However, this
> > (portlet) empty psml is generating java stack exceptions in my
> > jetspeed.log, so clearly I've not got this correct. Any suggestions are
> > welcome:
> >
> >
> >
> > 
> > http://xml.apache.org/jetspeed/2000/psml";>
> > 
> >   Default Jetspeed Page
> > 
> >
> >   
> >
> >   
> > 
> >   
> >
> > 
> >
> You don't have any portlets defined.
> But still that should be ok. Im sure I tested that scenario not too long
> ago.
> (We obviously need more Cactus unit tests)
> 
> > Exception:  java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
> 
> I haven't seen that error in a long time.
> What version are you using?
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




minimal psml for empty anon user page

2002-12-18 Thread Eric White
I'm using the following PSML for the anon user because I don't want
anything displayed until the portal visitor logs in. However, this
(portlet) empty psml is generating java stack exceptions in my
jetspeed.log, so clearly I've not got this correct. Any suggestions are
welcome:




http://xml.apache.org/jetspeed/2000/psml";>

  Default Jetspeed Page


  

  

  




and it's generating these errors in the log:

[Wed Dec 18 21:25:25 GMT 2002] -- INFO -- RegistryService: Failed to
retrieve 0 from Portlet
[Wed Dec 18 21:25:25 GMT 2002] -- DEBUG -- User "anon" is authorized to
portlet set 100
[Wed Dec 18 21:25:25 GMT 2002] -- ERROR -- 
Exception:  java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
Stack Trace follows:
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Vector.java:427)
at
org.apache.jetspeed.portal.BasePortletSet.getPortletAt(BasePortletSet.java:199)
at
org.apache.jetspeed.portal.controllers.VelocityPanedPortletController.retrievePaneIDFromSession(VelocityPanedPortletController.java:265)
at
org.apache.jetspeed.portal.controllers.VelocityPanedPortletController.retrievePaneID(VelocityPanedPortletController.java:228)
at
org.apache.jetspeed.modules.actions.controllers.PanedControllerAction.buildNormalContext(PanedControllerAction.java:122)
at
org.apache.jetspeed.modules.actions.controllers.VelocityControllerAction.doPerform(VelocityControllerAction.java:157)
at
org.apache.turbine.modules.actions.VelocityAction.doPerform(VelocityAction.java:84)
at
org.apache.jetspeed.modules.actions.controllers.VelocityControllerAction.perform(VelocityCon


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: cache misses killing me, help with manually editing user table

2002-12-17 Thread Eric White
I've pared down the psml for the admin user (which is hanging, now) to
just the following and am still seeing a cache miss and the browser
hangs:


  


  Default Jetspeed Admin page



  
  



  Content






  


and in the log I see:


[Tue Dec 17 22:54:19 CST 2002] -- INFO -- cache miss, object expired:
207822763user/admin/html/default.psml/321


and the browser is hung. No other indication of what's wrong.

I'm wondering if it's my use of MySQL. In particular, I'm using the
mysql-connector-java-2.0.14.jar driver, not the driver that I've seen
referenced in other Jetspeed docs.  To my understanding the driver I'm
using is the latest production release.

Could this be the source of my problems?

On Tue, 2002-12-17 at 11:52, David Sean Taylor wrote:
> > -Original Message-
> > From: Eric White [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, December 17, 2002 9:50 AM
> > To: Jetspeed Users List
> > Subject: RE: cache misses killing me, help with manually editing user
> > table
> >
> >
> > no joy, same behavior.
> >
> > Is there a backdoor way I can add Admin authority to an existing user
> > directly in the database?
> >
> 
> just use the security api (with java) to assign the role
> Or create a PSML page that only has the user browser
> 
> > while I need to track down the source of these lockups, I also need to
> > give myself some protection so I don't lose Admin capabilities with this
> > portal.
> >
> Im interesting in finding out which portlet is causing this problem.
> I suggest you start removing portlets (manually) until you find the problem
> portlet.
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




RE: cache misses killing me, help with manually editing user table

2002-12-17 Thread Eric White
no joy, same behavior.

Is there a backdoor way I can add Admin authority to an existing user
directly in the database?

while I need to track down the source of these lockups, I also need to
give myself some protection so I don't lose Admin capabilities with this
portal.

On Tue, 2002-12-17 at 11:37, David Sean Taylor wrote:
> 
> 
> > -Original Message-----
> > From: Eric White [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, December 17, 2002 9:13 AM
> > To: Jetspeed Users List
> > Subject: RE: cache misses killing me, help with manually editing user
> > table
> > 
> > 
> > This is happening with the Admin user, immediately upon login, so it's
> > trying to load the default panes/portlets that the Admin user has in the
> > profile (I haven't changed that profile).
> > 
> > I'm only assuming the cache miss is my problem because that's all I see
> > in the log (I've got debug logging turned on). The cache miss is the
> > last entry in the log until I see 
> > 
> > [Tue Dec 17 17:10:56 CST 2002] -- DEBUG -- RegistryWatcher: Saving dirty
> > fragments.
> > [Tue Dec 17 17:10:56 CST 2002] -- DEBUG -- RegistryWatcher: Checking for
> > updated files.
> > 
> > which doesn't seem to be associated with the problem.
> 
> Try this in your JR.p:
> 
> services.Registry.refreshRate=0
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




RE: trying to modify the Login screen

2002-12-17 Thread Eric White
Unfortunately, that doesn't seem to work. I've set the following:

#
# Navigation Bar customization #
#
# Top navigation bar
#   topnav.enable- Display the left navigation bar
#   topnav.vm- VM file name for the top nav, in
templates/vm/navigations/html
#   topnav.logo.file - file name of the logo relative to
. Do not use with logo.url
#   topnav.logo.url  - URL of logo. Useful when using a common company
logo that is on a different server
#   topnav.user_login.enable - Display login prompts on navigation bar. 
If false then login nust be via login portlet
#   topnav.user_creation.enable - Display "create user" prompts on
navigation bar.  Requires topnav.user_login.enable=true
topnav.enable=true
topnav.vm=top.vm
topnav.logo.file=images/redist/logo.gif
topnav.logo.url=
topnav.user_login.enable=true
topnav.user_creation.enable=false

and am still seeing the Create User link on the login page.

On Tue, 2002-12-17 at 10:00, Aurelien Pernoud wrote:
> 
> In jetspeedresources.properties, change this :
> topnav.user_creation.enable=true to false
> 
> Aurelien Pernoud
> 
> Eric White a écrit :
> 
> > I'm using 1.4b3 on Linux, with MySQL backing the security and PSML
> > databases.  Also, I've set the default TemplateService to JSP.
> >
> > I'm trying to remove the "Create a New Account" link from the login
> > page.
> >
> > I've modified Login.jsp and renamed it to TestLogin.jsp and made a
> > corresponding change to
> >
> > template.login=TestLogin
> >
> > in TurbineResources.properties.
> >
> > No change.
> >
> > OK, so I made an identical change to Login.vm and renamed it
> > TestLogin.vm, thinking that this part of Jetspeed didn't support JSP.
> >
> > still no change.
> >
> > Any pointers?
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




RE: cache misses killing me, help with manually editing user table

2002-12-17 Thread Eric White
This is happening with the Admin user, immediately upon login, so it's
trying to load the default panes/portlets that the Admin user has in the
profile (I haven't changed that profile).

I'm only assuming the cache miss is my problem because that's all I see
in the log (I've got debug logging turned on). The cache miss is the
last entry in the log until I see 

[Tue Dec 17 17:10:56 CST 2002] -- DEBUG -- RegistryWatcher: Saving dirty
fragments.
[Tue Dec 17 17:10:56 CST 2002] -- DEBUG -- RegistryWatcher: Checking for
updated files.

which doesn't seem to be associated with the problem.

On Tue, 2002-12-17 at 11:01, David Sean Taylor wrote:
.
> >
> >
> Do you know which portlet it is?
> You can turn off expiration on the portlet.
> Its not clear to me why you think that the portlet expiring has anything to
> do with Jetspeed becoming 'unresponsive'.
> Is this always the last message logged?
> 
> [Tue Dec 17 16:47:58 CST 2002] -- INFO -- cache miss, object expired:
> 207822763user/admin/html/default.psml/321
> 
> 
> JetspeedPortletCacheService.java:
> 
> /**
>  * Retrieves a Cacheable object from the cache.
>  *
>  * @param handle the identifier of the object we wish to retrieve
>  * @return the cacehd object or null if not found
>  */
> public Cacheable getCacheable( String handle ) {
> 
> CachedObject obj = null;
> 
> try {
> obj = GlobalCache.getObject( handle );
> } catch (ObjectExpiredException e) {
> Log.info( "cache miss, object expired: " + handle );
> }
> 
> if ( obj == null ) {
> //Log.info( "cache miss: " + handle );
> return null;
> } /*else {
> Log.info( "cache hit: " + handle );
> } */
> 
> return (Cacheable)obj.getContents();
> 
> }
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cache misses killing me, help with manually editing user table

2002-12-17 Thread Eric White
so, cache misses are killing me right now. Yesterday, I thought they
were a result of running two Jetspeed portals inside the same Tomcat
instance.

I've got 1.4b3 running on Linux, with security and psml backed by
MySQL.  

However, I'm seeing cache misses in the log:



[Tue Dec 17 16:47:58 CST 2002] -- INFO -- cache miss, object expired:
207822763user/admin/html/default.psml/321


and, as the log indicates, this happens with my admin user and causes
Jetspeed to be non-responsive. Which means I can no longer log in to my
Admin user and administer anything.

First, I need to be able to add Admin privileges to other users (I can
still log in as me), so I can stay ahead of this problem.

I've seen other cache misses in the log, but they don't seem to cause a
hard stop.

Aside from fixing this nasty bug, does anybody have any ideas on how I
can flush the cache or fix cache misses by hand?

I've tried restarting tomcat and that fixes nothing. Either this code
bug is simply happening at the same time in execution, or the cache is
persisted in some way in the database...


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




trying to modify the Login screen

2002-12-17 Thread Eric White
I'm using 1.4b3 on Linux, with MySQL backing the security and PSML
databases.  Also, I've set the default TemplateService to JSP.

I'm trying to remove the "Create a New Account" link from the login
page.

I've modified Login.jsp and renamed it to TestLogin.jsp and made a
corresponding change to 

template.login=TestLogin

in TurbineResources.properties.

No change.

OK, so I made an identical change to Login.vm and renamed it
TestLogin.vm, thinking that this part of Jetspeed didn't support JSP.

still no change.

Any pointers?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: mysterious hangs with 1.4b2, bring in the cavalry

2002-12-16 Thread Eric White
Upon even closer inspection, the logged entry seems suspicious (of
course, it could be just a typo in the logging method). Notice the path

[Mon Dec 16 22:03:33 CST 2002] -- INFO -- cache miss, object expired: 
1247908142anon/en/html/default.psml/103

take note of the path -- it appears that the cache is looking for
...anon/en/html/default.psml/103

and the path to this item really is

...anon/html/en/default.psml/103

where the language specifier succeeds the media type (html).  Unless the
cache is indexed differently than items layed out on disk

On Mon, 2002-12-16 at 16:37, Eric White wrote:
> Well, I'm definately using JDK 1.4.1_01 and this puppy is consistently
> reproducible (and stopping me dead in my tracks).
> 
> On Mon, 2002-12-16 at 16:27, Glen Carl wrote:
> > I had a similar problem last Spring with Jetspeed-1.3a2 on linux. The 
> > INFO message from your log file has been reported before, and a search 
> > of "cache miss object expired" on the user email list brought up 19 
> > matches. I noticed the problem disapear on Linux when I moved to 
> > JDK-1.4. The big mystery is that I do not recall anyone ever posting a 
> > solution, just that they experienced the problem.
> > Glen
> > 
> > Eric White wrote:
> > > So, I've tracked this thing down to the cache miss statement showing up
> > > in the log:
> > > 
> > > [Mon Dec 16 22:03:33 CST 2002] -- INFO -- cache miss, object expired:
> > > 1247908142anon/en/html/default.psml/103
> > > 
> > > 
> > > this seems to be the crux of the problem. I can run two portals
> > > side-by-side in the browser, one succeeds and the other hangs. The
> > > succeeding portal merrily trips beyond in its log, as opposed to the
> > > failing portal, which has this cache miss and hangs.
> > > 
> > > I'm running a single Tomcat 4.1.12 standalone with multiple portal war
> > > files deployed under it. Each portal has it's on DBPSML and Security DB
> > > in MYSQL, so I don't think there is a db conflict.
> > > 
> > > Is there some restriction on running a single portal per Tomcat
> > > installation?
> > > 
> > > ... I could really use some help here.
> > > 
> > > On Mon, 2002-12-16 at 14:18, Eric White wrote:
> > > 
> > >>I've just pulled the last hair from my head ... please help me avoid
> > >>further self-mutilation.
> > >>
> > >>I'm using 1.4b2 on linux under Tomcat 4.1.12 -- I pulled those sources
> > >>from CVS using the 1.4b2 tag.
> > >>
> > >>I've been able to set up several portals and have configured them to use
> > >>MySQL as the auth/auth DB, as well as the PSML DB.  On 2 of my 3
> > >>portals, everything is working great.
> > >>
> > >>On the 3rd portal, I've got mysterious hanging that I can't seem to
> > >>debug from log files.  I'm including the pertinent tail from
> > >>jetspeed.log below in hopes that somebody can point me in the right
> > >>direction.
> > >>
> > >>This (misbehaving) portal came up both times I initially
> > >>installed/configured it and run quite well -- I was able to administer
> > >>remotely, etc.
> > >>
> > >>However, seemingly overnight, it has lost it's mind and hitting the main
> > >>portal (the anon page) causes top_default.jsp and left.jsp to be
> > >>displayed but the portal area and bottom.jsp are not displayed and the
> > >>browser simply hangs (no time out).
> > >>
> > >>I'm looking for help/pointers about how I can debug this puppy.
> > >>
> > >>thanks
> > >>
> > >>[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- Number of Cookies 2
> > >>[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- Adding
> > >>jsessionid=CFC7C4421C7E4EF5F1ADD10DB0F76FE7
> > >>[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- Adding
> > >>jsessionid=F6AB2C7A5C3FCE3BBFECF98A1F950538
> > >>[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- CapabilityMap: User-agent:
> > >>Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 mapped
> > >>to
> > 
>>>mozillatext/html-text/xhtml-text/xml-HTML_3_2/HTML_4_0/HTML_JAVA/HTML_JAVA_JRE/HTML_JAVASCRIPT/HTML_TABLE/HTML_NESTED_TABLE/HTML_FORM/HTML_FRAME/HTML_IFRAME/HTML_IMAGE/HTML_CSS1/HTML_CSS2/HTML_CSSP/HTML_DOM_1/HTML_PLUGIN/HTTP_COOKIE/
> > >>[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- Profiler: fallback called
> > >>with: Ba

Re: mysterious hangs with 1.4b2, bring in the cavalry

2002-12-16 Thread Eric White
Well, I'm definately using JDK 1.4.1_01 and this puppy is consistently
reproducible (and stopping me dead in my tracks).

On Mon, 2002-12-16 at 16:27, Glen Carl wrote:
> I had a similar problem last Spring with Jetspeed-1.3a2 on linux. The 
> INFO message from your log file has been reported before, and a search 
> of "cache miss object expired" on the user email list brought up 19 
> matches. I noticed the problem disapear on Linux when I moved to 
> JDK-1.4. The big mystery is that I do not recall anyone ever posting a 
> solution, just that they experienced the problem.
> Glen
> 
> Eric White wrote:
> > So, I've tracked this thing down to the cache miss statement showing up
> > in the log:
> > 
> > [Mon Dec 16 22:03:33 CST 2002] -- INFO -- cache miss, object expired:
> > 1247908142anon/en/html/default.psml/103
> > 
> > 
> > this seems to be the crux of the problem. I can run two portals
> > side-by-side in the browser, one succeeds and the other hangs. The
> > succeeding portal merrily trips beyond in its log, as opposed to the
> > failing portal, which has this cache miss and hangs.
> > 
> > I'm running a single Tomcat 4.1.12 standalone with multiple portal war
> > files deployed under it. Each portal has it's on DBPSML and Security DB
> > in MYSQL, so I don't think there is a db conflict.
> > 
> > Is there some restriction on running a single portal per Tomcat
> > installation?
> > 
> > ... I could really use some help here.
> > 
> > On Mon, 2002-12-16 at 14:18, Eric White wrote:
> > 
> >>I've just pulled the last hair from my head ... please help me avoid
> >>further self-mutilation.
> >>
> >>I'm using 1.4b2 on linux under Tomcat 4.1.12 -- I pulled those sources
> >>from CVS using the 1.4b2 tag.
> >>
> >>I've been able to set up several portals and have configured them to use
> >>MySQL as the auth/auth DB, as well as the PSML DB.  On 2 of my 3
> >>portals, everything is working great.
> >>
> >>On the 3rd portal, I've got mysterious hanging that I can't seem to
> >>debug from log files.  I'm including the pertinent tail from
> >>jetspeed.log below in hopes that somebody can point me in the right
> >>direction.
> >>
> >>This (misbehaving) portal came up both times I initially
> >>installed/configured it and run quite well -- I was able to administer
> >>remotely, etc.
> >>
> >>However, seemingly overnight, it has lost it's mind and hitting the main
> >>portal (the anon page) causes top_default.jsp and left.jsp to be
> >>displayed but the portal area and bottom.jsp are not displayed and the
> >>browser simply hangs (no time out).
> >>
> >>I'm looking for help/pointers about how I can debug this puppy.
> >>
> >>thanks
> >>
> >>[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- Number of Cookies 2
> >>[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- Adding
> >>jsessionid=CFC7C4421C7E4EF5F1ADD10DB0F76FE7
> >>[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- Adding
> >>jsessionid=F6AB2C7A5C3FCE3BBFECF98A1F950538
> >>[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- CapabilityMap: User-agent:
> >>Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 mapped
> >>to
> 
>>>mozillatext/html-text/xhtml-text/xml-HTML_3_2/HTML_4_0/HTML_JAVA/HTML_JAVA_JRE/HTML_JAVASCRIPT/HTML_TABLE/HTML_NESTED_TABLE/HTML_FORM/HTML_FRAME/HTML_IFRAME/HTML_IMAGE/HTML_CSS1/HTML_CSS2/HTML_CSSP/HTML_DOM_1/HTML_PLUGIN/HTTP_COOKIE/
> >>[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- Profiler: fallback called
> >>with: BaseProfile[anon/en/US/html/default.psml]
> >>[Mon Dec 16 19:50:03 CST 2002] -- INFO -- Start Initializing service
> >>(late): PsmlManager
> >>[Mon Dec 16 19:50:03 CST 2002] -- INFO -- Finish Initializing service
> >>(late): PsmlManager
> >>[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- DatabasePsmlManagerService:
> >>Returning locator string:
> >>User:anon$Page:default.psml$MediaType:html$Country:US$Language:en
> >>[Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- DatabasePsmlManagerService:
> >>Returning locator string:
> >>User:anon$Page:default.psml$MediaType:html$Country:US$Language:en
> >>[Mon Dec 16 19:50:04 CST 2002] -- DEBUG --
> >>DatabasePsmlManagerService.refresh: no document found: profile:
> >>User:anon$Page:default.psml$MediaType:html$Country:US$Language:en
> >>[Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- DatabasePsmlManagerService:
>

Re: mysterious hangs with 1.4b2, bring in the cavalry

2002-12-16 Thread Eric White
So, I've tracked this thing down to the cache miss statement showing up
in the log:

[Mon Dec 16 22:03:33 CST 2002] -- INFO -- cache miss, object expired:
1247908142anon/en/html/default.psml/103


this seems to be the crux of the problem. I can run two portals
side-by-side in the browser, one succeeds and the other hangs. The
succeeding portal merrily trips beyond in its log, as opposed to the
failing portal, which has this cache miss and hangs.

I'm running a single Tomcat 4.1.12 standalone with multiple portal war
files deployed under it. Each portal has it's on DBPSML and Security DB
in MYSQL, so I don't think there is a db conflict.

Is there some restriction on running a single portal per Tomcat
installation?

... I could really use some help here.

On Mon, 2002-12-16 at 14:18, Eric White wrote:
> I've just pulled the last hair from my head ... please help me avoid
> further self-mutilation.
> 
> I'm using 1.4b2 on linux under Tomcat 4.1.12 -- I pulled those sources
> from CVS using the 1.4b2 tag.
> 
> I've been able to set up several portals and have configured them to use
> MySQL as the auth/auth DB, as well as the PSML DB.  On 2 of my 3
> portals, everything is working great.
> 
> On the 3rd portal, I've got mysterious hanging that I can't seem to
> debug from log files.  I'm including the pertinent tail from
> jetspeed.log below in hopes that somebody can point me in the right
> direction.
> 
> This (misbehaving) portal came up both times I initially
> installed/configured it and run quite well -- I was able to administer
> remotely, etc.
> 
> However, seemingly overnight, it has lost it's mind and hitting the main
> portal (the anon page) causes top_default.jsp and left.jsp to be
> displayed but the portal area and bottom.jsp are not displayed and the
> browser simply hangs (no time out).
> 
> I'm looking for help/pointers about how I can debug this puppy.
> 
> thanks
> 
> [Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- Number of Cookies 2
> [Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- Adding
> jsessionid=CFC7C4421C7E4EF5F1ADD10DB0F76FE7
> [Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- Adding
> jsessionid=F6AB2C7A5C3FCE3BBFECF98A1F950538
> [Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- CapabilityMap: User-agent:
> Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 mapped
> to
> 
>mozillatext/html-text/xhtml-text/xml-HTML_3_2/HTML_4_0/HTML_JAVA/HTML_JAVA_JRE/HTML_JAVASCRIPT/HTML_TABLE/HTML_NESTED_TABLE/HTML_FORM/HTML_FRAME/HTML_IFRAME/HTML_IMAGE/HTML_CSS1/HTML_CSS2/HTML_CSSP/HTML_DOM_1/HTML_PLUGIN/HTTP_COOKIE/
> [Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- Profiler: fallback called
> with: BaseProfile[anon/en/US/html/default.psml]
> [Mon Dec 16 19:50:03 CST 2002] -- INFO -- Start Initializing service
> (late): PsmlManager
> [Mon Dec 16 19:50:03 CST 2002] -- INFO -- Finish Initializing service
> (late): PsmlManager
> [Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- DatabasePsmlManagerService:
> Returning locator string:
> User:anon$Page:default.psml$MediaType:html$Country:US$Language:en
> [Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- DatabasePsmlManagerService:
> Returning locator string:
> User:anon$Page:default.psml$MediaType:html$Country:US$Language:en
> [Mon Dec 16 19:50:04 CST 2002] -- DEBUG --
> DatabasePsmlManagerService.refresh: no document found: profile:
> User:anon$Page:default.psml$MediaType:html$Country:US$Language:en
> [Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- DatabasePsmlManagerService:
> Returning locator string:
> User:anon$Page:default.psml$MediaType:html$Language:en
> [Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- JetspeedTemplatePage: Setting
> type to: text/html; charset=iso-8859-1
> [Mon Dec 16 19:50:04 CST 2002] -- INFO -- Start Initializing service
> (late): LocalizationService
> [Mon Dec 16 19:50:04 CST 2002] -- INFO -- Finish Initializing service
> (late): LocalizationService
> [Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- JetspeedTemplatePage:
> requested template = Home.jsp
> [Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- template exists:
> /var/tomcat4/webapps/tengo/WEB-INF/templates/jsp/screens/Home.jsp
> returning /Home.jsp
> [Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- JetspeedTemplatePage:
> calculated template = /Home.jsp
> [Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- template exists:
> /var/tomcat4/webapps/tengo/WEB-INF/templates/jsp/layouts/html/default.jsp returning 
>/html/default.jsp
> [Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- JetspeedTemplatePage:
> layoutTemplate is finally /html/default.jsp
> [Mon Dec 16 19:50:04 CST 2002] -- INFO -- JetspeedJspLayout: set
> response content type to text/html; charset=iso-8859-1
> [Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- template exists:
> /var/tomcat4/weba

mysterious hangs with 1.4b2, bring in the cavalry

2002-12-16 Thread Eric White
I've just pulled the last hair from my head ... please help me avoid
further self-mutilation.

I'm using 1.4b2 on linux under Tomcat 4.1.12 -- I pulled those sources
from CVS using the 1.4b2 tag.

I've been able to set up several portals and have configured them to use
MySQL as the auth/auth DB, as well as the PSML DB.  On 2 of my 3
portals, everything is working great.

On the 3rd portal, I've got mysterious hanging that I can't seem to
debug from log files.  I'm including the pertinent tail from
jetspeed.log below in hopes that somebody can point me in the right
direction.

This (misbehaving) portal came up both times I initially
installed/configured it and run quite well -- I was able to administer
remotely, etc.

However, seemingly overnight, it has lost it's mind and hitting the main
portal (the anon page) causes top_default.jsp and left.jsp to be
displayed but the portal area and bottom.jsp are not displayed and the
browser simply hangs (no time out).

I'm looking for help/pointers about how I can debug this puppy.

thanks

[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- Number of Cookies 2
[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- Adding
jsessionid=CFC7C4421C7E4EF5F1ADD10DB0F76FE7
[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- Adding
jsessionid=F6AB2C7A5C3FCE3BBFECF98A1F950538
[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- CapabilityMap: User-agent:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 mapped
to
mozillatext/html-text/xhtml-text/xml-HTML_3_2/HTML_4_0/HTML_JAVA/HTML_JAVA_JRE/HTML_JAVASCRIPT/HTML_TABLE/HTML_NESTED_TABLE/HTML_FORM/HTML_FRAME/HTML_IFRAME/HTML_IMAGE/HTML_CSS1/HTML_CSS2/HTML_CSSP/HTML_DOM_1/HTML_PLUGIN/HTTP_COOKIE/
[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- Profiler: fallback called
with: BaseProfile[anon/en/US/html/default.psml]
[Mon Dec 16 19:50:03 CST 2002] -- INFO -- Start Initializing service
(late): PsmlManager
[Mon Dec 16 19:50:03 CST 2002] -- INFO -- Finish Initializing service
(late): PsmlManager
[Mon Dec 16 19:50:03 CST 2002] -- DEBUG -- DatabasePsmlManagerService:
Returning locator string:
User:anon$Page:default.psml$MediaType:html$Country:US$Language:en
[Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- DatabasePsmlManagerService:
Returning locator string:
User:anon$Page:default.psml$MediaType:html$Country:US$Language:en
[Mon Dec 16 19:50:04 CST 2002] -- DEBUG --
DatabasePsmlManagerService.refresh: no document found: profile:
User:anon$Page:default.psml$MediaType:html$Country:US$Language:en
[Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- DatabasePsmlManagerService:
Returning locator string:
User:anon$Page:default.psml$MediaType:html$Language:en
[Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- JetspeedTemplatePage: Setting
type to: text/html; charset=iso-8859-1
[Mon Dec 16 19:50:04 CST 2002] -- INFO -- Start Initializing service
(late): LocalizationService
[Mon Dec 16 19:50:04 CST 2002] -- INFO -- Finish Initializing service
(late): LocalizationService
[Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- JetspeedTemplatePage:
requested template = Home.jsp
[Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- template exists:
/var/tomcat4/webapps/tengo/WEB-INF/templates/jsp/screens/Home.jsp
returning /Home.jsp
[Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- JetspeedTemplatePage:
calculated template = /Home.jsp
[Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- template exists:
/var/tomcat4/webapps/tengo/WEB-INF/templates/jsp/layouts/html/default.jsp returning 
/html/default.jsp
[Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- JetspeedTemplatePage:
layoutTemplate is finally /html/default.jsp
[Mon Dec 16 19:50:04 CST 2002] -- INFO -- JetspeedJspLayout: set
response content type to text/html; charset=iso-8859-1
[Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- template exists:
/var/tomcat4/webapps/tengo/WEB-INF/templates/jsp/screens/Home.jsp
returning /Home.jsp
[Mon Dec 16 19:50:04 CST 2002] -- INFO -- JetspeedJspLayout: set
'screenJSP' to: /WEB-INF/templates/jsp/screens/Home.jsp
[Mon Dec 16 19:50:04 CST 2002] -- INFO -- JetspeedJspLayout: forward
request to: /layouts/html/default.jsp
[Mon Dec 16 19:50:04 CST 2002] -- DEBUG -- template exists:
/var/tomcat4/webapps/tengo/WEB-INF/templates/jsp/navigations/html/top_default.jsp 
returning /html/top_default.jsp
[Mon Dec 16 19:50:05 CST 2002] -- DEBUG -- JetspeedRunDataService:
accessing rundata
org.apache.jetspeed.services.rundata.DefaultJetspeedRunData@7016ff for
thread: Thread[Thread-35,5,main]
[Mon Dec 16 19:50:05 CST 2002] -- INFO -- Start Initializing service
(late): GlobalCacheService
[Mon Dec 16 19:50:05 CST 2002] -- INFO -- Finish Initializing service
(late): GlobalCacheService
[Mon Dec 16 19:50:05 CST 2002] -- INFO -- cache miss, object expired:
1247908142anon/en/html/default.psml/103
[Mon Dec 16 19:50:25 CST 2002] -- DEBUG -- RegistryWatcher: Saving dirty
fragments.
[Mon Dec 16 19:50:25 CST 2002] -- DEBUG -- RegistryWatcher: Checking for
updated files.
[Mon Dec 16 19:50:50 CST 2002] -- DEBUG -- JetspeedRunDataService:
storing rundata
org.apache.jetspeed.services.rundata.Defaul

skipping the anon screen?

2002-12-15 Thread Eric White
I'd like to set up a portal that does not display an anonymous screen,
but forces the user to log in immediately.

In fact, I was thinking of handling the authentication outside of
Jetspeed at the Tomcat level (HTTP Authentication), but was wondering
how to pass those credentials in to Jetspeed.

Anybody already done this?

eric


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




1.4b2 binary release deployment errors

2002-12-13 Thread Eric White
I've pulled down the 1.4b2 binary release (of the source version) and
have deployed  it under Tomcat 4.1.12 and simply can't get the silly
thing to run, I keep seeing the following in the tomcat log file, any
help is greatly appreciated:



2002-12-13 21:13:47 HostConfig[localhost]: Expanding web application
archive jetspeed.war
2002-12-13 21:13:47 HostConfig[localhost] Exception while expanding web
application archive jetspeed.war
java.io.FileNotFoundException:
/var/tomcat4/webapps/jetspeed/META-INF/MANIFEST.MF (No such file or
directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:176)
at java.io.FileOutputStream.(FileOutputStream.java:131)
at org.apache.catalina.startup.HostConfig.expand(Unknown Source)
at org.apache.catalina.startup.HostConfig.expand(Unknown Source)
at org.apache.catalina.startup.HostConfig.deployWARs(Unknown Source)
at org.apache.catalina.startup.HostConfig.deployApps(Unknown Source)
at org.apache.catalina.startup.HostConfig.start(Unknown Source)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown
Source)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardHost.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardEngine.start(Unknown Source)
at org.apache.catalina.core.StandardService.start(Unknown Source)
at org.apache.catalina.core.StandardServer.start(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: explanation of how "build import" works?

2002-12-06 Thread Eric White
On Fri, 2002-12-06 at 14:57, David Sean Taylor wrote:
> >
> Hi Eric,
> 
> You should only need to run it once to get the initial files off the disk
> and into the db.
> 
> The steps are:
> 
> 1. change the PSML service properties
> 
> #
> services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.Cast
> orPsmlManagerService
> services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.db.D
> atabasePsmlManagerService
> 
> 2. run "ant import"
> 
> 3. you can then remove the file-based psml, since its now in the database
> 
> 

So, I guess this approach assumes any future changes I make to the PSML
files will be through the customizer? i.e., even if I wanted to make a
file-based change, I should use the customizer to import?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




explanation of how "build import" works?

2002-12-06 Thread Eric White
I've got the latest cvs bits and have jetspeed configured against a DB
for PSML storage.

I don't quite understand how "build import" works.

After I load the psml schema and do a "build import" I thought,
operationally, that I'd modify the psml files on disk (e.g.,
.../anon/html/default.psml) and then drop tables and rerun "build
import" to suck in the new psml, but that doesn't seem to be working.






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




property setting to encrypt pwds?

2002-12-06 Thread Eric White
I've got the latest cvs bits and have configured jetspeed to use mysql
for both user auth/auth (TURBINE_USER table) and PSML store
(JETSPEED_USER).

I've noticed that user pwds are stored in  the db as clear text and was
wondering if there is a setting to have turbine encrypt/decrypt these
pwds so they're not visible in the db.

Also, by extension, this same functionality would apply to use LDAP via
JNDI in the future (I've not followed the jetspeed LDAP trail too much,
I'm assuming the JNDI work I've seen is about using LDAP as a user
repository).

thanks in advance.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




jetspeed.properties customizations via the bluesunrise tutorial?

2002-12-05 Thread Eric White
I'm using 3Dec bits from cvs.

I've set up jetspeed to use JSP as the default scripting language

I have both user auth/auth and psml in a mysql database

At first, I'd made my nav and layout customizations directly into the
JSP scripts.

I've been reading the bluesunrise tutorial, which seems focus on
Velocity scripting.

Anyway, based on the bluesunrise tutorial, I made a couple changes in
jetspeedresources.properties to turn off the leftnav bar and change
newuser creation, e.g.

topnav.user_creation.enable=false
leftnav.enable=false

and then

stopped tomcat
rebuilt
redeployed
started tomcat

and saw no change in my portal screens.

Was this because:

1) I'm configured for JSP and not VM?
2) Somehow these properties feed PSML configuration and, since I've got
PSML in a database, I need to "build import" before such changes take
affect?
3) Something else, for which I have no clue?



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




turbine jsp errors after new user creation

2002-12-05 Thread Eric White
I working with a 3Dec CVS snapshot.

Jetspeed's up under Tomcat 4.1.12 on a Linux box and humming along.

Logging in as admin/jetspeed, I create a new user ewhite/ewhite. I log
out of Jetspeed and log in as ewhite/ewhite and get a Java stack dump in
the browser.

Upon examining Jetspeed's logs, I see the following and notice the log
message:

JetspeedJSPLayout: set 'screenJSP' to: null

which I'm thinking is the root cause of my problem, but I don't know how
I got there.  I've set JSP to be my default scripting language.

Any help is appreciated. thanks

[Wed Dec 04 14:09:19 CST 2002] -- INFO -- JLoginUser: Credentials
expired for user: ewhite
[Wed Dec 04 14:09:19 CST 2002] -- DEBUG -- Number of Cookies 1
[Wed Dec 04 14:09:19 CST 2002] -- DEBUG -- Adding
jsessionid=2A0281C928EA9A7DCF50AC36DA628920
[Wed Dec 04 14:09:19 CST 2002] -- DEBUG -- CapabilityMap: User-agent:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 mapped
to
mozillatext/html-text/xhtml-text/xml-HTML_3_2/HTML_4_0/HTML_JAVA/HTML_JAVA_JRE/HTML_JAVASCRIPT/HTML_TABLE/HTML_NESTED_TABLE/HTML_FORM/HTML_FRAME/HTML_IFRAME/HTML_IMAGE/HTML_CSS1/HTML_CSS2/HTML_CSSP/HTML_DOM_1/HTML_PLUGIN/HTTP_COOKIE/
[Wed Dec 04 14:09:19 CST 2002] -- DEBUG -- Profiler: fallback called
with: BaseProfile[anon/en/US/html/default.psml]
[Wed Dec 04 14:09:19 CST 2002] -- DEBUG -- DatabasePsmlManagerService:
Returning locator string:
User:anon$Page:default.psml$MediaType:html$Country:US$Language:en
[Wed Dec 04 14:09:19 CST 2002] -- DEBUG -- DatabasePsmlManagerService:
Returning locator string:
User:anon$Page:default.psml$MediaType:html$Country:US$Language:en
[Wed Dec 04 14:09:19 CST 2002] -- DEBUG --
DatabasePsmlManagerService.refresh: no document found: profile:
User:anon$Page:default.psml$MediaType:html$Country:US$Language:en
[Wed Dec 04 14:09:19 CST 2002] -- DEBUG -- DatabasePsmlManagerService:
Returning locator string:
User:anon$Page:default.psml$MediaType:html$Language:en
[Wed Dec 04 14:09:20 CST 2002] -- DEBUG -- JetspeedTemplatePage: Setting
type to: text/html; charset=iso-8859-1
[Wed Dec 04 14:09:20 CST 2002] -- DEBUG -- JetspeedTemplatePage:
requested template = ChangePassword.jsp
[Wed Dec 04 14:09:20 CST 2002] -- DEBUG -- JetspeedTemplatePage:
calculated template = null
[Wed Dec 04 14:09:20 CST 2002] -- DEBUG -- template exists:
/var/tomcat4/webapps/jetspeed/WEB-INF/templates/jsp/layouts/html/en/default.jsp 
returning /html/en/default.jsp
[Wed Dec 04 14:09:20 CST 2002] -- DEBUG -- JetspeedTemplatePage:
layoutTemplate is finally /html/en/default.jsp
[Wed Dec 04 14:09:20 CST 2002] -- INFO -- JetspeedJspLayout: set
response content type to text/html; charset=iso-8859-1
[Wed Dec 04 14:09:20 CST 2002] -- INFO -- JetspeedJspLayout: set
'screenJSP' to: null
[Wed Dec 04 14:09:20 CST 2002] -- INFO -- JetspeedJspLayout: forward
request to: /layouts/html/en/default.jsp
[Wed Dec 04 14:09:20 CST 2002] -- DEBUG -- template exists:
/var/tomcat4/webapps/jetspeed/WEB-INF/templates/jsp/navigations/html/en/top_default.jsp
 returning /html/en/top_default.jsp
[Wed Dec 04 14:09:20 CST 2002] -- DEBUG -- template exists:
/var/tomcat4/webapps/jetspeed/WEB-INF/templates/jsp/navigations/html/en/left.jsp 
returning /html/en/left.jsp
[Wed Dec 04 14:09:20 CST 2002] -- ERROR -- Turbine.handleException:
Error encountered processing a template:/layouts/html/en/default.jsp
[Wed Dec 04 14:09:20 CST 2002] -- ERROR -- 
Exception:  org.apache.turbine.util.TurbineException: Error encountered
processing a template:/layouts/html/en/default.jsp
Stack Trace follows:
org.apache.jasper.JasperException
at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown
Source)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(Unknown
Source)
at org.apache.catalina.core.ApplicationDispatcher.include(Unknown
Source)
at
org.apache.turbine.services.jsp.TurbineJspService.handleRequest(TurbineJspService.java:202)
rethrown as org.apache.turbine.util.TurbineException: Error encountered
processing a template:/layouts/html/en/default.jsp





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: trying to import psml to DB from file system

2002-12-04 Thread Eric White
OK, so I just figured this one out, the Java exception stack spewed to
the console after "build import" was misleading.

I needed to copy my MySQL JDBC driver jar file into a directory that the
build system knew about.

I'd had it in /webapps/WEB-INF/lib where it was dutifully providing
me access to MySQL tables for user access and the coffee database, but
build.xml doesn't list that directory in the it's classpath.

There *is* a property for the hsql.jar which points into that directory.

As a quick hack, I copied the MySQL JDBC JAR file into .../build/lib
and, presto, the import worked successfully (verified by doing a manual
query in MySQL).

FYI

On Wed, 2002-12-04 at 09:53, Eric White wrote:
> sorry, should have given more detail in the original post:
> 
> I'm using the CVS tips from midday on 12/3/02 and I've modified
> torque.properties to include my own torque.properties file as the first
> step, e.g. 
> 
> "include = my-torque.properties"
> 
> and the contents of my-torque.properties are:
> 
> #
> # Changing the default database backend
> #
> 
> ### MySQL
> torque.database.default.adapter=mysql
> torque.dsfactory.default.connection.driver = com.mysql.jdbc.Driver
> torque.dsfactory.default.connection.url =
> jdbc:mysql://localhost:3306/jetspeed
> torque.dsfactory.default.connection.user =  root
> 
> 
> I did *not* comment out all the hypersonic properties in
> torque.properties, assuming (ok I assume too much) that since I'd
> included my own properties file at the top of torque.properties anything
> that I'd specified would occlude properties of the same name that
> followed.
> 
> As I modify these properties files I'm trying to find the minimal set of
> changes to produce a customized portal implementation so I don't stomp
> all over my customizations up on each new release (or CVS sync) of
> Jetspeed.
> 
> On Tue, 2002-12-03 at 19:17, David Sean Taylor wrote:
> > 
> > 
> > David Sean Taylor
> > Enterprise Portal Architect
> > Bluesunrise.com
> > [EMAIL PROTECTED]
> > +01 (707) 773 4646
> > 
> > > -Original Message-
> > > From: Eric White [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, December 03, 2002 4:11 PM
> > > To: Jetspeed Users List
> > > Subject: trying to import psml to DB from file system
> > >
> > >
> > > subject line says it all.
> > 
> > :-) nice
> > 
> > > I *think* I've followed the instructions at
> > > http://jakarta.apache.org/jetspeed/site/psml_db.html but I'm seeing the
> > > following after doing a "./build.sh import"
> > >
> > > compile:
> > >
> > > import:
> > >  [java] * PSML Importer *
> > >  [java] Exception in thread "main" java.lang.Error: Error in
> > > BasePeer.initTableSchema(TURBINE_USER): There was no DataSourceFactory
> > > configured for the connection default
> > >  [java]   at
> > > org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.initCl
> > > ass(BaseTurbineUserPeer.java:146)
> > >  [java]   at
> > > org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer. > > t>(BaseTurbineUserPeer.java:125)
> > >  [java]   at
> > > org.apache.jetspeed.services.security.turbine.TurbineUserManagemen
> > > t.getUser(TurbineUserManagement.java:165)
> > >  [java]   at
> > > org.apache.jetspeed.services.JetspeedUserManagement.getUser(Jetspe
> > > edUserManagement.java:98)
> > >  [java]   at
> > > org.apache.jetspeed.services.JetspeedSecurity.getUser(JetspeedSecu
> > > rity.java:265)
> > >  [java]   at
> > > org.apache.jetspeed.services.psmlmanager.PsmlImporter.alreadyImpor
> > > ted(PsmlImporter.java:236)
> > >  [java]   at
> > > org.apache.jetspeed.services.psmlmanager.PsmlImporter.run(PsmlImpo
> > > rter.java:197)
> > >  [java]   at
> > > org.apache.jetspeed.services.psmlmanager.PsmlImporter.main(PsmlImp
> > > orter.java:179)
> > >  [java] Java Result: 1
> > >
> > >
> > >
> > > what config item have I missed?
> > 
> > First, what version are you using?
> > 
> > Look at the Torque.properties in webapp/WEB-INF/conf
> > 
> > Make sure all of the Hypersonic lines are commented out, and then:
> > 
> > torque.database.default.adapter=mysql
> > torque.dsfactory.default.connection.driver = org.gjt.mm.mysql.Driver
> > torque.dsfactory.default.connection.url =
> > jdbc:mysql://localhost:3306/jetspeed
> > torque.dsfactory.default.connection.user =  root
> > torque.dsfactory.default.connection.password =
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




RE: trying to import psml to DB from file system

2002-12-04 Thread Eric White
sorry, should have given more detail in the original post:

I'm using the CVS tips from midday on 12/3/02 and I've modified
torque.properties to include my own torque.properties file as the first
step, e.g. 

"include = my-torque.properties"

and the contents of my-torque.properties are:

#
# Changing the default database backend
#

### MySQL
torque.database.default.adapter=mysql
torque.dsfactory.default.connection.driver = com.mysql.jdbc.Driver
torque.dsfactory.default.connection.url =
jdbc:mysql://localhost:3306/jetspeed
torque.dsfactory.default.connection.user =  root


I did *not* comment out all the hypersonic properties in
torque.properties, assuming (ok I assume too much) that since I'd
included my own properties file at the top of torque.properties anything
that I'd specified would occlude properties of the same name that
followed.

As I modify these properties files I'm trying to find the minimal set of
changes to produce a customized portal implementation so I don't stomp
all over my customizations up on each new release (or CVS sync) of
Jetspeed.

On Tue, 2002-12-03 at 19:17, David Sean Taylor wrote:
> 
> 
> David Sean Taylor
> Enterprise Portal Architect
> Bluesunrise.com
> [EMAIL PROTECTED]
> +01 (707) 773 4646
> 
> > -Original Message-
> > From: Eric White [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, December 03, 2002 4:11 PM
> > To: Jetspeed Users List
> > Subject: trying to import psml to DB from file system
> >
> >
> > subject line says it all.
> 
> :-) nice
> 
> > I *think* I've followed the instructions at
> > http://jakarta.apache.org/jetspeed/site/psml_db.html but I'm seeing the
> > following after doing a "./build.sh import"
> >
> > compile:
> >
> > import:
> >  [java] * PSML Importer *
> >  [java] Exception in thread "main" java.lang.Error: Error in
> > BasePeer.initTableSchema(TURBINE_USER): There was no DataSourceFactory
> > configured for the connection default
> >  [java] at
> > org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.initCl
> > ass(BaseTurbineUserPeer.java:146)
> >  [java] at
> > org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer. > t>(BaseTurbineUserPeer.java:125)
> >  [java] at
> > org.apache.jetspeed.services.security.turbine.TurbineUserManagemen
> > t.getUser(TurbineUserManagement.java:165)
> >  [java] at
> > org.apache.jetspeed.services.JetspeedUserManagement.getUser(Jetspe
> > edUserManagement.java:98)
> >  [java] at
> > org.apache.jetspeed.services.JetspeedSecurity.getUser(JetspeedSecu
> > rity.java:265)
> >  [java] at
> > org.apache.jetspeed.services.psmlmanager.PsmlImporter.alreadyImpor
> > ted(PsmlImporter.java:236)
> >  [java] at
> > org.apache.jetspeed.services.psmlmanager.PsmlImporter.run(PsmlImpo
> > rter.java:197)
> >  [java] at
> > org.apache.jetspeed.services.psmlmanager.PsmlImporter.main(PsmlImp
> > orter.java:179)
> >  [java] Java Result: 1
> >
> >
> >
> > what config item have I missed?
> 
> First, what version are you using?
> 
> Look at the Torque.properties in webapp/WEB-INF/conf
> 
> Make sure all of the Hypersonic lines are commented out, and then:
> 
> torque.database.default.adapter=mysql
> torque.dsfactory.default.connection.driver = org.gjt.mm.mysql.Driver
> torque.dsfactory.default.connection.url =
> jdbc:mysql://localhost:3306/jetspeed
> torque.dsfactory.default.connection.user =  root
> torque.dsfactory.default.connection.password =
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




trying to import psml to DB from file system

2002-12-03 Thread Eric White
subject line says it all. I *think* I've followed the instructions at
http://jakarta.apache.org/jetspeed/site/psml_db.html but I'm seeing the
following after doing a "./build.sh import"

compile:

import:
 [java] * PSML Importer *
 [java] Exception in thread "main" java.lang.Error: Error in
BasePeer.initTableSchema(TURBINE_USER): There was no DataSourceFactory
configured for the connection default
 [java] at
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.initClass(BaseTurbineUserPeer.java:146)
 [java] at
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.(BaseTurbineUserPeer.java:125)
 [java] at
org.apache.jetspeed.services.security.turbine.TurbineUserManagement.getUser(TurbineUserManagement.java:165)
 [java] at
org.apache.jetspeed.services.JetspeedUserManagement.getUser(JetspeedUserManagement.java:98)
 [java] at
org.apache.jetspeed.services.JetspeedSecurity.getUser(JetspeedSecurity.java:265)
 [java] at
org.apache.jetspeed.services.psmlmanager.PsmlImporter.alreadyImported(PsmlImporter.java:236)
 [java] at
org.apache.jetspeed.services.psmlmanager.PsmlImporter.run(PsmlImporter.java:197)
 [java] at
org.apache.jetspeed.services.psmlmanager.PsmlImporter.main(PsmlImporter.java:179)
 [java] Java Result: 1



what config item have I missed?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




error log about missing default.jsp

2002-12-03 Thread Eric White
I've just synced to the latest CVS tips and have configured against a
MySQL DB for my user auth/auth.

I created a new user ("ewhite") successfully and verified that the user
ended up in the MySQL jetspeed.TURBINE_USER table.

I logged out of Jetspeed and logged back in using the new user account
and was greeted with a Java exception stack spewed into the browser
window.

I've verified that the /layouts/html/en/default.jsp file exists, so am
stumped by the log messages.

Checking the jetspeed.log file I see the following:



[Tue Dec 03 16:40:16 CST 2002] -- INFO -- JetspeedJspLayout: set
response content type to text/html; charset=iso-8859-1
[Tue Dec 03 16:40:16 CST 2002] -- INFO -- JetspeedJspLayout: set
'screenJSP' to: null
[Tue Dec 03 16:40:16 CST 2002] -- INFO -- JetspeedJspLayout: forward
request to: /layouts/html/en/default.jsp
[Tue Dec 03 16:40:16 CST 2002] -- DEBUG -- template exists:
/var/tomcat4/webapps/jetspeed/WEB-INF/templates/jsp/navigations/html/en/top_default.jsp
 returning /html/en/top_default.jsp
[Tue Dec 03 16:40:17 CST 2002] -- DEBUG -- template exists:
/var/tomcat4/webapps/jetspeed/WEB-INF/templates/jsp/navigations/html/en/left.jsp 
returning /html/en/left.jsp
[Tue Dec 03 16:40:17 CST 2002] -- ERROR -- Turbine.handleException:
Error encountered processing a template:/layouts/html/en/default.jsp
[Tue Dec 03 16:40:17 CST 2002] -- ERROR -- 
Exception:  org.apache.turbine.util.TurbineException: Error encountered
processing a template:/layouts/html/en/default.jsp
Stack Trace follows:
org.apache.jasper.JasperException
at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: dynamic pane population upon startup?

2002-11-27 Thread Eric White
Wow!  this is great info, thanks.

On Wed, 2002-11-27 at 03:41, Luta, Raphael (VUN) wrote:
> You have several way to tackle this depending on how transparent
> you want this to be and what kind of customization features you
> need:
> 
> - Easiest way:
>   Rewrite a PortalTopolkit implementation and overload the 
>   getSet(...) method to create your PortletSet dynamically.
>   Since you only have access to the PSML Portlets object 
>   in these methods you'll want to either extend the PSML
>   markup to code your cloning policy or use "system" parameters
>   for this purpose, ie parameters that start with "_", they
>   won't show up in the customizer.
> - A bit more complex:
>   In addition to the PortalToolkit implementation that you'll 
>   have to override in any case, you can also develop a new
>   DynamicPortletSet implementation of the PortletSet which
>   would responsible for the actual cloning process or even
>   would not hold a vector of Portlets as the default version
>   but would query a DB to generate it on the fly.
>   The main advantage of doing this is that you'll have access to
>   the Rundata context and thus your query may use context information.
> - Alternate:
>   Instead of your custom PortletSet implementation, you can write 
>   a custom PortletController that would use a "static" PortletSet with
>   cloning information to dynamically layout multiple cloned portlets.
>   The greatest advantage of this approach over the previous one is that
>   it's the controller responsability to build the page customization 
>   template, and thus you have full control on how you want to customize
>   your page.
> 
> Finally if you plan to dynamically react to user context, I'd recommend
> extending the BaseProfile and Profiler service to store your profiling
> information in the BaseProfile object based on User request + possible
> db connections.
> You'll be able to reuse your profile information when ever you have access
> to RunData and it guarantees separation of your profiling logic and the
> way you build this profiling information.
> 
> De : Eric White [mailto:[EMAIL PROTECTED]]
> > 
> > I'd like to define a single portlet then, upon startup, dynamically
> > populate a pane with several instances of the aforementioned portlet,
> > each driven with different configuration data (most likely 
> > driven from a
> > database).
> > 
> > Can anybody point me to reference material (or, better yet, example
> > code) for how to do this?
> > 
> > thanks
> > 
> > eric
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


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




RE: dynamic pane population upon startup?

2002-11-26 Thread Eric White
not exactly what I was looking for. I've got a customized DBBrowser
portlet working already (thanks to immense mysql config help from this
list).

I want to pre-populate a pane with an arbitrary number of portlets,
based on a database query -- not seed a pane with two portlets that can
do database queries.



On Tue, 2002-11-26 at 16:37, David Sean Taylor wrote:
> Take a look at the Coffee db portlet in the demo-portlets.xreg:
> 
>  parent="DatabaseBrowserPortlet" application="false">
> 
> DatabaseBrowserTest
> Simple Test Database Browser Portlet
> Example
> 
>  hidden="false"/>
>  value="database-browser-customize" hidden="false"/>
>  value="portlets.browser.DatabaseBrowserAction" hidden="false"/>
> 
> 
> 
> 
> 
> database
> 
> 
> 
> and then place a couple like these on a psml page with the customizer
> 
> 
> 
> http://xml.apache.org/jetspeed/2000/psml";>
> 
> 
> Welcome Page
>     
> 
> 
> 
> 
> 
> Basic Tutorials
> 
> 
> 
> 
> 
> ...
> 
> 
> 
> 
> > -Original Message-
> > From: Eric White [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 26, 2002 1:59 PM
> > To: Jetspeed Users List
> > Subject: dynamic pane population upon startup?
> >
> >
> > I'd like to define a single portlet then, upon startup, dynamically
> > populate a pane with several instances of the aforementioned portlet,
> > each driven with different configuration data (most likely driven from a
> > database).
> >
> > Can anybody point me to reference material (or, better yet, example
> > code) for how to do this?
> >
> > thanks
> >
> > eric
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




dynamic pane population upon startup?

2002-11-26 Thread Eric White
I'd like to define a single portlet then, upon startup, dynamically
populate a pane with several instances of the aforementioned portlet,
each driven with different configuration data (most likely driven from a
database).

Can anybody point me to reference material (or, better yet, example
code) for how to do this?

thanks

eric




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




location of portlets.browser.DatabaseBrowserAction?

2002-11-21 Thread Eric White
I'm looking at the xregs entry for the demo DatabaseBrowserPortlet and I
see where the "action" parameter's value is set to 
"portlets.browser.DatabaseBrowserAction".

I also see where, in the VelocityPortlet constructor, the value of the
"action" parameter is retrieved and an ActionLoader is instantiated and
exec'ed from it.

but I can't find where portlets.browser.DatabaseBrowserAction is
defined. Is this a Java implementation or another velocity script
somewhere?

Can anybody point me down a different alley?




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




porlet templates

2002-11-21 Thread Eric White
I've configured Jetspeed to use JSP rather than Velocity. However it
appears that vm templates are the sole means of governing portlet
display. I say this because looking at the DatabaseBrowserPortlet xreg
section, I could only find the database-browser-portlet and the
database-browser-customize templates in the 

.../templates/vm/portlets/html 

subdir.

Mostly, I just want to confirm my spelunking and ensure that I've not
missed something.

thanks

eric




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Advice/guidance on stylesheets vs skins

2002-11-20 Thread Eric White
I've synced to CVS and am using the tip sources and having configure
Jetspeed to use JSP

in /layouts/html/en/default.jsp there is a line in the 
section:

"
type="text/css" rel="stylesheet">

which I interpret to mean, go get the site.stylesheet property from
TurbineResources.properties and use that as a stylesheet.

Except that I can't find reference in my TurbineResources.properties
file.

Also, skins seem to govern the portlet rendering.

However, I'd like to govern the layout and navigation tables via a
stylesheet (or skin) but I don't know the appropriate path to take here.

Any suggestions?

thanks.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: accessing mysql from a dbbrowser portlet

2002-11-19 Thread Eric White
no prob, no need to explain.  I cvs co'd the src tree and built a
version from the src tip that works fine now.

I'm just a little wary of using tip sources to work from. Is there a cvs
label for 1.4b2 that might be  a little less volatile than the tips (...
or at least I could believe so in my own little world)?

On Tue, 2002-11-19 at 18:13, David Sean Taylor wrote:
> > -Original Message-
> > From: Eric White [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 19, 2002 2:52 PM
> > To: Jetspeed Users List
> > Subject: RE: accessing mysql from a dbbrowser portlet
> >
> >
> > using the 1.4b1 release, not CVS head. Should I move to CVS head?
> 
> Hi Eric,
> 
> Yes, it would be better.
> With 1.4b1, the DatabaseBrowser didn't yet support named connection pools.
> 
> Also (ahem) Im giving you the wrong parameters for 1.4b1, the Torque
> property file format has changed.
> See this on Upgrading Torque:
> http://jakarta.apache.org/jetspeed/site/supporting-projects.html
> 
> It works about the same way in 1.4b1, except you don't have "torque."
> prefixing and data source support wasn't there at the time
> 
> You have to remember that you are not dealing with a professional support
> technician.
> Im supposed to always ask "Excuse me sir, which version are you using?"
> But I forgot to ask that question and stupidly assumed that you were at the
> cvs head.
> My apologies,
> 
> David
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


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




RE: accessing mysql from a dbbrowser portlet

2002-11-19 Thread Eric White
using the 1.4b1 release, not CVS head. Should I move to CVS head?

btw, scouring the jetspeed.log file reviewed a severe error stack
prefaced with a message to send off to the turbine developers because
"... this should never happen..."  I packaged up log file and
Torque.properties for them.

On Tue, 2002-11-19 at 16:18, David Sean Taylor wrote:
> 
> 
> > -Original Message-
> > From: Eric White [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 19, 2002 2:07 PM
> > To: Jetspeed Users List
> > Subject: RE: accessing mysql from a dbbrowser portlet
> >
> >
> > I left the original entries alone. I want a second database
> > specification for use with the DBBrowserPortlet (specified as a
> > different pool in the portlet.xreg entry for DBBrowserPortlet)
> >
> >
> Ok, from the example I sent you, I replaced the Oracle connection params
> with MySQL params to point to a MySQL db here, copy in the mysql jar file,
> and it works first time. I did not touch the original hypersonic 'default'
> connection, nor did I touch the security-schema.xml.
> 
> Are you working from the cvs head or an older version?
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




RE: accessing mysql from a dbbrowser portlet

2002-11-19 Thread Eric White
On Tue, 2002-11-19 at 15:20, David Sean Taylor wrote:
> 
> 
> > -Original Message-
> > From: Eric White [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 19, 2002 7:00 AM
> > To: Jetspeed Users List
> > Subject: RE: accessing mysql from a dbbrowser portlet
> >
> >
> > great info.  I've got the following mysql setup in torque.properties:
> >
> > torque.database.billing.adapter=mysql
> > torque.dsfactory.billing.connection.driver=com.mysql.jdbc.Driver
> > torque.dsfactory.billing.connection.url=jdbc:mysql://localhost:3306/test
> > torque.dsfactory.billing.connection.user=user1
> > torque.dsfactory.billing.connection.password=pass1
> >
> > #
> >
> > torque.dsfactory.billing.factory=org.apache.torque.dsfactory.Torqu
> > eDataSourceFactory
> > torque.dsfactory.billing.pool.defaultMaxConnections=10
> > torque.dsfactory.billing.pool.maxExpiryTime=3600
> > torque.dsfactory.billing.pool.connectionWaitTimeout=10
> >
> >
> > and I see the following in my browser when I hit
> > http://localhost:8080/jetspeed. I've placed the mysql JDBC driver in the
> > WEB-INF/lib directory and re-warred/redeployed everything. This error
> > occurs whether I specify the user/pwd as properties or if I change the
> > DB URL to pass them via that mechanism.
> 
> I don't understand that last sentence
> 

rather than using individual properties, you can pass userid/pwd to the
mysql driver in the form

jdbc:mysql://localhost:3306/test?user=user1&password=pass1

... which doesn't work either.

> >
> > I'm using the mysql-connector-java-2.0.14-bin.jar driver for JDBC access
> > to MySQL.
> >
> > Any ideas or pointers to the torque.dsfactory.* property syntax?  I
> > couldn't find these on the Torque project reference page(s).
> >
> > thanks
> >
> >
> > Horrible Exception: java.lang.Error: Error in
> > BasePeer.initTableSchema(TURBINE_USER): Connection object is null!
> > at
> > org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.initCl
> > ass(BaseTurbineUserPeer.java:130)
> > at
> 
> 
> It is failing to find a connection object for the default database.
> 
> Did you remove or modify the default settings from Torque.properties? They
> look like this:
> 
> torque.database.default.adapter=hypersonic
> torque.dsfactory.default.connection.driver = org.hsqldb.jdbcDriver
> torque.dsfactory.default.connection.url =
> jdbc:hsqldb:${webappRoot}/WEB-INF/db/jetspeed
> torque.dsfactory.default.connection.user = sa
> torque.dsfactory.default.connection.password =
> 
> They are necessary for the default Jetspeed security service to access the
> hypersonic db
> From what I understand, you want 2 db connections, right?
> One for the DBBrowserPortlet to point to mySQL, and the other for Jetspeed
> Security using the default settings
> 
> 

I left the original entries alone. I want a second database
specification for use with the DBBrowserPortlet (specified as a
different pool in the portlet.xreg entry for DBBrowserPortlet)


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




RE: accessing mysql from a dbbrowser portlet

2002-11-19 Thread Eric White
veContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)



On Tue, 2002-11-19 at 11:36, David Sean Taylor wrote:
> 
> 
> > -Original Message-
> > From: Eric White [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 19, 2002 6:36 AM
> > To: [EMAIL PROTECTED]
> > Subject: accessing mysql from a dbbrowser portlet
> >
> >
> > I don't want to replace hypersonic as the user/group/role db under
> > Jetspeed, I just want to access a mysql db from a dbbrowser portlet (one
> > that I'd write or hijack from the demos/examples).
> >
> > But, I'm looking for the special sauce recipe of tasks I'm supposed to
> > perform.  Can somebody point me to the right sequence of URLs.
> >
> > I understand torque.properties fits in here somewhere but, after
> > reviewing the last few month's of mailing list posts, it appears that I
> > have to generate some files for torque/turbine to consume as part of the
> > object-to-relational mapping stage.
> >
> The dbbrowserportlet works generically on a database using
> java.sql.ResultSetMetaData, so it doesn't make use of torque at all except
> for the connection.
> 
> Here is one way to configure a second database connection pool in the
> Torque.properties. It is named 'ender':
> 
> torque.database.ender.adapter=oracle
> torque.dsfactory.ender.connection.driver = oracle.jdbc.driver.OracleDriver
> torque.dsfactory.ender.connection.url =
> jdbc:oracle:thin:@yourSid:1521:yourSchema
> torque.dsfactory.ender.connection.user =  jetspeed
> torque.dsfactory.ender.connection.password = password
> torque.dsfactory.ender.factory=org.apache.torque.dsfactory.TorqueDataSourceF
> actory
> torque.dsfactory.ender.pool.defaultMaxConnections=10
> torque.dsfactory.ender.pool.maxExpiryTime=3600
> torque.dsfactory.ender.pool.connectionWaitTimeout=10
> 
> To use this connection pool in the DatabaseBrowserPortlet, specify it by
> name:
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




reference to jetspeed 1.4b2?

2002-11-19 Thread Eric White
In the "Configure Guide" section of the Jetspeed page
(http://jakarta.apache.org/jetspeed/site/override_props.html), there is
mention of a mechanism supporting custom properties, but the last
sentence specifically references version 1.4b2.  

Is this feature something that's only available from a CVS build of
Jetspeed or was that a typo in the documentation?




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




accessing mysql from a dbbrowser portlet

2002-11-19 Thread Eric White
I don't want to replace hypersonic as the user/group/role db under
Jetspeed, I just want to access a mysql db from a dbbrowser portlet (one
that I'd write or hijack from the demos/examples).

But, I'm looking for the special sauce recipe of tasks I'm supposed to
perform.  Can somebody point me to the right sequence of URLs.

I understand torque.properties fits in here somewhere but, after
reviewing the last few month's of mailing list posts, it appears that I
have to generate some files for torque/turbine to consume as part of the
object-to-relational mapping stage.

Any help/pointers would be greatly appreciated.

thanks

eric


--
To unsubscribe, e-mail:   
For additional commands, e-mail: