How to get localized string in VelocityPortletAction

2004-10-14 Thread Peter F.
Hello ,

My question is:
how to get localized string from buildNormalContext(VelocityPortlet portlet, Context 
context, RunData rundata)
method in VelocityPortletAction.

Thanks in advance.
  

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


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



BUG java.lang.ClassNotFoundException: org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl

2004-10-14 Thread jean-charles . jabouille
Hi,

I have a problem for running jetspeed2 on jonas4_1_4.
 It apperas that a class is missing. the bug is resume here :
http://wiki.apache.org/portals/Jetspeed2/PrefsClassloaderIssuesAndSdk14
But I have a good jdk version which is the 1.4.2_05.


2004-10-14 14:14:55,280 : AbsJWebContainerServiceImpl.registerWar : War
/home/jabouijc/JONAS_4_1_4/webapps/autoload/jonas-doc-en/ available at the
context /jonas-doc-en.
2004-10-14 14:14:55,530 : AbsJWebContainerServiceImpl.registerWar : War
/home/jabouijc/JONAS_4_1_4/webapps/autoload/jonas-javadoc/ available at the
context /jonas-javadoc.
2004-10-14 14:14:55,899 : AbsJWebContainerServiceImpl.registerWar : War
/home/jabouijc/JONAS_4_1_4/webapps/autoload/ctxroot.war available at the
context /.
2004-10-14 14:14:57,577 : AbsJWebContainerServiceImpl.registerWar : War
/home/jabouijc/JONAS_4_1_4/webapps/autoload/jonasAdmin.war available at the
context /jonasAdmin.
2004-10-14 14:14:57,709 : AbsJWebContainerServiceImpl.registerWar : War
/home/jabouijc/JONAS_4_1_4/webapps/autoload/tomcat-docs.war available at
the context /tomcat-docs.
- Jetspeed Starting Initialization...
- JetspeedServlet identifying web application root...
- JetspeedServlet identifed web application root as
/home/jabouijc/JONAS_4_1_4/work/webapps/jonas/jetspeed/
- JetspeedServlet attempting to create the  portlet engine...
- Jetspeed environment attempting to initialize portal Engine...
JNDI System Property flag null
==null
 WARN: IOException, CatalinaPAM will only function as FileSystemPAM:
java.net.ConnectException: Connection refused
==null
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'org.apache.jetspeed.prefs.PreferencesProvider' defined in
URL
[file:/home/jabouijc/JONAS_4_1_4/work/webapps/jonas/jetspeed/WEB-INF/assembly/jetspeed-spring.xml]:
 Initialization method 'start' threw exception; nested exception is
java.lang.RuntimeException: Failed to initialize prefs api.
java.lang.NoClassDefFoundError
java.lang.RuntimeException: Failed to initialize prefs api.
java.lang.NoClassDefFoundError
at
org.apache.jetspeed.prefs.impl.PreferencesProviderImpl.start(PreferencesProviderImpl.java:114)
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.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:810)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:249)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:177)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:183)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at
org.springframework.context.support.FileSystemXmlApplicationContext.init(FileSystemXmlApplicationContext.java:83)
at
org.apache.jetspeed.components.SpringComponentManager.init(SpringComponentManager.java:44)
at
org.apache.jetspeed.engine.SpringEngine.initComponents(SpringEngine.java:108)
at
org.apache.jetspeed.engine.AbstractEngine.init(AbstractEngine.java:134)
at org.apache.jetspeed.Jetspeed.createEngine(Jetspeed.java:64)
at
org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:137)
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.security.SecurityUtil$1.run(SecurityUtil.java:239)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)
at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:110)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1024)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
at

RE: Running Jetspeed 1.5 on JRun4

2004-10-14 Thread Stathis, George
A few more details:

1) Our JRun installation came with ColdFusion MX 6.1, so a bunch of
ColdFusion classes are in the classpath.

2) When starting the server that houses the Jetspeed 1.5 application, the
following JetspeedLoggingService related error appears in the JRun Launcher
log:

Starting Apache Jetspeed Portal/1.5

