ok, I finally found out that I didn't need to call the full package name in the jsp as it was specified in the module.package prop, so it was actually looking for my.package.name.my.package.name.MyAction...
> -----Original Message----- > From: Pierre Henry > Sent: mercredi, 18. d�cembre 2002 16:05 > To: Jetspeed Users List > Subject: RE: jsp portlet in registry > > > I added the following line in tr.properties : > module.packages=ch.proconcept.portal.modules > > but it still can't find my action : > Horrible Exception: java.lang.ClassNotFoundException: > > Requested Action not found: > ch.proconcept.portal.modules.actions.XsqlPortlet1Action > Turbine looked in the following modules.packages path: > [org.apache.jetspeed.modules, org.apache.turbine.modules, > ch.proconcept.portal.modules] > > At least it looks like it is looking at the right place, but > why doesn't it > find the class ??? > > Please help me, I'm getting lost... > > Pierre > > > -----Original Message----- > > From: Pierre Henry > > Sent: mercredi, 18. d�cembre 2002 14:50 > > To: Jetspeed Users List > > Subject: RE: jsp portlet in registry > > > > > > I just found here are some module packages libraries properties in > > TR.properties. I'll try to add my package there... > > > > > -----Original Message----- > > > From: Pierre Henry > > > Sent: mercredi, 18. d�cembre 2002 14:46 > > > To: Jetspeed Users List > > > Subject: RE: jsp portlet in registry > > > > > > > > > I added a media-type entry. now my xreg looks like that > (it is in a > > > separated local-portlets.xreg) : > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > <registry> > > > <portlet-entry name="XSQL_test" hidden="false" type="ref" > > > parent="JSP" > > > application="false"> > > > <meta-info> > > > <title>XSQL test 1</title> > > > <description>XSQL test 1</description> > > > </meta-info> > > > > > > > > > <classname>org.apache.jetspeed.portal.portlets.JspPortlet</classname> > > > <parameter name="template" hidden="true" > > > value="xsql1.jsp"/> > > > <parameter name="action" hidden="true" > > > value="ch.proconcept.portal.modules.actions.XsqlPortlet1Action" /> > > > <media-type ref="html"/> > > > <url cachedOnURL="true"/> > > > </portlet-entry> > > > </registry> > > > > > > > > > Like that it showed up in the list of portlet to add, but > > > when I added it it > > > didn't added any thing in my user's psml. > > > > > > I added it manually by hand, which looks like : > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > <portlets id="01"> > > > <metainfo> > > > <title>Default Jetspeed page</title> > > > </metainfo> > > > <security-ref parent="owner-only"/> > > > <layout position="-1" size="-1"/> > > > <control name="TabControl"/> > > > <controller name="TabController"/> > > > <portlets id="P-f231b74d68-10001"> > > > <metainfo> > > > <title>xsql</title> > > > </metainfo> > > > <controller name="RowController"/> > > > <entry parent="XSQL_test"> > > > <layout> > > > <property name="column" value="0" /> > > > <property name="row" value="0" /> > > > </layout> > > > </entry> > > > </portlets> > > > </portlets> > > > > > > Now the portlet show up, but it can't find my action class. > > > It gives me a > > > classNotFoundException : > > > > > > Horrible Exception: java.lang.ClassNotFoundException: > > > > > > Requested Action not found: > > > ch.proconcept.modules.actions.XsqlPortlet1Action > > > Turbine looked in the following modules.packages path: > > > [org.apache.jetspeed.modules, org.apache.turbine.modules] > > > > > > Where should I put my class ? It is now in > > > WEB-INF\classes\ch\proconcept\...\XsqlPortlet1Action.class > > > > > > should I put it somewhere else, or put it in another package ? > > > > > > Thanks for your help. > > > > > > Pierre > > > > > > > -----Original Message----- > > > > From: Mark Orciuch [mailto:[EMAIL PROTECTED]] > > > > Sent: mardi, 17. d�cembre 2002 17:12 > > > > To: Jetspeed Users List > > > > Subject: RE: jsp portlet in registry > > > > > > > > > > > > Looks like you have missing media-type entry. > > > > > > > > Best regards, > > > > > > > > Mark Orciuch - [EMAIL PROTECTED] > > > > Jakarta Jetspeed - Enterprise Portal in Java > > > > http://jakarta.apache.org/jetspeed/ > > > > > > > > > -----Original Message----- > > > > > From: Pierre Henry [mailto:[EMAIL PROTECTED]] > > > > > Sent: Tuesday, December 17, 2002 9:59 AM > > > > > To: Jetspeed User List (E-mail) > > > > > Subject: jsp portlet in registry > > > > > > > > > > > > > > > Hi all. > > > > > > > > > > I have been trying to make a simple jsp portlet. Now I want > > > > to try it. I > > > > > created the xreg for it and put it in the WEB-INF/conf dir. > > > > > > > > > > But I can't add this portlet. However, it shows up when I log > > > > > with admin and > > > > > use the portlet browser... > > > > > > > > > > I can't see anything false with my xreg, but it's the end > > > > of the day here > > > > > and I'm tired :-) Can you see something false ? > > > > > > > > > > <portlet-entry name="XSQL Test 1" hidden="false" type="ref" > > > > > parent="JSP" application="false"> > > > > > <meta-info> > > > > > <title>xsql test 1</title> > > > > > <description>Test </description> > > > > > </meta-info> > > > > > > > > > > > > > > > > > > > > <classname>org.apache.jetspeed.portal.portlets.JspPortlet</classname> > > > > > <parameter name="template" value="xsql1.jsp" > > hidden="true" > > > > > cachedOnName="true" cachedOnValue="true"/> > > > > > <parameter name="action" > > > > > > > > > > > value="ch.proconcept.portal.modules.actions.XsqlPortlet1Action" > > > > > hidden="true" cachedOnName="true" > > > cachedOnValue="true"/> > > > > > <url cachedOnURL="true"/> > > > > > </portlet-entry> > > > > > > > > > > now I put it into the main portlet.xreg file, but when i > > > > put it in its own > > > > > file I didn't omit the <registry></registry> pair. > > > > > > > > > > I am using 1.4b2 with tomcat 4.1.12. > > > > > > > > > > Thanks for any help ! > > > > > > > > > > Pierre > > > > > > > > > > > > > > > > > -- > > > > To unsubscribe, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > >
