error after checking out all files of J2

2005-03-01 Thread Thomas . Koch
hi !

i have a problem with the current new files of J2.
when i checked out an deploy etc and start J2 the first time
on my tomcat 5.0.28, i get following message.
m1 works fine. i looked to the nodeset.java, but i can't find any 
mistakes...

type Exception report
message 
description The server encountered an internal error () that prevented it 
from fulfilling this request.
exception 
javax.servlet.ServletException: Servlet execution threw an exception
 
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
 
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
 org.apache.jsp.index_jsp._jspService(index_jsp.java:45)
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause 
java.lang.NoSuchMethodError: 
org.apache.jetspeed.page.document.NodeSet.isEmpty()Z
 
org.apache.jetspeed.page.impl.CastorXmlPageManager.filterDocumentSet(CastorXmlPageManager.java:1540)
 
org.apache.jetspeed.page.impl.CastorXmlPageManager.expandAndProfileDocumentSet(CastorXmlPageManager.java:700)
 
org.apache.jetspeed.page.impl.CastorXmlPageManager.computeProfiledPageContext(CastorXmlPageManager.java:359)
 
org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:118)
 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
 
org.apache.jetspeed.security.impl.PasswordCredentialValveImpl.invoke(PasswordCredentialValveImpl.java:139)
 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
 
org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:117)
 java.security.AccessController.doPrivileged(Native 
Method)
 javax.security.auth.Subject.doAsPrivileged(Subject.java:437)
 
org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:111)
 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
 
org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalURLValveImpl.java:55)
 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
 
org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:127)
 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
 
org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:122)
 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
 
org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:191)
 
org.apache.jetspeed.engine.AbstractEngine.service(AbstractEngine.java:257)
 
org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:225)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
 
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
 org.apache.jsp.index_jsp._jspService(index_jsp.java:45)
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


best regards

tkoch

error after checking out all files of J2

2005-03-01 Thread Thomas . Koch
i forgot:
 
the important line of course:
org.apache.jetspeed.page.document.NodeSet.isEmpty()Z
 
the "Z" !
i don't know what it is and where it's come from.
 
the method isEmpty() is in interface and Impl ok(for me)
 
any ideas
 
thanks

M1 and struts App with Tiles

2005-03-01 Thread Thomas . Koch
hello !
another problem i have:
my M1 installation works fine.

but the M1-version of the struts-bridge does not support tiles.
when i try it, i get following message:

(when i look for this problem in internet i find sites from 2003 - not 
really new)

in the current subversion version of the bridge - tiles will be supported. 


but, is it possible to fix the tiles problem in the M1 version ?
only changing the bridge does not work - i think there are a lot of 
dependencies...

thanks for answer

best regards
tkoch

2005-03-01 14:51:59,662 FATAL tiles.TilesPlugin - TilesPlugin : Specified 
RequestProcessor not compatible with TilesRequestProcessor
2005-03-01 14:53:45,604 FATAL tiles.TilesPlugin - TilesPlugin : Specified 
RequestProcessor not compatible with TilesRequestProcessor
2005-03-01 14:53:45,604 ERROR struts.StrutsPortlet - Include exception
javax.servlet.ServletException: TilesPlugin : Specified RequestProcessor 
not compatible with TilesRequestProcessor
at 
org.apache.struts.tiles.TilesPlugin.initRequestProcessorClass(TilesPlugin.java:360)
at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:164)
at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158)
at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at 
org.apache.portals.bridges.struts.PortletServlet.init(PortletServlet.java:45)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
at 
org.apache.portals.bridges.struts.StrutsPortlet.processRequest(StrutsPortlet.java:283)
at 
org.apache.portals.bridges.struts.StrutsPortlet.doView(StrutsPortlet.java:221)
at 
javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
at 
org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:235)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
at 
org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:213)
at 
org.apache.jetspeed.container.invoker.ServletPortletInvoker.render(ServletPortletInvoker.java:124)
at 
org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:103)
at 
org.apache.jetspeed.container.JetspeedPortletContainerWrapper.renderPortlet(JetspeedPortletContainerWrapper.java:88)
at 
org.apache.jetspeed.aggregator.impl.RenderingJob.run(RenderingJob.java:109)
at 
org.apache.jetspeed.aggregator.impl.Worker$1.run(Worker.java:171)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:437)
at org.apache.jetspeed.aggregator.impl.Worker.run(Worker.java:165)
2005-03-01 15:13:36,886 FATAL tiles.TilesPlugin - TilesPlugin : Specified 
RequestProcessor not compatible with TilesRequestProcessor
2005-03-01 15:13:36,886 ERROR struts.StrutsPortlet - Include exception
javax.servlet.ServletException: TilesPlugin : Specified RequestProcessor 
not compatible with TilesRequestProcessor
at 
org.apache.struts.tiles.TilesPlugin.initRequestProcessorClass(TilesPlugin.java:360)

M1 and struts App with Tiles

2005-03-02 Thread Thomas . Koch
>The M1 release was a milestone only, not a branch.

>As we intend to release a M2 soon (hopefully this month) I think you'll 
have
>to work with the CVS HEAD for now or wait for the M2 release.

ok, thank you for answer !

but with the head there ist another problem you can see in
the other thread. J2 would not like to start correctly:
http://www.mail-archive.com/jetspeed-dev@jakarta.apache.org/msg18970.html


Re: M1 and struts App with Tiles

2005-03-02 Thread Thomas . Koch
>What you are seeing is a mix up of incompatible classes.
>I suggest cleaning up your current J2 project (maven allClean would do),
>completely cleaning up Tomcat, especially the shared/lib folder,
>(or use a fresh Tomcat installation) and build and deploy again.
>That should solve your problem.

take it easy: i love u ! :-)

i tried it so often in my "old tomcat" installation ans maven allClear 
allBuild.
it dit not work. (how many hours i tried...)
now i intstalled tomcat in a new folder and deployed it into this tomcat.
an it works.
now i can try to let run my struts-applikation(s).

thank u very much

tkoch



which way is the best to undeploy a portlet ?

2005-03-02 Thread Thomas . Koch
hi !
which way is the best to undeploy a portlet ?
so that J2 unregister it etc.

only remove it from deploy-folder ,
and then removing war an portlet-folder from webapps ?

best regards

tkoch



"Portlet is Not Available" after including struts-portlet

