Re: Wiki documentation issues

2004-11-29 Thread Scott T. Weaver
Anyone should be able to change the Wiki.  If you see an inconsistency 
or something that is blatantly out of date, please feel free to fix it.

Ron Wheeler wrote:
It appears that
http://wiki.apache.org/portals/Jetspeed2/DevelopingJetspeed2
needs to be updated to clarify the discussion that starts
Tomcat 4 and 5 are both supported. Tomcat 5 requires a JAASRealm 
patch that will be automatically applied by Maven during the build. 
Refer to [WWW]http://issues.apache.org/jira/browse/JS2-55 for more 
information.
From reading up on this issue it appears that this is no longer an 
issue if you use the current version of Tomcat. There is no mention of 
the Tomcat 5.5 stream but I am hoping that this problem is resolved 
there as well.
I hope that the wiki authors will fix this up.

Ron

-
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*
* --  *
*   Apache Jetspeed Enterprise Portal *
* Apache Pluto Portlet Container  *
* *
* OpenEdit, Website Content Management*
* http://www.openedit.org   *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


$jslink.addQueryData(eventSubmit_doMethod)

2004-11-29 Thread Peter F.
Hello ,

I use Jetspeed 1.5

I want to perform some method in my VelocityPortletAction by pressing
on link like:

a href='$jslink.addQueryData(eventSubmit_doMethod, 1)'Do Something /a

But it doesn't work. The query string data is all lowercase. Does that
matter?

It seems it worked for me some time ago, but I don't remember exactly
how did I make it.

I saw this kind of link in EMail portlet, but I'm not sure it
works.

  

-- 
Best regards,
 Peter  mailto:[EMAIL PROTECTED]


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



Re: $jslink.addQueryData(eventSubmit_doMethod)

2004-11-29 Thread sadelgadoq





But it doesn't work. The query string data is all lowercase. Does that
matter?

Yeah, it does matter. Your method must be called doWhateveryouwant,
beginning with do lowercase, the next letter uppercase and the rest
lowercase. If you don't follow that convention (what I think it is NOT
explicited in the documentation, I learnt it by -a lot of- trial and -a lot
of- mistake) it won't be invoked.

See ya.

--
Sergio A. Delgado Quero
[EMAIL PROTECTED]

**DESCARGA DE RESPONSABILIDAD**
Este mensaje es privado y confidencial y solamente para la persona a la que
va dirigido. Si usted ha recibido este mensaje por error, no debe revelar,
copiar, distribuir o usarlo en ningún sentido. Le rogamos lo comunique al
remitente y borre dicho mensaje y cualquier documento adjunto que pudiera
contener. No hay renuncia a la confidencialidad ni a ningún privilegio por
causa de transmisión errónea o mal funcionamiento.
Cualquier opinión expresada en este mensaje pertenece únicamente al autor
remitente, y no representa necesariamente la opinión de GRUPO DELAWARE, a
no ser que se diga expresamente y el remitente esté autorizado para
hacerlo.

**DISCLAIMER**
 This message is private and confidential and it is intended exclusively
 for the addressee. If you receive this message by mistake, you should not
 disseminate, distribute or copy this e-mail. Please inform the sender and
 delete the message and attachments from your system. No confidentiality
 nor any privilege regarding the information is waived or lost by any
 mistransmission or malfunction.
Any views or opinions contained in this message are solely those of the
author, and do not necessarily represent those of GRUPO DELAWARE, unless
otherwise specifically stated and the sender is authorised to do so.


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



RE: $jslink.addQueryData(eventSubmit_doMethod)

2004-11-29 Thread Arthur J. D'Alessandro III
Yes, the action methods must follow:

eventSubmit_doMethodnamefirstcharacterafterdocapitalized

I submitted a bug to JIRA on the lowercase on the addQueryData ([jira]
Created: (JS1-504) JspLink - addQueryData), I ended up just manually
putting the code into the html.

a href='?eventSubmit_doMethod='Do Something /a