(!) NOTICE: init
(!) NOTICE: ServiceBroker: LoggingService enabled.
(!) NOTICE: Turbine: init() failed: java.lang.VerifyError: (class:
org/apache/log4j/LogManager, method: clinit signature: ()V) Incompatible
argument to function
at
org.apache.jetspeed.services.logging.JetspeedLogFactoryService.getLogger(Jet
speedLogFactoryService.java:168)
at
org.apache.jetspeed.services.logging.JetspeedLoggingService.clinit(Jetspee
dLoggingService.java:59)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
org.apache.turbine.services.BaseInitableBroker.getInitableInstance(BaseInita
bleBroker.java:257)rethrown as
org.apache.turbine.services.InstantiationException: Failed to instantiate
org.apache.jetspeed.services.logging.JetspeedLoggingService
at
org.apache.turbine.services.BaseInitableBroker.getInitableInstance(BaseInita
bleBroker.java:295)
at
org.apache.turbine.services.BaseInitableBroker.initClass(BaseInitableBroker.
java:145)
at
org.apache.turbine.services.BaseServiceBroker.initService(BaseServiceBroker.
java:139)
at
org.apache.turbine.services.TurbineServices.initPrimaryServices(TurbineServi
ces.java:204)
at org.apache.turbine.Turbine.init(Turbine.java:247)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:12
43)
at
jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.jav
a:790)
at
jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:297)
at
jrun.deployment.DeployerService.initModules(DeployerService.java:711)
at
jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java
:242)
at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
at
jrun.deployment.DeployerService.handleEvent(DeployerService.java:381)
at
jrunx.kernel.JRunServiceDeployer.fireEvent(JRunServiceDeployer.java:710)
at
jrunx.kernel.JRunServiceDeployer.deployServices(JRunServiceDeployer.java:111
)
at
jrunx.kernel.DeploymentService.loadServices(DeploymentService.java:46)
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
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at jrunx.kernel.JRun.startServer(JRun.java:575)
at jrunx.kernel.JRun.init(JRun.java:493)
at jrunx.kernel.JRun$1.run(JRun.java:346)
at java.security.AccessController.doPrivileged(Native Method)
at jrunx.kernel.JRun.start(JRun.java:343)
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 jrunx.kernel.JRun.invoke(JRun.java:180)
at jrunx.kernel.JRun.main(JRun.java:168)

Server default ready (startup time: 13 seconds)

-Original Message-
From: Stathis, George [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 13, 2004 10:56 AM
To: '[EMAIL PROTECTED]'
Subject: Running Jetspeed 1.5 on JRun4


I haven't seem any messages specific to JRun4 problems, so I have to ask
myself. Is anyone running Jetspeed 1.5 on JRun4 (with the latest service
pack, Update 4, installed)?
 
I have downloaded the Jetspeed 1.5 WAR file and have have successfully
deployed it on Tomcat 5. Deploying it on JRun4 expands the WAR file fine,
but when trying to browse to the portal's front page, I get an HTTP 500 The
page cannot be displayed error. Looking at the JRun logs, I find the
following error:
 
 
10/13 10:39:32 error ServiceBroker: unknown service PoolService requested
org.apache.turbine.services.InstantiationException: ServiceBroker: unknown
service PoolService requested  at
org.apache.turbine.services.BaseServiceBroker.getServiceInstance(BaseService
Broker.java:354)
 at
org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.j
ava:296)
 at
org.apache.turbine.util.RunDataFactory.putRunData(RunDataFactory.java:226)
 at org.apache.turbine.Turbine.doGet(Turbine.java:643)
 at 

Re: Running Jetspeed 1.5 on JRun4

2004-10-14 Thread Scott T. Weaver
Hi George,
Looks like a version conflict in the version of log4j included with J2 
and the one JRun appears to be using.  Try removing the log4j jar from 
the jetspeed/WEB-INF/lib directory.

Stathis, George wrote:
A few more details:
1) Our JRun installation came with ColdFusion MX 6.1, so a bunch of
ColdFusion classes are in the classpath.
2) When starting the server that houses the Jetspeed 1.5 application, the
following JetspeedLoggingService related error appears in the JRun Launcher
log:
Starting Apache Jetspeed Portal/1.5
(!) NOTICE: init
(!) NOTICE: ServiceBroker: LoggingService enabled.
(!) NOTICE: Turbine: init() failed: java.lang.VerifyError: (class:
org/apache/log4j/LogManager, method: clinit signature: ()V) Incompatible
argument to function
   at