2005-03-02 Thread Thomas . Koch
hi again - sorry for spamming ;-)

i have a next problem, when i want to integrate a struts-portlet.

i did following steps:

1.
 create in webapps\jetspeed\WEB-INF\pages a file named: bcn.psml
looks like this:


  
  bcnbrowser
  

  
  

  
  
my bcnbrowser
  






2.
create a war-file with application an copy it into 
webapps\jetspeed\WEB-INF\deploy

the portlet xml starts with:


  


3. 
start tomcat 5.0.28

4.
the webapp "bcn" was createt and is reachable under ...8080/bcn

5.
starting J2 under ...8080/jetspeed

6.
choosing site which is titled: bcnbrowser an get following message:







Portlet is Not Available: BcnBrowser
Reason: PortletFactory: Failed to load portlet 
org.apache.portals.bridges.struts.StrutsPortlet:javax.portlet.PortletException: 
class not found 




i can't find this problem in the mailinglist

thank you very much

tkoch

Re: "Portlet is Not Available" after including struts-portlet

2005-03-02 Thread Thomas . Koch
thank you for answer !
no, tomcat was always stopped, when i copied the war file into 
deploy-folder.

i will try it with started tomcat - and then restarting.

tkoch

Re: "Portlet is Not Available" after including struts-portlet

2005-03-02 Thread Thomas . Koch
it doent't work on deploying, when tomcat runs - the same result.
steps were:
1.
maven allClear allBuild
2.
start tomcat and all standard-war were deployed
3.
after this, i copied my war into deploy-folder

tomcat showed this during deployingt (looks good):

 INFO: Loading portlet application from web archive D:\AppServer\Tomcat 
5.0_2\we
bapps\jetspeed\WEB-INF\deploy\bcn_alt2.war
 INFO: Portlet application "bcn": registered=false, deployed=false
 INFO: Deploying portlet app "bcn": portlet application WAR bcn_alt2.war
 INFO: Portlet application deploying from D:\AppServer\Tomcat 
5.0_2\temp\jetspee
d-jar-tmp\bcn_alt2.war to D:\AppServer\Tomcat 
5.0_2\webapps\jetspeed\..\bcn.war
...
Found META-INF/context.xml
Found WEB-INF/portlet.xml
Found web.xml
 INFO: Portlet application deployment of D:\AppServer\Tomcat 
5.0_2\webapps\jetsp
eed\..\bcn.war complete.
 INFO: Portlet app "bcn" successfuly (re)deployed.
02.03.2005 14:21:24 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:D:\AppServer\Tomcat 
5.0_2\c
onf\Catalina\localhost\bcn.xml
JetspeedContainerServlet: starting initialization of context BCN BROWSER
 INFO: No extended metadata found.
 INFO: Loading web.xml into memorybcn
 INFO: Registered the portlet app... bcn
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/classes/ to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/.svn/ to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/commons-beanutils.jar to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/commons-codec-1.3.jar to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/commons-collections.jar to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/commons-digester.jar to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/commons-fileupload.jar to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/commons-lang.jar to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/commons-logging.jar to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/commons-validator.jar to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/jakarta-oro.jar to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/log4j-1.2.8.jar to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/nepatec-struts.jar to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/ojdbc14.jar to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/portals-bridges-common-0.1.jar to class 
path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/portals-bridges-struts-0.2.jar to class 
path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/struts-legacy.jar to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/struts.jar to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/xalan.jar to class path.
 INFO: Adding file:/D:/AppServer/Tomcat 
5.0_2/temp/jetspeed-FileSystemPAM/bcn-cl
asspath-1109769428086/WEB-INF/lib/xercesImpl.jar to class path.
 INFO: Registered portlet app in the class loader registry... bcn
 INFO: Registered portlet app in the search engine... bcn
JetspeedContainerServlet: Initialization complete for context BCN BROWSER







after deploying, i restart tomcat and get the error agein

i got the stacktrace out of the tomcat-log, when error appears.

thank you for help.








2005-03-02 14:26:23 StandardContext[/bcn]JetspeedContainerServlet: Error 
rendering JetspeedContainerServlet error page: 
javax.portlet.PortletException: PortletFactory: Failed to load portlet 
org.apache.portals.bridges.struts.StrutsPortlet:javax.portlet.PortletException: 
class not found
javax.portlet.PortletException: PortletFactory: Failed to load portlet 
or

struts-bridge; struts-demo and pluto

2005-03-03 Thread Thomas . Koch
hi - sry for a lot of questions...

my target is, to modify existing struts-applikations as jsr168 portlet.
so i tried to run the struts-demo from j2 in pluto.
to deploy it, is no problem.
but it don't run, because i get a ClassCastException in

java.lang.ClassCastException
at 
org.apache.jetspeed.portlet.ServletContextProviderImpl.getServletContext(ServletContextProviderImpl.java:40)





there he is waiting for a JetspeedPortletContext
 

have anybody experiences ?
which way could i go?


best regards

tkoch

the full stacktrace:





2005-03-03 11:54:36 ApplicationDispatcher[/struts-demo] Servlet.service() 
for servlet StrutsPortletDemo threw exception
java.lang.ClassCastException
at 
org.apache.jetspeed.portlet.ServletContextProviderImpl.getServletContext(ServletContextProviderImpl.java:40)
at 
org.apache.portals.bridges.struts.StrutsPortlet.getServletContext(StrutsPortlet.java:201)
at 
org.apache.portals.bridges.struts.StrutsPortlet.processRequest(StrutsPortlet.java:275)
at 
org.apache.portals.bridges.struts.StrutsPortlet.doView(StrutsPortlet.java:263)
at 
javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
at 
org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:205)
at 
org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:145)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.pluto.core.PortletServlet.service(PortletServlet.java:140)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
at 
org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:120)
at 
org.apache.pluto.invoker.impl.PortletInvokerImpl.render(PortletInvokerImpl.java:73)
at 
org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:103)
at 
org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.renderPortlet(PortletContainerWrapperImpl.java:70)
at 
org.apache.pluto.portalImpl.aggregation.PortletFragment.service(PortletFragment.java:168)
at 
org.apache.jsp.WEB_002dINF.aggregation.ColumnFragment_jsp._jspService(ColumnFragment_jsp.java:65)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
at 
org.apache.pluto.portalImpl.aggregation.AbstractFragment.service(AbstractFragment.java:106)
at 
org.apache.jsp.WEB_002dINF.aggregation.RowFragment_jsp._jspService(RowFragment_jsp.java:65)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
at 
org.apache.pluto.