-Original Message-
From: Peter F. [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 29, 2004 11:23 AM
To: Jetspeed Users List
Subject: $jslink.addQueryData(eventSubmit_doMethod)

Hello ,

I use Jetspeed 1.5

I want to perform some method in my VelocityPortletAction by pressing
on link like:

a href='$jslink.addQueryData(eventSubmit_doMethod, 1)'Do Something
/a

But it doesn't work. The query string data is all lowercase. Does that
matter?

It seems it worked for me some time ago, but I don't remember exactly
how did I make it.

I saw this kind of link in EMail portlet, but I'm not sure it
works.

  

-- 
Best regards,
 Peter  mailto:[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]



Two questions: print-friendly mode and changing content-type

2004-11-29 Thread sadelgadoq





Hi, I'm working in my first project with Jetspeed 1 and have a couple of
things I don't know how to do...

- I have a single maximized portlet with no control frame (you know, the
little title bar with the minimize, maximize, etc. buttons). How can I
change its mode to print-friendly from the Java action? I have tried with

ActionLoader.getInstance().exec(rundata, controls.Print);

but in the parameters of rundata js_peid is null and it returns, doing
nothing. ?

- I want to export some data to a text file. I used this code

---

HttpServletResponse response = rundata.getResponse();
response.setContentType(text/plain);
response.setHeader(Cache-control, no-cache);
response.setHeader(Pragma, no-cache);
response.setDateHeader(Expires, 0);

String nombreFichero = centros.txt;
response.setHeader(Content-Disposition, inline; filename=\
+ nombreFichero + \);

response.getOutputStream().print(CONTENT HERE!);

response.getOutputStream().flush();

---

but a exception is generated by setContentType

java.lang.IllegalStateException: Attempt to change ContentType after
calling getWriter() (cannot change charset from 'UTF8' to 'ISO-8859-1')

What am I missing?

Thanks in advance.

--
Sergio A. Delgado Quero
[EMAIL PROTECTED]

**DESCARGA DE RESPONSABILIDAD**
Este mensaje es privado y confidencial y solamente para la persona a la que
va dirigido. Si usted ha recibido este mensaje por error, no debe revelar,
copiar, distribuir o usarlo en ningún sentido. Le rogamos lo comunique al
remitente y borre dicho mensaje y cualquier documento adjunto que pudiera
contener. No hay renuncia a la confidencialidad ni a ningún privilegio por
causa de transmisión errónea o mal funcionamiento.
Cualquier opinión expresada en este mensaje pertenece únicamente al autor
remitente, y no representa necesariamente la opinión de GRUPO DELAWARE, a
no ser que se diga expresamente y el remitente esté autorizado para
hacerlo.

**DISCLAIMER**
 This message is private and confidential and it is intended exclusively
 for the addressee. If you receive this message by mistake, you should not
 disseminate, distribute or copy this e-mail. Please inform the sender and
 delete the message and attachments from your system. No confidentiality
 nor any privilege regarding the information is waived or lost by any
 mistransmission or malfunction.
Any views or opinions contained in this message are solely those of the
author, and do not necessarily represent those of GRUPO DELAWARE, unless
otherwise specifically stated and the sender is authorised to do so.


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



Re: [SPAM] Re: $jslink.addQueryData(eventSubmit_doMethod)

2004-11-29 Thread Peter F.
Hello ,


Thanks!
That really works as you described.


Monday, November 29, 2004, 6:36:44 PM, you wrote:


But it doesn't work. The query string data is all lowercase. Does that
matter?

sgc Yeah, it does matter. Your method must be called doWhateveryouwant,
sgc beginning with do lowercase, the next letter uppercase and the rest
sgc lowercase. If you don't follow that convention (what I think it is NOT
sgc explicited in the documentation, I learnt it by -a lot of- trial and -a lot
sgc of- mistake) it won't be invoked.



-- 
Best regards,
 Petermailto:[EMAIL PROTECTED]


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



RE: jetspeed-newbie Roles-Groups-Users

2004-11-29 Thread Marina
Randy,
Thanks a lot for your response.

I indeed have more specific question on the security
setup in J2. 
I should note right away that I apologize if these
questions are answered in the documentation you
mentioned - I was not able to read it as it seems to
be in the .sxw format (StarOffice, I think ?). Any
idea how to convert them into some other format if I
don't have StarOffice readily available?

Now to my questions.
I'm trying to do a very common thing: require a user
to log in when he access the portal for the first
time, and then show only those portlets that this user
is authorized to see, and give him only those access
rights  to some functionality (buttons, links in the
portlets) that he is authorized to do.