org.apache.jetspeed.services.logging.JetspeedLogFactoryService.getLogger(Jet
speedLogFactoryService.java:168)
   at
org.apache.jetspeed.services.logging.JetspeedLoggingService.clinit(Jetspee
dLoggingService.java:59)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:141)
   at
org.apache.turbine.services.BaseInitableBroker.getInitableInstance(BaseInita
bleBroker.java:257)rethrown as
org.apache.turbine.services.InstantiationException: Failed to instantiate
org.apache.jetspeed.services.logging.JetspeedLoggingService
   at
org.apache.turbine.services.BaseInitableBroker.getInitableInstance(BaseInita
bleBroker.java:295)
   at
org.apache.turbine.services.BaseInitableBroker.initClass(BaseInitableBroker.
java:145)
   at
org.apache.turbine.services.BaseServiceBroker.initService(BaseServiceBroker.
java:139)
   at
org.apache.turbine.services.TurbineServices.initPrimaryServices(TurbineServi
ces.java:204)
   at org.apache.turbine.Turbine.init(Turbine.java:247)
   at javax.servlet.GenericServlet.init(GenericServlet.java:258)
   at
jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:12
43)
   at
jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.jav
a:790)
   at
jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:297)
   at
jrun.deployment.DeployerService.initModules(DeployerService.java:711)
   at
jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java
:242)
   at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
   at
jrun.deployment.DeployerService.handleEvent(DeployerService.java:381)
   at
jrunx.kernel.JRunServiceDeployer.fireEvent(JRunServiceDeployer.java:710)
   at
jrunx.kernel.JRunServiceDeployer.deployServices(JRunServiceDeployer.java:111
)
   at
jrunx.kernel.DeploymentService.loadServices(DeploymentService.java:46)
   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
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
   at jrunx.kernel.JRun.startServer(JRun.java:575)
   at jrunx.kernel.JRun.init(JRun.java:493)
   at jrunx.kernel.JRun$1.run(JRun.java:346)
   at java.security.AccessController.doPrivileged(Native Method)
   at jrunx.kernel.JRun.start(JRun.java:343)
   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 jrunx.kernel.JRun.invoke(JRun.java:180)
   at jrunx.kernel.JRun.main(JRun.java:168)
Server default ready (startup time: 13 seconds)
-Original Message-
From: Stathis, George [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 13, 2004 10:56 AM
To: '[EMAIL PROTECTED]'
Subject: Running Jetspeed 1.5 on JRun4

I haven't seem any messages specific to JRun4 problems, so I have to ask
myself. Is anyone running Jetspeed 1.5 on JRun4 (with the latest service
pack, Update 4, installed)?
I have downloaded the Jetspeed 1.5 WAR file and have have successfully
deployed it on Tomcat 5. Deploying it on JRun4 expands the WAR file fine,
but when trying to browse to the portal's front page, I get an HTTP 500 The
page cannot be displayed error. Looking at the JRun logs, I find the
following error:
10/13 10:39:32 error ServiceBroker: unknown service PoolService requested
org.apache.turbine.services.InstantiationException: ServiceBroker: unknown
service PoolService requested  at
org.apache.turbine.services.BaseServiceBroker.getServiceInstance(BaseService
Broker.java:354)
at
org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.j
ava:296)
at

RE: Running Jetspeed 1.5 on JRun4

2004-10-14 Thread Stathis, George
Thank you for the prompt reply. I'm running J1.5 by the way. I just tried
your suggestion and the problem persists in the exact same way (same
messages).

Looking at the classpath available to the JRun JVM, I see that there are two
versions of log4j *in addition* to the one in Jetspeed itself. They both
come built-in JRun. One is in:

%JRUN_HOME%\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\lib\log4
j.jar

The other in:

%JRUN_HOME%\lib\oem-xdoclet.jar