Re: "Portlet is Not Available" after including struts-portlet

2005-03-03 Thread Thomas . Koch
>Then you are having some other problem that I am not aware of (yet) :(

mh, thank you
i will try it with a new installes tomcat version.
after that, i have no ideas...

tkoch

Re: "Portlet is Not Available" after including struts-portlet

2005-03-03 Thread Thomas . Koch
hi !
you are right !

it seems to be another reason.

why ?

1.
i installed a new tomcat.
deployed like your way.
problem is the same.

2.
i have build a very very small struts-app
an deployed it too.
it works - i did the same like in the other appl.


so, perhaps a problem of the appl

and:
ich found in jetspped/logs/jetspeed.log the following entries:



2005-03-03 12:46:33,892 [http-8080-Processor24] INFO 
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No 
portlet entity defined for fragment ID 1 attempting to 
auto-generate...
2005-03-03 12:46:33,908 [http-8080-Processor24] DEBUG 
org.apache.jetspeed.aggregator.impl.RenderingJob - Rendering OID 1 
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
2005-03-03 12:46:33,939 [http-8080-Processor24] ERROR 
org.apache.jetspeed.factory.JetspeedPortletFactory - PortletFactory: 
Failed to load portlet org.apache.portals.bridges.struts.StrutsPortlet
javax.portlet.PortletException: class not found
at 
org.apache.portals.bridges.struts.StrutsPortlet.init(StrutsPortlet.java:139)
at 
org.apache.jetspeed.factory.JetspeedPortletFactory.getPortlet(JetspeedPortletFactory.java:193)
at 
org.apache.jetspeed.factory.JetspeedPortletFactoryProxy.getPortlet(JetspeedPortletFactoryProxy.java:71)
at 
org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:219)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
at 
org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:215)
at 
org.apache.jetspeed.container.invoker.ServletPortletInvoker.render(ServletPortletInvoker.java:125)
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.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:61)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:142)
at $Proxy9.render(Unknown Source)
at 
org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:103)
at 
org.apache.jetspeed.container.JetspeedPortletContainerWrapper.renderPortlet(JetspeedPortletContainerWrapper.java:88)
at 
org.apache.jetspeed.aggregator.impl.RenderingJob.execute(RenderingJob.java:108)
at 
org.apache.jetspeed.aggregator.impl.PortletRendererImpl.renderNow(PortletRendererImpl.java:103)
at 
org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.aggregateAndRender(PageAggregatorImpl.java:261)
at 
org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.aggregateAndRender(PageAggregatorImpl.java:244)
at 
org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.build(PageAggregatorImpl.java:148)
at 
org.apache.jetspeed.aggregator.AggregatorValve.invoke(AggregatorValve.java:48)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 
org.apache.jetspeed.pipeline.valve.impl.ActionValveImpl.invoke(ActionValveImpl.java:117)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 
org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:76)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 
org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:133)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 
org.apache.jetspeed.security.impl.PasswordCredentialValveImpl.invoke(PasswordCredentialValveImpl.java:139)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 
org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:117)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:437)
at 
org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:111)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNe

Re: "Portlet is Not Available" after including struts-portlet

2005-03-03 Thread Thomas . Koch
thank you.
the 02-version of bridge is in correct folder...


Re: "Portlet is Not Available" after including struts-portlet

2005-03-03 Thread Thomas . Koch
i found the solution !

it was a mix of incompatible *.jar from struts...
learned a lot :-)

thanks for all tipps

tkoch

tiles not work; struts --> struts-bridge

2005-03-04 Thread Thomas . Koch
hi !
i have a problem with my tiles.
the applications starts correctly.
but the pagetr is build by tiles and i nothing.

can someone control my eintries ?
the applikations worked fine before start to modify into portlet...

struts-config:
   
   

   
  
  
  
   

web.xml

  
/tags/struts-html
 /WEB-INF/struts-1.2.4-portlet-html.tld
  

tiles-defs.xml


http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>




  

 


  







jsp:

<%@ page language="java"%>
<%@ taglib uri="/tags/struts-tiles" prefix="tiles"%>



 




used jars:


thank you very much

best regards

thomas koch



Re: tiles not work; struts --> struts-bridge

2005-03-04 Thread Thomas . Koch
time for weekend.
my mistake.

sry
and 
best regards

thomas koch

need help: session attributes in struts-portlet are null (not there)

2005-03-04 Thread Thomas . Koch
hi, i am still a newbie!

i have a question. i have some trouble with the documention and 
understanding.

i made a struts-portlet with the struts-bridge.

in portlet-mode(in j2) my session-attributes are still empty or not 
aviable
when i change to next site.

example.
in one struts action i do this:
request.getSession().setAttribute(BcnConstants.SELECTED_BOCHECK, boCheck);

in the other the attribute is not in session - so i get null.


now i tried it with a struts-portlet-config.xml, but it have no effect.
(have i register this xml-file ?)







  
 


can anyone bring me on the correct way ?


thank u !

have a nice weekend

tkoch


Re: StackOverFlowError when using a new build jetspeed

2005-03-15 Thread Thomas . Koch
hi !
i have nealry the same problem.
but in my case everthing runs fine :
i can logon and use my own portlets - the others
are not interesting for me - at the moment.

but i get in the tomcat-cmd a stackoverflow.
i have a little piece of the tomcat log:

2005-03-15 10:15:50 StandardContext[/demo]JetspeedContainerServlet: Error 
rendering portlet "BookmarkPortlet": java.lang.StackOverflowError
java.lang.StackOverflowError

2005-03-15 10:15:50 StandardContext[/demo]JetspeedContainerServlet: Error 
rendering JetspeedContainerServlet error page: 
java.lang.StackOverflowError
java.lang.StackOverflowError

2005-03-15 10:23:36 StandardContext[/demo]JetspeedContainerServlet: Error 
rendering portlet "BookmarkPortlet": java.lang.StackOverflowError
java.lang.StackOverflowError

2005-03-15 10:23:36 StandardContext[/demo]JetspeedContainerServlet: Error 
rendering JetspeedContainerServlet error page: 
java.lang.StackOverflowError
java.lang.StackOverflowError