First of, I was not sure how to limit access to the
portal as a whole - usually you do that kind of thing
in the web.xml descriptor of the web application. I
guess that would be the
$TOMCAT_HOME/webapps/jetspeed/WEB-INF/web.xml
But then, would not it be overwritten when Jetspeed is
redeployed using the Maven build scripts? And what
url-pattern would I have to specify - /jetspeed/* or
something like that?

Anyway, I decided to try to protect the main portlet
as the first step. In my potlet's web.xml I specified:
  security-constraint
web-resource-collection
  web-resource-nameSecure EventCalendar
  /web-resource-name
 url-pattern/EventsCalendarPortlet/*
 /url-pattern
  http-methodGET/http-method
  http-methodPOST/http-method
/web-resource-collection
auth-constraint
  role-namedce_admin/role-name
/auth-constraint
  /security-constraint
  login-config
auth-methodBASIC/auth-method
  /login-config
  security-role
role-namedce_admin/role-name
  /security-role

and I have a corresponding role defined in the
tomcat-users.xml:
  role rolename=dce_admin/
  user username=dce_admin password=some_password
roles=dce_admin/

Since I could not find any Jetspeed-specific
information on specifying security constraints for
individual portlets, I just used the Portlet
Specification as the guide and added this to the
portlet's portlet.xml:

security-role-ref
role-namedce_admin/role-name
role-linkdce_admin/role-link
/security-role-ref

The EventsCalendarPortlet got deployed into J2 just
fine, but it was displayed in the portal without
prompting me for any username/password.

If you could give me any pointers as to what I'm
missing and what would the main steps be to achieve
what I'm trying to do it would be great!

Sorry for such a long e-mail,

thanks!
Marina

--- Randy Watler [EMAIL PROTECTED] wrote:

 MP,
 
 I am more or less responsible for the J2 profiling
 and security features.
 
 There is some documentation in the J2 design-docs
 under the profiler
 directory, (pull from CVS).
 
 Also the demo configuration for user/user,
 (username=user, password=user),
 uses profiling extensively to customize its view and
 security to limit its
 access to the admin pages/portlets.
 
 BTW, this functionality is page based, not portlet
 based. Portlet security
 constraints can be specified in the portlet.xml, but
 I am not sure if they
 are 100% implemented at this point.
 
 Feel free to send more specific J2 questions to the
 list.
 
 HTH,
 
 Randy Watler
 
 -Original Message-
 From: M P
 To: Jetspeed Users List
 Sent: 11/27/04 12:10 PM
 Subject: Re: jetspeed-newbie Roles-Groups-Users
 
 Hi, David,
 
 The documentation you mentioned is for Jetspeed 1.
 Is
 it also true for Jetspeed2? If not - could you point
 me  to where I could find it for J2? I looked
 through
 all documentation on the J2 home page and Wikis and
 could not find anything on how to control access to
 specific portlets based on user roles/ groups.
 
 Thank you!
 Marina
 
 --- David Sean Taylor [EMAIL PROTECTED] wrote:
 
  Thilina wrote:
  
   Hi,
   I need to do following thing using the jetspeed,
   
   Creating..
   3 roles - Admin, Executive, Developer
   2 Groups - Administration, Users
   100 of users - CEO,CFO,admin, aaa, bbb, ccc,
  etc
   
   Setting
   Admin and Executive belongs to Administrative
  Group
   Developer belongs to Users Group
   
   CEO and CFO are Executive Roles
   admin user is belongs to Admin role
   aaa, bbb, ccc, etc belongs to Developer role
   
   Users group only have rights to view the
  information.
   Admin role have all the control except viewing
  some confidential
   information such as Banking and Finance
  information. Only CEO and CFO
   have rights to access those information.
   
   Admin could lock and unlock account except CEO
 and
  CFO.
   
   Is this kind of activity achieve using jetspeed
  1.5?
   
  Yes.
  To see the User Admin, go here:
  
  http://.bluesunrise.com/jetspeed
  
  login as user = admin, pw = (sendme an email
  personally to get it)
  
  Go to the security tab, and then Security
 Browser
  Here you can see how to setup security constraints
  
  You will also see 

Re: jetspeed-newbie Roles-Groups-Users

2004-11-29 Thread Randy Watler
Marina,
There are two different Roles/Groups/Users domains in effect: Tomcat's 
and Jetspeed's. Jetspeed has its own JAAS login/logout that is managed 
separately from the global Tomcat configuration, (see jetspeed.xml for 
the JAAS Realm definition). Configuration of Tomcat's Realm is only 
necessary for running the manager/admin application to deploy portlet 
webapps.

I am not sure why your Tomcat security configuration did not control 
access to the Jetspeed application as a whole, (I am not an expert there 
to say the least; I've never had to use that believe it or not).

To use the portlet security, you'll probably need to configure the 
Jetspeed realm correctly or use the demo logins. Like I said, I am not 
sure portlet security is implemented at this time, YMMV. See the 
populate-userinfo-for-default-psml.sql script.

For page level security, see the demo psml pages under 
jetspeed/WEB-INF/pages. No document on this stuff yet... it is very new 
and still settling in.

I will mail a PDF version of the profiling document to you in few minutes.
Randy
Marina wrote:
Randy,
Thanks a lot for your response.
I indeed have more specific question on the security
setup in J2. 
I should note right away that I apologize if these
questions are answered in the documentation you
mentioned - I was not able to read it as it seems to
be in the .sxw format (StarOffice, I think ?). Any
idea how to convert them into some other format if I
don't have StarOffice readily available?

Now to my questions.
I'm trying to do a very common thing: require a user
to log in when he access the portal for the first
time, and then show only those portlets that this user
is authorized to see, and give him only those access
rights  to some functionality (buttons, links in the
portlets) that he is authorized to do.
First of, I was not sure how to limit access to the
portal as a whole - usually you do that kind of thing
in the web.xml descriptor of the web application. I
guess that would be the
$TOMCAT_HOME/webapps/jetspeed/WEB-INF/web.xml
But then, would not it be overwritten when Jetspeed is
redeployed using the Maven build scripts? And what
url-pattern would I have to specify - /jetspeed/* or
something like that?
Anyway, I decided to try to protect the main portlet
as the first step. In my potlet's web.xml I specified:
 security-constraint
   web-resource-collection
 web-resource-nameSecure EventCalendar
 /web-resource-name
url-pattern/EventsCalendarPortlet/*
/url-pattern
 http-methodGET/http-method
 http-methodPOST/http-method
   /web-resource-collection
   auth-constraint
 role-namedce_admin/role-name
   /auth-constraint
 /security-constraint
 login-config
   auth-methodBASIC/auth-method
 /login-config
 security-role
   role-namedce_admin/role-name
 /security-role
and I have a corresponding role defined in the
tomcat-users.xml:
 role rolename=dce_admin/
 user username=dce_admin password=some_password
roles=dce_admin/
Since I could not find any Jetspeed-specific
information on specifying security constraints for
individual portlets, I just used the Portlet
Specification as the guide and added this to the
portlet's portlet.xml:
   security-role-ref
   role-namedce_admin/role-name
   role-linkdce_admin/role-link
   /security-role-ref
The EventsCalendarPortlet got deployed into J2 just
fine, but it was displayed in the portal without
prompting me for any username/password.
If you could give me any pointers as to what I'm
missing and what would the main steps be to achieve
what I'm trying to do it would be great!
Sorry for such a long e-mail,
thanks!
Marina
--- Randy Watler [EMAIL PROTECTED] wrote:
 

MP,
I am more or less responsible for the J2 profiling
and security features.
There is some documentation in the J2 design-docs
under the profiler
directory, (pull from CVS).
Also the demo configuration for user/user,
(username=user, password=user),
uses profiling extensively to customize its view and
security to limit its
access to the admin pages/portlets.
BTW, this functionality is page based, not portlet
based. Portlet security
constraints can be specified in the portlet.xml, but
I am not sure if they
are 100% implemented at this point.
Feel free to send more specific J2 questions to the
list.
HTH,
Randy Watler
-Original Message-
From: M P
To: Jetspeed Users List
Sent: 11/27/04 12:10 PM
Subject: Re: jetspeed-newbie Roles-Groups-Users
Hi, David,
The documentation you mentioned is for Jetspeed 1.
Is
it also true for Jetspeed2? If not - could you point
me  to where I could find it for J2? I looked
through
all documentation on the J2 home page and Wikis and
could not find anything on how to control access to
specific portlets based on user roles/ groups.
Thank you!
Marina
--- David Sean Taylor [EMAIL PROTECTED] wrote:
   

Thilina wrote:
 

Hi,
I need to do following thing using the jetspeed,
Creating..
3 roles - Admin, Executive, Developer
2 Groups - Administration, Users
100 of 

LateInitCastorRegistryService - InitializationException

2004-11-29 Thread Hema Menon
Hi,

I rebuild my jetspeed1.5 application using Jetspeed 1.6 with fusion.
Everything starts up fine with successful Fusion Service
initialization Done. However when I try to access my login page, I
get the following exception
org.apache.turbine.services.InitializationException: Unable to
initialize LateInitCastorRegistryService, missing config keys .
Stacktrace is shown below.

I am using Sybase server and the tables are the same one that I have
been using for Jetspeed 1.5. Can someone point me to what these
missing config keys are?

Thanks,
Hema

org.apache.turbine.services.InitializationException: Unable to
initialize LateInitCastorRegistryService, missing config keys
at 
org.apache.jetspeed.services.registry.LateInitCastorRegistryService.init(LateInitCastorRegistryService.java:368)
at 
org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:304)
rethrown as org.apache.turbine.services.InstantiationException:
Service Registry failed to initialize
at 
org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:322)
at org.apache.jetspeed.services.Registry.getService(Registry.java:63)


~~
Hema Menon

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



Trouble Build Jetspeed-2 using Maven 1.0.1

2004-11-29 Thread Mark Fretwell
I'm receiving the following error when executing a build pf Jetspeed-2 
using Maven 1.0.1:

C:\jakarta-jetspeed-2maven allClean allBuild
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.1

Starting the reactor...

BUILD FAILED
File.. C:\jakarta-jetspeed-2\maven.xml
Element... maven:reactor
Line.. 103
Column 31
Error reading XML or initializing
Total time: 7 seconds
Finished at: Mon Nov 29 13:16:17 EST 2004

I also receiving the following server/properties file message when 
starting up the test server:

C:\jakarta-jetspeed-2maven start.test.server
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.1

build:start:

start.test.server:
[echo] 
[echo] Testing Database
[echo] 
[java] server.properties not found, using command line or default 
properties

[java] Opening database: ./src/database/hsql/Test
[java] HSQLDB server 1.7.1 is running
[java] Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort 
abruptly
[java] Mon Nov 29 13:11:41 EST 2004 Listening for connections ...

OS and Applications used:

1. Windows 2000 Version 5.0 SP4
2. Maven 1.0.1
3. Tomcat 5.0.28
4. Jetspeed-2 
5. jdsdk1.4.2_06

Thanks,
Mark A. Fretwell
Senior Computer Scientist
CSC/CIVIL
820 First St. NE
Washington, DC 20002
(202) 354-7034
(301) 921-3034
[EMAIL PROTECTED]



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.



Limiting customization available to users

2004-11-29 Thread Ruy Diaz Jara
Hi everyone,

Is there a simple way to prevent users from adding/removing portlets and panes
but leaving the 'customize' action on certain portlets in order to change
parameters?

I know I can completely disable the icons (maximize, minimize, print, etc.) for
all users, but this is too much because I do want them to have the customize
option. Is this at all possible without having to do a custom customizer?

Thanks
Ruy



__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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



Your e-mail to the AAD has not been delivered

2004-11-29 Thread Ruy Diaz Jara
Does everyone get their mail bounced by this guy every time you write to the
jetspeed-user mailing list or is it just me?

The body of the message is something like:
The Australian Antarctic Division e-mail system has automatically assessed an 
e-mail message sent by you to [EMAIL PROTECTED] 

It has some instructions in order to add me to their e-mail system because the
e-mail appears to be spam, but I don't know if I should have them adde me or
not... Any thoughts?

Regards
Ruy



=
---
I used to be an atheist, until I realized I was God.



__ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

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



RE: Trouble Build Jetspeed-2 using Maven 1.0.1

2004-11-29 Thread Carlos Sanchez
Hi,

It's a known bug of maven 1.0.1, you can find the workaround at
http://nagoya.apache.org/jira/browse/JS2-164 

Regards

Carlos Sanchez
A Coruña, Spain
http://www.jroller.com/page/carlossg


 -Original Message-
 From: Mark Fretwell [mailto:[EMAIL PROTECTED] 
 Sent: Monday, November 29, 2004 7:40 PM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Trouble Build Jetspeed-2 using Maven 1.0.1
 
 I'm receiving the following error when executing a build pf 
 Jetspeed-2 using Maven 1.0.1:
 
 C:\jakarta-jetspeed-2maven allClean allBuild  __  __
 |  \/  |__ _Apache__ ___
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
 
 Starting the reactor...
 
 BUILD FAILED
 File.. C:\jakarta-jetspeed-2\maven.xml Element... 
 maven:reactor Line.. 103 Column 31 Error reading XML 
 or initializing Total time: 7 seconds Finished at: Mon Nov 29 
 13:16:17 EST 2004
 
 I also receiving the following server/properties file message 
 when starting up the test server:
 
 C:\jakarta-jetspeed-2maven start.test.server  __  __
 |  \/  |__ _Apache__ ___
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
 
 build:start:
 
 start.test.server:
 [echo] 
 [echo] Testing Database
 [echo] 
 [java] server.properties not found, using command line or 
 default properties
 
 [java] Opening database: ./src/database/hsql/Test
 [java] HSQLDB server 1.7.1 is running
 [java] Use SHUTDOWN to close normally. Use [Ctrl]+[C] to 
 abort abruptly
 [java] Mon Nov 29 13:11:41 EST 2004 Listening for connections ...
 
 OS and Applications used:
 
 1. Windows 2000 Version 5.0 SP4
 2. Maven 1.0.1
 3. Tomcat 5.0.28
 4. Jetspeed-2
 5. jdsdk1.4.2_06
 
 Thanks,
 Mark A. Fretwell
 Senior Computer Scientist
 CSC/CIVIL
 820 First St. NE
 Washington, DC 20002
 (202) 354-7034
 (301) 921-3034
 [EMAIL PROTECTED]
 
 
 --
 --
 This is a PRIVATE message. If you are not the intended 
 recipient, please delete without copying and kindly advise us 
 by e-mail of the mistake in delivery. NOTE: Regardless of 
 content, this e-mail shall not operate to bind CSC to any 
 order or other contract unless pursuant to explicit written 
 agreement or government initiative expressly permitting the 
 use of e-mail for such purpose.
 --
 --
 



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



Re: LateInitCastorRegistryService - InitializationException - Bug??

2004-11-29 Thread Hema Menon
I found the source for the error in LateInitCastorRegistryService.java
code under jakarta-jetspeed/src/org/apache/jetspeed/services/registry
directory. In the init method, a classCastException is thrown at the
getConfiguration().getInt(refreshRate) which in turn is rethrown as
an InitializationException with the message missing config keys. I
am overriding the property value for refreshRate in my.properties. I
verified to see if there is any extra space after the value but could
not find any. Not sure why commons getConfiguration.getInt() is
throwing a classCastException on this.

The code snippet is as follows

int refreshRate = 0;

// read the configuration keys
try
{
directory = getConfiguration().getString(directory);
mapFile = getConfiguration().getString(mapping, DEFAULT_MAPPING);
extension = getConfiguration().getString(extension,
DEFAULT_EXTENSION);
 refreshRate = getConfiguration().getInt(refreshRate,
DEFAULT_REFRESH);
mapFile = TurbineServlet.getRealPath(mapFile);
directory = TurbineServlet.getRealPath(directory);
}
catch (Throwable t)
{
throw new InitializationException(Unable to initialize
LateInitCastorRegistryService, missing config keys);
}

I tried using getConfiguration().getString(refreshRate) and parsing
the trimmed string value to set the integer value for refresh rate. 
The initialization was successful in that case.

Thanks,
Hema

On Mon, 29 Nov 2004 13:01:13 -0600, Hema Menon [EMAIL PROTECTED] wrote:
 Hi,
 
 I rebuild my jetspeed1.5 application using Jetspeed 1.6 with fusion.
 Everything starts up fine with successful Fusion Service
 initialization Done. However when I try to access my login page, I
 get the following exception
 org.apache.turbine.services.InitializationException: Unable to
 initialize LateInitCastorRegistryService, missing config keys .
 Stacktrace is shown below.
 
 I am using Sybase server and the tables are the same one that I have
 been using for Jetspeed 1.5. Can someone point me to what these
 missing config keys are?
 
 Thanks,
 Hema
 
 org.apache.turbine.services.InitializationException: Unable to
 initialize LateInitCastorRegistryService, missing config keys
at 
 org.apache.jetspeed.services.registry.LateInitCastorRegistryService.init(LateInitCastorRegistryService.java:368)
at 
 org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:304)
 rethrown as org.apache.turbine.services.InstantiationException:
 Service Registry failed to initialize
at 
 org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:322)
at org.apache.jetspeed.services.Registry.getService(Registry.java:63)
 
 ~~
 Hema Menon
 


-- 


~~
Hema Menon

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