which contains open source libraries, one of which is log4j. Both
directories above are in the JVM classpath. For a test, I put back the log4j
jar in jetspeed/WEB-INF/lib and *removed* the two directories above from the
class path. Same error.

Then, I removed the log4j jar from jetspeed/WEB-INF/lib again, and also left
out the two directories above from the classpath. Different error:

(!) NOTICE: Turbine: init() failed: java.lang.NoClassDefFoundError:
org/apache/log4j/LogManager

Ahaa! NoClassDefFoundError Now I know that log4j is completely out of the
classpath. 

I re-tested now by putting back into the classpath each jar one by one.
Results:

The
%JRUN_HOME%\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\lib\log4
j.jar is not being picked up. If it's the only one in the classpath, I still
get a NoClassDefFoundError error. But both the
%JRUN_HOME%\lib\oem-xdoclet.jar and the Jetspeed log4j.jar cause the exact
same error:

(!) NOTICE: Turbine: init() failed: java.lang.VerifyError: (class:
org/apache/log4j/LogManager, method: clinit signature: ()V) Incompatible
argument to function

Either there is yet another log4j jar somewhere (not likely since I get a
NoClassDefFoundError already), or the problem is somewhere else.

I will keep experimenting. If there are any other ideas or I'm missing
something, please, someone let me know.



-Original Message-
From: Scott T. Weaver [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 14, 2004 10:00 AM
To: Jetspeed Users List
Subject: Re: Running Jetspeed 1.5 on JRun4


Hi George,

Looks like a version conflict in the version of log4j included with J2 
and the one JRun appears to be using.  Try removing the log4j jar from 
the jetspeed/WEB-INF/lib directory.

Stathis, George wrote:

A few more details:

1) Our JRun installation came with ColdFusion MX 6.1, so a bunch of 
ColdFusion classes are in the classpath.

2) When starting the server that houses the Jetspeed 1.5 application, 
the following JetspeedLoggingService related error appears in the JRun 
Launcher
log:

Starting Apache Jetspeed Portal/1.5

(!) NOTICE: init
(!) NOTICE: ServiceBroker: LoggingService enabled.
(!) NOTICE: Turbine: init() failed: java.lang.VerifyError: (class: 
org/apache/log4j/LogManager, method: clinit signature: ()V) 
Incompatible argument to function
at 
org.apache.jetspeed.services.logging.JetspeedLogFactoryService.getLogge
r(Jet
speedLogFactoryService.java:168)
at
org.apache.jetspeed.services.logging.JetspeedLoggingService.clinit(Jetspe
e
dLoggingService.java:59)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
org.apache.turbine.services.BaseInitableBroker.getInitableInstance(BaseInit
a
bleBroker.java:257)rethrown as
org.apache.turbine.services.InstantiationException: Failed to instantiate
org.apache.jetspeed.services.logging.JetspeedLoggingService
at
org.apache.turbine.services.BaseInitableBroker.getInitableInstance(BaseInit
a
bleBroker.java:295)
at
org.apache.turbine.services.BaseInitableBroker.initClass(BaseInitableBroker
.
java:145)
at
org.apache.turbine.services.BaseServiceBroker.initService(BaseServiceBroker
.
java:139)
at
org.apache.turbine.services.TurbineServices.initPrimaryServices(TurbineServ
i
ces.java:204)
at org.apache.turbine.Turbine.init(Turbine.java:247)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1
2
43)
at
jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.ja
v
a:790)
at
jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:297
)
at
jrun.deployment.DeployerService.initModules(DeployerService.java:711)
at
jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.jav
a
:242)
at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
at
jrun.deployment.DeployerService.handleEvent(DeployerService.java:381)
at
jrunx.kernel.JRunServiceDeployer.fireEvent(JRunServiceDeployer.java:710)
at
jrunx.kernel.JRunServiceDeployer.deployServices(JRunServiceDeployer.java:11
1
)
at
jrunx.kernel.DeploymentService.loadServices(DeploymentService.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
9
)
at

Stockquote webservice down?

2004-10-14 Thread Al.
Thanks,



Re: How to get localized string in VelocityPortletAction

2004-10-14 Thread Dan Moore
Hi Peter.