best regards

getting struts-plugins in a portlet

2005-03-15 Thread Thomas . Koch
hi !

can anybody tell me, how i could get the struts-plugins in a 
struts-portlet  ?

my problem:
in past i could get the plugins by this method:

  public static ServiceFactory getServiceFactory(ServletContext context) 
throws InternalException {
PlugIn[] plugIns = (PlugIn[]) 
context.getAttribute(Globals.PLUG_INS_KEY);


i could call this methode from actions and nonaction-classes.


the method works in a portlet also fine, when the caller is a action.
otherway i get no plug-ins.

is it possible to get the plugins over the portletcontext ?

when i try portletrequest.getsession().getcontext()..
i get only null...


thank you very much





submit form in struts-portlet

2005-03-16 Thread Thomas . Koch
hi !

my problem is, that the following formular  doesn't work in a portlet 
(with struts-bridge).
i get no errors, only a white page. when i use the portlet as single app 
it also works fine.

which way my link have to go to submit the form to my action ?
i think, that the JS is the problem, isnt it ?
the link:test works 
fine, but i hav no form in my action, of course...



i had a formular like this in my struts-app:





...

 

and a save button like this:


save


and at last a JS-funcion like this:

function submitForm()
{ 
if(checkRequiredFields()){
if(checkUsername()){
 document.getElementById("EDITFORM").submit();
}
}
}




thank for every help

thomas

Re: submit form in struts-portlet

2005-03-17 Thread Thomas . Koch
hi !

thank you for your tips.

i tried it like follow.
but i detect, that i don't reach the action after submit..



<%@ taglib uri="/tags/struts-portlet" prefix="html-p" %>




save



function submitForm(theform)
{ 
theform.submit();

if(checkRequiredFields()){
if(checkUsername()){
 document.getElementById("EDITFORM").submit();
}
}
}


at the moment i have no idea.

thank u

thomas koch

Re: submit form in struts-portlet

2005-03-17 Thread Thomas . Koch
the problem is, that he don't execute any javascript.

test
for example does not work.

mh, i dont know.

J2(stuts-Bridge) problems with german umlauts (vowel mutation) e.g. üäö

2005-03-17 Thread Thomas . Koch
hi !

is it possible thats true ?
ia m using a struts-portet with J2 und struts-bridge 0.2

when i insert some data into a formular which contains a few umlauts(ü or 
ä or ö)
i will get utf-signs in my next action and in my object.

is that a something i can configure or is it a general ?

best regards

thomas koch

Re: submit form in struts-portlet

2005-03-17 Thread Thomas . Koch
hi!
i will try it soon. thanks.

at the moment i do it like this:


search

that works fine

thomas

Re: [J2] Logging in portlets

2005-03-17 Thread Thomas . Koch
hi !
my logging with log4j and tomcat 5.0.28 and cvs-version from 2.5 weeks 
works fine.
the property is in webinf/classes and the log is on desktop, because i'am 
starting tomcat from this point.

thomas

workflow of struts-bridge

2005-03-21 Thread Thomas . Koch
hi !

i want to understand the workflow of the struts-bridge complete.
somebody can give me a tip where the best point of beginning is ?
 the strutsPortlet, PortletServlet ? 
have someone some documents, in addition to the feature.html and the 
readme ?

best regards

thomas

RE: workflow of struts-bridge

2005-03-21 Thread Thomas . Koch
hi !
thanks, but the file after the link you post is one of the documents i 
told from "feature.html".
i forgot the "s" :-), sry.
yes it descripes the bridge, but really more the features than the 
architecture.
and the architectur i am interesting in.
in the one hand because it is interesting and i need it for projects,  at 
the other hand because i wanted to write something about it in my  diploma 
thesis.





http://portals.apache.org/jetspeed-2/multiproject/portals-bridges-struts/features.html


This is a little bit burried documentation that I have been able to find 
from their website. Apart from that, if you take a look at the JPetstore 
sample application that comes with jetspeed, it has a very good example of 

struts-bridge in action.

Amit

Original Message Follows
From: [EMAIL PROTECTED]
Reply-To: "Jetspeed Users List" 
To: jetspeed-user@jakarta.apache.org
Subject: workflow of struts-bridge
Date: Mon, 21 Mar 2005 14:14:28 +0100

hi !

i want to understand the workflow of the struts-bridge complete.
somebody can give me a tip where the best point of beginning is ?
  the strutsPortlet, PortletServlet ?
have someone some documents, in addition to the feature.html and the
readme ?

best regards

thomas



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




temp solution to run struts-bridge-app in pluto rc1

2005-03-22 Thread Thomas . Koch
hi !
i dont know, why i got no answer for my mail rom 03.03 - so two reasons 
are possible.
nobody or everybody knows the answer...
for everybody who is interisting to know how he
could start a struts-bridge-application in pluto rc1:

at the moment its only a temporary solution with the struts-demo

 go to file:
ServletContextProviderImpl in J2 project :-)

change line:
return 
((JetspeedPortletContext)portlet.getPortletContext()).getServletContext();

into
 return 
((PortletContextImpl)portlet.getPortletContext()).getServletContext();

you havt to import
import org.apache.pluto.core.impl.PortletContextImpl;

compile an build the j2 project.

find the
jetspeed-commons-2.0-M2-dev.jar (it includes the 
ServletContextProviderImpl)
and copy it into the web-inf/lib







web.xml:

StrutsPortletDemo
StrutsPortletDemo Wrapper
Automated generated Portlet Wrapper
 org.apache.pluto.core.PortletServlet

portlet-class
 
org.apache.portals.bridges.struts.StrutsPortlet


portlet-guid
struts-demo.StrutsPortletDemo