--- Peter F. [EMAIL PROTECTED] wrote:

 Hello ,
 
 My question is:
 how to get localized string from buildNormalContext(VelocityPortlet
 portlet, Context context, RunData rundata)
 method in VelocityPortletAction.

I was able to do this via this code, in my buildNormalContext method:

   Object ltojb = context.get(l10n);
   CustomLocalizationTool lt = (CustomLocalizationTool) ltojb;
   context.put(test, lt.get(HELLO));
  
In the template, you just reference $test as normal.

Take it easy,
Dan



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



Re: Hotdeploy in jetspeed-1.5

2004-10-14 Thread David Sean Taylor
nick the mytilian wrote:
Hello all!
I am working with jetspeed-1.5 and i am developing some jsp portlets.
Every time that i change one of them, i have to:
1.shutdown tomcat.
2. remove  {TOMCAT_HOME}/webapps/jetspeed
3. remove  {TOMCAT_HOME}/webapps/jetspeed.war
4. write: maven -Dmaven.test.skip=true dist:install  from {JETSPEED_HOME}
5. copy the produced jetspeed.war in {TOMCAT_HOME}/webapps
6. start tomcat.
But this takes a long time for just a simple change!
Isn't there any more easy way?
If you are changing the JSP templates, you shouldn't have to restart 
Tomcat. Just copy the new templates in like what you are trying to do 
below

I try to write maven hotdeploy, but i get a:
BUILD FAILED
File.. /home/users/athanasi/jetspeed-1.5/maven.xml
Element... copy
Line.. 120
Column 87
Failed to copy 
/home/users/athanasi/jetspeed-1.5/target/classes/org/apache/jetsp
eed/services/security/JetspeedSecurityException.class to 
/webapps/jetspeed/WEB-I
NF/classes/org/apache/jetspeed/services/security/JetspeedSecurityException.class 

 due to 
/webapps/jetspeed/WEB-INF/classes/org/apache/jetspeed/services/security/
JetspeedSecurityException.class (No such file or directory)
Total time: 21 seconds
Finished at: Thu Oct 14 00:38:01 EEST 2004


Sounds like your build is not running correctly.
Not sure why that is
Can you build
maven java:compile
and then are all the class files being written to the target directory?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Localization in Jetspeed-1.5

2004-10-14 Thread Nikolaos Athanasis

Hello all,

I am working with jetspeed-1.5.

If i load my portal with the Internet Explorer browser, a lot
of phrases are translated in my language (greek), but if i load my portal
with other browsers (netscape or Mozzila FireFox), there is no translation
for these phrases and everything is presented in english.
How can i make my portal present its information in greek for all kinds of
browsers?

Thank you in advance!
Nikos.


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



working oracle psml in jetspeed 1.5

2004-10-14 Thread Dan Moore
In order to get the PSML working in Oracle, from the 1.5 binary
distribution of Jetspeed, in addition to following the instructions
here regarding importing,
http://portals.apache.org/jetspeed-1/psml_db.html, I also had to make
some changes to class files and sql files.

You need both the src and binary distributions.  There's a diff of the
relevant files below.

Modify the java files:
Add _SEQ onto the value in setPrimaryKeyMethodInfo in each of the
org/apache/jetspeed/om/dbpsml/map/Jetspeed* files.

Modify the psml-db-oracle.sql file (from the src distribution):
Change each of the id columns to PSML_ID, in both places.
Change LOGIN_NAME to USER_NAME.
Remove each of the unique constraints on _NAME columns (login, role,
group).  (I'm not entirely certain about this, but I think if you need
to support multiple languages, you don't want that constraint.)

I tried following the directions to generate the sql files outlined in
http://portals.apache.org/jetspeed-1/psml_db.html to see if the
torque-schema fixed these issues, but didn't see any sql files
generated.

After making these changes, and putting the classes in the classpath, I
was able to able to import profiles and login successfully.

Have a nice day.
Dan

diff---
diff change/JetspeedGroupProfileMapBuilder.java
orig/JetspeedGroupProfileMapBuilder.java
67c67
 tMap.setPrimaryKeyMethodInfo(JETSPEED_GROUP_PROFILE_SEQ);
---
 tMap.setPrimaryKeyMethodInfo(JETSPEED_GROUP_PROFILE);
diff change/JetspeedRoleProfileMapBuilder.java
orig/JetspeedRoleProfileMapBuilder.java
67c67
 tMap.setPrimaryKeyMethodInfo(JETSPEED_ROLE_PROFILE_SEQ);
---
 tMap.setPrimaryKeyMethodInfo(JETSPEED_ROLE_PROFILE);
diff change/JetspeedUserProfileMapBuilder.java
orig/JetspeedUserProfileMapBuilder.java
67c67
 tMap.setPrimaryKeyMethodInfo(JETSPEED_USER_PROFILE_SEQ);
---
 tMap.setPrimaryKeyMethodInfo(JETSPEED_USER_PROFILE);
Only in orig/: orig
diff change/psml-db-oracle.sql orig/psml-db-oracle.sql
25,26c25,26
  PSML_ID INT NOT NULL,
  USER_NAME VARCHAR2 (32) NOT NULL,
---
  USER_ID INT NOT NULL,
  LOGIN_NAME VARCHAR2 (32) NOT NULL,
31c31,32
  PROFILE LONG RAW
---
  PROFILE LONG RAW,
  UNIQUE (LOGIN_NAME)
36c37
 PRIMARY KEY (PSML_ID);
---
 PRIMARY KEY (USER_ID);
48c49
  PSML_ID INT NOT NULL,
---
  GROUP_ID INT NOT NULL,
54c55,56
  PROFILE LONG RAW
---
  PROFILE LONG RAW,
  UNIQUE (GROUP_NAME)
59c61
 PRIMARY KEY (PSML_ID);
---
 PRIMARY KEY (GROUP_ID);
71c73
  PSML_ID INT NOT NULL,
---
  ROLE_ID INT NOT NULL,
77c79,80
  PROFILE LONG RAW
---
  PROFILE LONG RAW,
  UNIQUE (ROLE_NAME)
82c85
 PRIMARY KEY (PSML_ID);
---
 PRIMARY KEY (ROLE_ID);



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



Re: Localization in Jetspeed-1.5

2004-10-14 Thread David Sean Taylor
Nikolaos Athanasis wrote:
Hello all,
I am working with jetspeed-1.5.
If i load my portal with the Internet Explorer browser, a lot
of phrases are translated in my language (greek), but if i load my portal
with other browsers (netscape or Mozzila FireFox), there is no translation
for these phrases and everything is presented in english.
How can i make my portal present its information in greek for all kinds of
browsers?
In Mozilla Firefox, go into Tools-Options-General-Languages and add 
your required language support there

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773 4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to get localized string in VelocityPortletAction

2004-10-14 Thread David Sean Taylor
Dan Moore wrote:
Hi Peter.
--- Peter F. [EMAIL PROTECTED] wrote:

Hello ,
My question is:
how to get localized string from buildNormalContext(VelocityPortlet
portlet, Context context, RunData rundata)
method in VelocityPortletAction.

I was able to do this via this code, in my buildNormalContext method:
   Object ltojb = context.get(l10n);
   CustomLocalizationTool lt = (CustomLocalizationTool) ltojb;
   context.put(test, lt.get(HELLO));
  
In the template, you just reference $test as normal.
the localized string HELLO can be accessed in your templates as:
${l10n.HELLO}
this the context.put is unnecessary
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: working oracle psml in jetspeed 1.5

2004-10-14 Thread David Sean Taylor
Dan Moore wrote:
In order to get the PSML working in Oracle, from the 1.5 binary
distribution of Jetspeed, in addition to following the instructions
here regarding importing,
http://portals.apache.org/jetspeed-1/psml_db.html, I also had to make
some changes to class files and sql files.
You need both the src and binary distributions.  There's a diff of the
relevant files below.
Modify the java files:
Add _SEQ onto the value in setPrimaryKeyMethodInfo in each of the
org/apache/jetspeed/om/dbpsml/map/Jetspeed* files.
The files that are you recommended for patching are not in the CVS. They 
are Torque generated files.

To use Oracle, or any other database besides Hypersonic with Jetspeed-1, 
follow the steps here:

http://portals.apache.org/jetspeed-1/database.html
I believe that the Jetspeed team has made things unnecessarily 
complicated for end users to change their databsae. Asking people to dl 
the source and recompile just to change the database is not user 
friendly and a pain in the ass. Look at all the hell we've caused Dan.

Proposed solution:
Move the Torque generation into a separate sub-project of J1. Create a 
jar for the OM-mapping for each database. Put each of these jars on the 
distribution site with the release:

jetspeed-om-1.6-oracle.jar
jetspeed-om-1.6-mysl.jar
...
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773 4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


PSML problem,how to update it immediately??

2004-10-14 Thread Claire.lee

Hi all,

Its a little bit hard to express the problem I have, so I draw the activity steps:

 

Step:

1.Admin--- [login]---old PSML

\ change PSML---new PSML

|

2.User --- [login] --- still keep at old PSML

 

 

But if its new user:

 

Step:

1.Admin--- [login]---old PSML

\ change PSML---new PSML

 

2.New User --- [login] --- new PSML

 


Im trying to find out how to setup the update time, and I would like to update the 
PSML immediately for all users (not only for new users).

How can this be done?

Real hope you can understand what Im trying to express.

 

Thanks for your help.

 

Claire




-
Yahoo!
100MB 

Re: working oracle psml in jetspeed 1.5

2004-10-14 Thread Dan Moore
Hi David,

--- David Sean Taylor [EMAIL PROTECTED] wrote:

 Dan Moore wrote:
 
  In order to get the PSML working in Oracle, from the 1.5 binary
  distribution of Jetspeed, in addition to following the instructions
  here regarding importing,
  http://portals.apache.org/jetspeed-1/psml_db.html, I also had to
 make
  some changes to class files and sql files.
  
  You need both the src and binary distributions.  There's a diff of
 the
  relevant files below.
  
  Modify the java files:
  Add _SEQ onto the value in setPrimaryKeyMethodInfo in each of the
  org/apache/jetspeed/om/dbpsml/map/Jetspeed* files.
  
 The files that are you recommended for patching are not in the CVS.
 They 
 are Torque generated files.
 
 To use Oracle, or any other database besides Hypersonic with
 Jetspeed-1, 
 follow the steps here:
 
 http://portals.apache.org/jetspeed-1/database.html

I'm certainly no Torque expert.  Thanks for the link.  I followed the
instructions on that page.

I changed Torque.properties:
torque.database.default.adapter=oracle

I didn't change the other config in Torque.properties yet--my database
is down at the moment.  Does Torque need to connect to the db to
generate the sql?  (I hope not.)

Anyway, maven dist did generate new sql files here:
jetspeed-1.5/target/jetspeed-1.5/src/jetspeed-1.5/src/sql/external

I couldn't find any others.  Unfortunately, these sql files do not use
the correct primary key.  Perhaps the torque-schema is incorrect?  I
don't know.  When I look at 
jetspeed-1.5/src/torque-schema/dbpsml-schema.xml, it certainly looks
like the columns are named correctly.

 I believe that the Jetspeed team has made things unnecessarily 
 complicated for end users to change their databsae. Asking people to
 dl 
 the source and recompile just to change the database is not user 
 friendly and a pain in the ass. Look at all the hell we've caused
 Dan.
 
 Proposed solution:
 
 Move the Torque generation into a separate sub-project of J1. Create
 a 
 jar for the OM-mapping for each database. Put each of these jars on
 the 
 distribution site with the release:
 
 jetspeed-om-1.6-oracle.jar
 jetspeed-om-1.6-mysl.jar
 ...

This sounds like a fantastic idea!  

Thanks,
Dan

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



[J2] Tomcat 5 JAASRealm patch no longer needed, version 5.0.28 or higher now required

2004-10-14 Thread Ate Douma
All,
I just checked in additional configuration of J2 when using Tomcat 5 which 
removes the need for the JAASRealm patch.
This new configuration option is available since Tomcat 5.0.28 and therefore 
this version is now the required minimum when using Tomcat 5.

Please upgrade your Tomcat 5 version before using the latest cvs version, if you 
haven't done so already.

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