StrutsPortletDemo
/StrutsPortletDemo/*









Portlet.xml



  

  ServletContextProvider
 org.apache.jetspeed.portlet.ServletContextProviderImpl


  ViewPage
  /Welcome.do


  HelpPage
  /Tour.do

StrutsPortletDemo
Struts Portlet Demo
This is the struts MailReader portlet demo
 
org.apache.portals.bridges.struts.StrutsPortlet
-1

  text/html
  VIEW
  HELP


  Struts MailReader Demo
  This is the short title
  Struts

  






Portletentitieregsitry.xml


struts-demo

 struts-demo.StrutsPortletDemo

StrutsPortletDemo
StrutsPortletDemo
false












Pageregistry.xml







 


Test
...




















Re: temp solution to run struts-bridge-app in pluto rc1

2005-03-22 Thread Thomas . Koch
thanks a lot !

your description elucidated why a "temp" is in the subject.
my way is(was) the brute force of course.
i did it like this, because i needed a fast way and
i did't know what dependencies the ServletContextProviderImpl.java has...

thomas






Thomas,

[EMAIL PROTECTED] wrote:
> hi !
> i dont know, why i got no answer for my mail rom 03.03 - so two reasons 
> are possible.
> nobody or everybody knows the answer...
> for everybody who is interisting to know how he
> could start a struts-bridge-application in pluto rc1:
3: everybody who does know the answer was too damn busy at the time ;-)

Although your solution will work, I can't say I recommend doing it like 
this.
Once the Bridges subproject is finally started under Apache Portals 
(hopefully
soon now...) I will provide portal specific providers for the 
ServletContextProvider.
I could do so right now for Pluto except I don't want to bring its 
dependency into
the bridges-common project just to be able to compile it.

I suggest the following solution until we can provide this through the 
Bridges Project:
- Copy the 
jetspeed/commons/src/java/org/apache/jetspeed/portlet/ServletContextProviderImpl.java
   into a new package/folder of your own like:
 org.apache.portals.bridges.common.providers.pluto
   and adapt the package in the ServletContextProviderImpl.java file 
accordingly.
- Make the changes you described below (replacing JetspeedPortletContext 
with PortletContextImpl)
   and replace import statement 
org.apache.jetspeed.container.JetspeedPortletContext with
   org.apache.pluto.core.impl.PortletContextImpl.
   Now you will have a Jetspeed independant ServletContextProvider for 
pluto.
- Compile the class and put it into $Tomcat/shared/lib and you're done.
   And you *don't* have to use the jetspeed-commons-2.0-M2-dev.jar 
anymore.

Regards, Ate

> 
> at the moment its only a temporary solution with the struts-demo
> 
>  go to file:
> ServletContextProviderImpl in J2 project :-)
> 
> change line:
> return 
> 
((JetspeedPortletContext)portlet.getPortletContext()).getServletContext();
> 
> into
>  return 
> ((PortletContextImpl)portlet.getPortletContext()).getServletContext();
> 
> you havt to import
> import org.apache.pluto.core.impl.PortletContextImpl;
> 
> compile an build the j2 project.
> 
> find the
> jetspeed-commons-2.0-M2-dev.jar (it includes the 
> ServletContextProviderImpl)
> and copy it into the web-inf/lib
> 
> 
> 
> 
> 
> 
> 
> web.xml:
> 
> StrutsPortletDemo
> StrutsPortletDemo Wrapper
> Automated generated Portlet Wrapper
>  org.apache.pluto.core.PortletServlet
> 
> portlet-class
> 
> 
org.apache.portals.bridges.struts.StrutsPortlet
> 
> 
> portlet-guid
> struts-demo.StrutsPortletDemo
> 
> 
> 
> StrutsPortletDemo
> /StrutsPortletDemo/*
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Portlet.xml
> 
> 
> 
>   
> 
>   ServletContextProvider
>  org.apache.jetspeed.portlet.ServletContextProviderImpl
> 
> 
>   ViewPage
>   /Welcome.do
> 
> 
>   HelpPage
>   /Tour.do
> 
> StrutsPortletDemo
> Struts Portlet Demo
> This is the struts MailReader portlet 
demo
> 
> 
org.apache.portals.bridges.struts.StrutsPortlet
> -1
> 
>   text/html
>   VIEW
>   HELP
> 
> 
>   Struts MailReader Demo
>   This is the short title
>   Struts
> 
>   
> 
> 
> 
> 
> 
> 
> Portletentitieregsitry.xml
> 
> 
> struts-demo
> 
>  struts-demo.StrutsPortletDemo
> 
> StrutsPortletDemo
> StrutsPortletDemo
> false
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Pageregistry.xml
> 
> 
> 
> 
> 
>  
class="org.apache.pluto.portalImpl.aggregation.navigation.TabNavigation">
> 
> 
> 
> 
> Test
> ...
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 


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




Re: Portlet body not shown

2005-03-23 Thread Thomas . Koch
hi !
what kind of portlet it is ?

i had the problem with a struts-portlet if i used wrong 
jars and tld's or put too much redirects in my struts-config

thomas






Vladimir Simjanoski <[EMAIL PROTECTED]>
23.03.2005 12:22
Please respond to "Jetspeed Users List"
 
To: jetspeed-user@jakarta.apache.org
cc: 
Subject:Portlet body not shown


Hello!
I've Tomcat 5.0.28 with J2 (binary) installed.

Done one simple portlet and deployed it like it's explained in the
http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.
The problem is that I only got the portlet title in the default page
(the portlet body is missing).
Since I couldn't find anything in the logs, I don't know what could be
the problem.

I'm trying to push J2 as a JSR168 implementation for the student's
portal in my university.
So, I need to show something very quickly. PLEASE, HELP!!!


Regards, 
Vladimir

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




Re: Portlet body not shown

2005-03-23 Thread Thomas . Koch
i only worked with struts-portlets.

perhaps u could post your psml and other sources ?





Vladimir Simjanoski <[EMAIL PROTECTED]>
23.03.2005 12:42
Please respond to "Jetspeed Users List"
 
To: Jetspeed Users List 
cc: 
Subject:Re: Portlet body not shown


Hi!
It's just a dummy portlet that extends GenericPortlet and in doView()
and doEdit() renders just one line (i.e. "FIRST TEST..."). No Struts,
no forwarding.

vladimir

On Wed, 23 Mar 2005 12:24:20 +0100, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> hi !
> what kind of portlet it is ?
> 
> i had the problem with a struts-portlet if i used wrong
> jars and tld's or put too much redirects in my struts-config
> 
> thomas
> 
> Vladimir Simjanoski <[EMAIL PROTECTED]>
> 23.03.2005 12:22
> Please respond to "Jetspeed Users List"
> 
> To: jetspeed-user@jakarta.apache.org
> cc:
> Subject:Portlet body not shown
> 
> 
> Hello!
> I've Tomcat 5.0.28 with J2 (binary) installed.
> 
> Done one simple portlet and deployed it like it's explained in the
> http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.
> The problem is that I only got the portlet title in the default page
> (the portlet body is missing).
> Since I couldn't find anything in the logs, I don't know what could be
> the problem.
> 
> I'm trying to push J2 as a JSR168 implementation for the student's
> portal in my university.
> So, I need to show something very quickly. PLEASE, HELP!!!
> 
> Regards,
> Vladimir
> 
> -
> 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]




Re: Portlet body not shown

2005-03-23 Thread Thomas . Koch
du you have a view.jsp ?
jspView
   /view.jsp





Vladimir Simjanoski <[EMAIL PROTECTED]>
23.03.2005 13:05
Please respond to "Jetspeed Users List"
 
To: Jetspeed Users List 
cc: 
Subject:Re: Portlet body not shown


I've just added this to default-page.psml

  
  


My first.war(deployed in \WEB-INF\deploy) has the following structure
 - WEB-INF
  - classes/ (with only the portlet class)
  - lib/ 
  - portlet.xml
  - web.xml

and the portlet.xml looks like:



 
   jspView
   /view.jsp
 
FirstPortlet
FirstPortlet Wrapper
This is a test
test.FirstPortlet
-1

  text/html
  EDIT
  VIEW
  HELP

en

  FirstPortlet Title
  the very first
  First

  



Users List"
> 
> To: Jetspeed Users List 
> cc:
> Subject:Re: Portlet body not shown
> 
> 
> Hi!
> It's just a dummy portlet that extends GenericPortlet and in doView()
> and doEdit() renders just one line (i.e. "FIRST TEST..."). No Struts,
> no forwarding.
> 
> vladimi
> 
> On Wed, 23 Mar 2005 12:24:20 +0100, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > hi !
> > what kind of portlet it is ?
> >
> > i had the problem with a struts-portlet if i used wrong
> > jars and tld's or put too much redirects in my struts-config
> >
> > thomas
> >
> > Vladimir Simjanoski <[EMAIL PROTECTED]>
> > 23.03.2005 12:22
> > Please respond to "Jetspeed Users List"
> >
> > To: jetspeed-user@jakarta.apache.org
> > cc:
> > Subject:Portlet body not shown
> >
> >
> > Hello!
> > I've Tomcat 5.0.28 with J2 (binary) installed.
> >
> > Done one simple portlet and deployed it like it's explained in the
> > http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.
> > The problem is that I only got the portlet title in the default page
> > (the portlet body is missing).
> > Since I couldn't find anything in the logs, I don't know what could be
> > the problem.
> >
> > I'm trying to push J2 as a JSR168 implementation for the student's
> > portal in my university.
> > So, I need to show something very quickly. PLEASE, HELP!!!
> >
> > Regards,
> > Vladimir
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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




Re: Portlet body not shown

2005-03-23 Thread Thomas . Koch
i'am not fit in normal portlets, but perhaps:

the portlet.xml execute the veiw.jsp.
what is in this jsp ?

and in your portlet u write into the response the a ".."

it's possible that one of both will not use ?





yes, it's in the root of the portlet application.
I've tried both ways:
  - redirect to view.jsp from the doVIew() of the portlet
  - just put this in doView()
   - response.setContentType("text/html");
   - response.getWriter().print("Something...");
The effect is the same in both ways...
Any idea what am I doing wrong?

On Wed, 23 Mar 2005 13:16:03 +0100, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> du you have a view.jsp ?
> jspView
>/view.jsp
> 
> Vladimir Simjanoski <[EMAIL PROTECTED]>
> 23.03.2005 13:05
> Please respond to "Jetspeed Users List"
> 
> To: Jetspeed Users List 
> cc:
> Subject:Re: Portlet body not shown
> 
> I've just added this to default-page.psml
> 
>   
>   
> 
> 
> My first.war(deployed in \WEB-INF\deploy) has the following structure
>  - WEB-INF
>   - classes/ (with only the portlet class)
>   - lib/
>   - portlet.xml
>   - web.xml
> 
> and the portlet.xml looks like:
> 
> 
> 
>  
>jspView
>/view.jsp
>  
> FirstPortlet
> FirstPortlet Wrapper
> This is a test
> test.FirstPortlet
> -1
> 
>   text/html
>   EDIT
>   VIEW
>   HELP
> 
> en
> 
>   FirstPortlet Title
>   the very first
>   First
> 
>   
> 
> 
> Users List"
> >
> > To: Jetspeed Users List 
> > cc:
> > Subject:Re: Portlet body not shown
> >
> >
> > Hi!
> > It's just a dummy portlet that extends GenericPortlet and in doView()
> > and doEdit() renders just one line (i.e. "FIRST TEST..."). No Struts,
> > no forwarding.
> >
> > vladimi
> >
> > On Wed, 23 Mar 2005 12:24:20 +0100, [EMAIL PROTECTED]
> > <[EMAIL PROTECTED]> wrote:
> > > hi !
> > > what kind of portlet it is ?
> > >
> > > i had the problem with a struts-portlet if i used wrong
> > > jars and tld's or put too much redirects in my struts-config
> > >
> > > thomas
> > >
> > > Vladimir Simjanoski <[EMAIL PROTECTED]>
> > > 23.03.2005 12:22
> > > Please respond to "Jetspeed Users List"
> > >
> > > To: jetspeed-user@jakarta.apache.org
> > > cc:
> > > Subject:Portlet body not shown
> > >
> > >
> > > Hello!
> > > I've Tomcat 5.0.28 with J2 (binary) installed.
> > >
> > > Done one simple portlet and deployed it like it's explained in the
> > > http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.
> > > The problem is that I only got the portlet title in the default page
> > > (the portlet body is missing).
> > > Since I couldn't find anything in the logs, I don't know what could 
be
> > > the problem.
> > >
> > > I'm trying to push J2 as a JSR168 implementation for the student's
> > > portal in my university.
> > > So, I need to show something very quickly. PLEASE, HELP!!!
> > >
> > > Regards,
> > > Vladimir
> > >
> > > 
-
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
[EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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




Re: Portlet body not shown

2005-03-23 Thread Thomas . Koch
in this example, someone use the write()-method.

public void render(
RenderRequest request,
RenderResponse response)
throws PortletException, IOException
{
renderCounter++;
response.setTitle("Simple Portlet");
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.write("The server has instantiated " +
portletCounter +
" copies of the portlet");
out.write("This portlet has been rendered " +
renderCounter +
" times (including this one)");
out.write("This portlet has received " +
actionCounter +
" action requests");
PortletURL action = response.createActionURL();
out.write("Click here to trigger an action.");
}



thomas koch
nepatec gmbh
glashüttenstr. 2, 30165 hannover
fon +49(0)511 935 946.51, fax +49(0)511 935 946.57
mailto:[EMAIL PROTECTED]
http://www.nepatec.de




Vladimir Simjanoski <[EMAIL PROTECTED]>
23.03.2005 13:29
Please respond to "Jetspeed Users List"
 
To: Jetspeed Users List 
cc: 
Subject:Re: Portlet body not shown


yes, it's in the root of the portlet application.
I've tried both ways:
  - redirect to view.jsp from the doVIew() of the portlet
  - just put this in doView()
   - response.setContentType("text/html");
   - response.getWriter().print("Something...");
The effect is the same in both ways...
Any idea what am I doing wrong?

On Wed, 23 Mar 2005 13:16:03 +0100, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> du you have a view.jsp ?
> jspView
>/view.jsp
> 
> Vladimir Simjanoski <[EMAIL PROTECTED]>
> 23.03.2005 13:05
> Please respond to "Jetspeed Users List"
> 
> To: Jetspeed Users List 
> cc:
> Subject:Re: Portlet body not shown
> 
> I've just added this to default-page.psml
> 
>   
>   
> 
> 
> My first.war(deployed in \WEB-INF\deploy) has the following structure
>  - WEB-INF
>   - classes/ (with only the portlet class)
>   - lib/
>   - portlet.xml
>   - web.xml
> 
> and the portlet.xml looks like:
> 
> 
> 
>  
>jspView
>/view.jsp
>  
> FirstPortlet
> FirstPortlet Wrapper
> This is a test
> test.FirstPortlet
> -1
> 
>   text/html
>   EDIT
>   VIEW
>   HELP
> 
> en
> 
>   FirstPortlet Title
>   the very first
>   First
> 
>   
> 
> 
> Users List"
> >
> > To: Jetspeed Users List 
> > cc:
> > Subject:Re: Portlet body not shown
> >
> >
> > Hi!
> > It's just a dummy portlet that extends GenericPortlet and in doView()
> > and doEdit() renders just one line (i.e. "FIRST TEST..."). No Struts,
> > no forwarding.
> >
> > vladimi
> >
> > On Wed, 23 Mar 2005 12:24:20 +0100, [EMAIL PROTECTED]
> > <[EMAIL PROTECTED]> wrote:
> > > hi !
> > > what kind of portlet it is ?
> > >
> > > i had the problem with a struts-portlet if i used wrong
> > > jars and tld's or put too much redirects in my struts-config
> > >
> > > thomas
> > >
> > > Vladimir Simjanoski <[EMAIL PROTECTED]>
> > > 23.03.2005 12:22
> > > Please respond to "Jetspeed Users List"
> > >
> > > To: jetspeed-user@jakarta.apache.org
> > > cc:
> > > Subject:Portlet body not shown
> > >
> > >
> > > Hello!
> > > I've Tomcat 5.0.28 with J2 (binary) installed.
> > >
> > > Done one simple portlet and deployed it like it's explained in the
> > > http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.
> > > The problem is that I only got the portlet title in the default page
> > > (the portlet body is missing).
> > > Since I couldn't find anything in the logs, I don't know what could 
be
> > > the problem.
> > >
> > > I'm trying to push J2 as a JSR168 implementation for the student's
> > > portal in my university.
> > > So, I need to show something very quickly. PLEASE, HELP!!!
> > >
> > > Regards,
> > > Vladimir
> > >
> > > 
-
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
[EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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




Re: Struts bridge concept related Question

2005-03-23 Thread Thomas . Koch
i hope it's ok for ate.
i have same words from him:

If you post form data to Struts it should (preferrably) be processed in an
"action handling only" Struts Action. The form should post using an
ActionURL (required by the specs).
In the ActionRequest, the targetted Struts Action updates your Model (the
M in MVC) if need be and forwards (preferrably with redirect="true") to an
"
view handling only" Struts Action.
Within the following RenderRequest(s), the "view handling" Struts Action
uses the Model to configure the required JSP rendering state/data if need
be.
Its very easy to use an include only Action mapping for that if nothing
has to be configured: 
It is advised to use an ActionMapping even for those situations as it
properly hides the rendering solution.
This applies to all Struts applications in general and a strong
recommendation from the Struts team too.

I also suggest you read up a bit on the Struts Bridge if you haven't done
so yet.
You should start with the README.txt in the Struts Bridge source tree.
Although the README.txt is a bit outdated already (haven't found the time
yet to write a proper userguide), it explains the above recommended flow
of actions.
And for more up todate information about the new features of the current
Struts Bridge 0.2 version:
  
http://portals.apache.org/jetspeed-2/multiproject/portals-bridges-struts/features.html


Happy coding, Ate






Hi all,

Please pardon my stupid question because I dont have much experience with 
struts or portals !!!

I have gone thru the struts-bridge documentation that is given on the 
jetspeed website, and I have a few questions as to what would be the best 
way to solve my problem.

I have two pages in a portlet. On the first page there is a submit button, 

and a textField. When user clicks the button, the second page should come 
up. The second page has a drop down which needs to be loaded based on the 
textField value that the user entered on the first page.

>From the documentation, I think here is how I should do it ---

I need to have two actions. When user clicks submit button, the first 
action 
(which is action-URL) gets called, I save the textField value in DB. Then 
redirect to the second action in the actionMapping. And the second action 
will be a render-URL, and that will call the DB and load the dropdown and 
put it in session and forward to the second page ??

Please bear with me if the question is very dumb :(

Thanks,
Amit



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




ways to inter-portlet-application-communication(inJ2)

2005-03-29 Thread Thomas . Koch
hi together !

if i am looking in the internet for ways of interportlet-communication i 
found
a lot of description, how i save a object in session.

now i have 2-3 questions to this:

1.  is it true: ? when we speak from the application_scope, we speak 
from the scope of the portlet-application
and not of the scope from the portal or portlet container ?!
so it's not possible to change data between two 
portlet-applications like this:
 
 portletSession.setAttribute(key,value,PortletSession.APPLICATION_SCOPE);

2.  as a result of this, we have to develop ways with other 
tecnologies, like webservices, RMI, SOAP etc. ?!

3.  existing way's in J2 ?

best regards

thomas

problem with sourcen of the struts-bridge

2005-04-06 Thread Thomas . Koch
hi !

i have a struts-portlet-application which works fine.
it's include the portals-bridges-struts-0.2.jar.

if i want to debug an see what happend in the bridge
i includes the java-files aof the bridge:

package org.apache.portals.bridges.struts and following..

also i included the 
org.apache.portals.bridges.common.ServletContextProvider class because
the StrutsPortlet need it.

when i start the application now i get a exception from the StrutsPortlet 
in line 140.

coming from this if-statement:

Object obj = clazz.newInstance();
if (ServletContextProvider.class.isInstance(obj))
{
servletContextProvider = (ServletContextProvider) 
obj;
}
else
throw new PortletException("class not found");

it goes into the else.
but i dont understand the problem at the moment.
why is obj not a instance of ServletContextProvider?


it would be very nice if someone could help me.

thomas


Re: Jetspeed-2 Struts application as a portlet

2005-04-18 Thread Thomas . Koch
hi !
what is your status ?
you already tried somet. out?

at first you should read the readme.txt from from the struts-bridge u have 
to use.
after this, this: 
http://portals.apache.org/jetspeed-2/multiproject/portals-bridges-struts/features.html

the readme.txt explains the first steps.

good luck and tell us more - if you have any problems

thomas



the readme.txt:


Copyright 2004 The Apache Software Foundation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Apache Portals Struts Framework Bridge:

This is the initial version of a small bridge to allow Struts to be used 
as Action handler and context renderer within a portlet.
It's far from complete yet but already the standard MailReader example 
application does run nicely under Jetspeed 2.
This demo application can be found under the applications folder in 
Jetspeed 2 and is automatically build and deployed with its setup.

Documentation I haven't really written yet (you're looking at all there is 
right now) but will be provided as soon as possible.

Overview:

  The problem with embedding Struts within a portlet is that Struts 
processes action handling and view rendering all in one event.
  To be able to use Struts the framework creates a *virtual* servlet 
context in which it intercepts the Struts processing after
  its action handling and postpones the view rendering to the portlet 
RenderRequest.
  To be able to do this *right* a Struts portlet application needs to 
follow some rules.

  Not every Struts application will run out of the box!

  A Struts page url within the portlet is encoded as a portlet render 
parameter. To be able to target a different page, adapted versions
  of the  and  tags are supplied (taglib 
struts-portlet.tld). These will generated a PortletURL with the target
  page correctly encoded as (action) parameter. Other Struts tags will 
have to be adapted as well but only these are done for now.

Assumptions, restrictions and features:

  All user interactions go through actions. Direct jsp access by the user 
will break the framework. This is already *recommended*
  for any Struts application so this should be not a big problem. Enforce 
this by storing all jsp files beneath WEB-INF.

  Struts page url's may not contain '|' or '$' characters. These are 
currently used to encode a page url to be able to use it as
  a render parameter.

  No direct output rendering from an action. All output should be rendered 
from an ActionForward after action processing.
  After an action the resulting view rendering ActionForward is included, 
forwarded or redirected to by Struts. The framework will
  intercept this and postpone the actual rendering to the RenderRequest 
event of the portlet.

  For an include or forward the current Struts context will be temporarily 
saved in a StrutsRenderContext object in the session. This
  contains the actual render path, the current ActionMapping, ActionForm, 
ActionMessages and errors (if defined).

  For a redirect just the new Struts page url will be set (note: these 
ActionForwards need to point at an action mapping, NOT a jsp).

  During a RenderRequest the framework will send Struts once again through 
the same processing path but will intercept before it will
  actually start checking/validating parameters. It'll then check if a 
StrutsRenderContext is available. If so, the context will be
  loaded into the request context and the saved ActionForward path will 
now be included (forwards are not allowed in portlets). Otherwise
  Struts will just continue processing (but won't have any parameters to 
process).

  The consequence of this solution is that input action chaining isn't 
supported (atleat not yet). So action processing realy should be
  done in one action only. Furthermore, view rendering should normally NOT 
be dependent on request scope input parameters. This is
  supported by the StrutsRenderContext (which ONLY saves the ActionForm 
and messages and currently NO other parameters or attributes)
  but really only meant for handling validation errors and will only work 
once (refreshing after a validation error will clear any input
  /errormessage). A proper MVC implementation should already give you that 
by the way. If input state has to be preserved beyond one
  request, session scope ActionForms and ActionMessages stored in the 
session (supported since Struts 1.2) should be used.

  To get the proper flow, ActionForwards used after a successfull action 
processing really should define redirect="true".

Re: The same Struts Portlet, rendered multiple time on the same page

2005-04-20 Thread Thomas . Koch
hi !

to the first i can say following:

if you have 1 struts-portlet-appliactions rendered multiple times in 
portal-site you   will get always the same content. that is right.  the 
struts-context will be saved after the action request for all following 
render requests - in the session !!!  so both portlets will send a 
render-request, but the session-object from both will be equal - so both 
will get the  same rendercontext...

the second i have to read some times more


thomas






Hi,

what happens if I have the same Struts Portlet rendered multiple times on
just one page? We had some tests and both Portlets synchroniously changed
their state and called the same Struts action. So the Struts Bridge does 
not
hold a truly instantiated "Struts context" for each Struts Portlet called, 
I
suppose, but only one "Struts context" for each Struts application. Is 
that
right?

Furthermore, we did quite a hack to invoke a portlet while processing
another portlet (getting the suiting PortletInvoker for the portlet we 
want
to control. We delegate all incoming "action" and "render" requests). If 
the
so invoked portlet is a Struts Portlet, that is displayed "normally" a
second time somewhere else on the page, request attribute parameters set 
in
the servlet behind the Struts action get displayed correctly only in the
"invoked" portlet. In the "normally" displayed Struts Portlet they do not
exist.

All subsequent actions however, lead to correct behaviour. Set request
attributes were visible in all running instances of the Struts Portlet.

Thank you for any comment,
Sven.

PS: Hints and suggestions how to do all this in better way, are welcome.


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