[JBoss-dev] [JBoss Portal Development] - Re: Adding personal portlet in jboss portal
OK that seems to work ok, cheers. The only other issue i'm having is with redirecting to a JSP page - i'm using the same technique as the CMS portlet e.g. PortletRequestDispatcher dispatcher = this.getPortletContext().getRequestDispatcher(JSP_PATH + /main.jsp); dispatcher.include(request, response); But the problem is I just get an empty portlet (if the window is NORMAL state) or the single word message null within the portlet window if it's MAXIMIZED state. I'm pretty sure I've got my JSP page in the right place (my JSP_PATH variable is just set to WEB-INF/jsp) in my WAR it's in WEB-INF/jsp also. Is there any way to turn on better debugging output for this? e.g. the null message does not come with an exception in the JBoss window and doesn't help me work out what the problem is...? Cheers, Kev View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3861250#3861250 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3861250 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBoss Portal Development] - Re: Adding personal portlet in jboss portal
OK so the problem seems to be because the nukes web-app cannot find the JSP files from my portlet app WAR file. I've packaged up my WAR file directly into the nukes-core.sar file - nukes can then find my Portlet class OK but cannot find my JSP files even though they are in my WAR file. Any ideas what I should be doing to fix this? Obviously I could copy the JSP files into the core nukes-core.war file (which is what i did to diagnose the problem!) but that's not a solution for the long term. Cheers, Kev View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3861255#3861255 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3861255 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBoss Portal Development] - Re: Adding personal portlet in jboss portal
I was wondering this also - i'd like to build my app source tree separate of nukes2. But i guess i need to add my WAR file into the nukes-core.sar for it to work.? Kev View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3861061#3861061 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3861061 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBoss Portal Development] - Re: Adding personal portlet in jboss portal
no you don't have to, you can deploy the war standalone then you must add your instances and windows in the default-portal.xml (which is in the core.war) but I am currently working on making -portal.xml deployable in /deploy, I should commit that very soon. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3861064#3861064 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3861064 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBoss Portal Development] - Re: Adding personal portlet in jboss portal
OK that's cool. I've built my portlet app into a WAR. The problem is the portlet works fine when deployed as part of the standard nukes-core.sar (by just adding the code into the nukes source tree as a test portlet) but doesn't when deployed in the WAR. I'm now sure exactly what files I should have in the WAR structure as far as WEB-INF goes e.g. do I need the default-portlet.xml or jboss-service.xml files as well as the web.xml file - or is this taken care of by the nukes-core.sar? The specific problem I see from nukes during deployment is: org.jboss.nukes.portal.kernel.ServiceFailureException: java.lang.Exception: Portlet class not found... Which leads me to believe it's an ordering issue rather than the WAR file? The JBoss Portal throws out the class not found error _before_ my app WAR file is deployed. Any ideas how I should structure the WAR so it works correctly? Or do I need to do something else to make sure my app is deployed before nukes? Thanks, Kev View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3861147#3861147 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3861147 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBoss Portal Development] - Re: Adding personal portlet in jboss portal
Portlet class not found, means it does not find the class of your portlet. you need : -portal.xml if you want to deploy a portal different than the default one (which is default-portal.xml) portlet-instances.xml when you want to create instance of a portlet. if you want to place windows on pages, you need to put them in a -portal.xml, see the default-portal.xml in core.war try : WEB-INF/my-portal.xml WEB-INF/portlet.xml WEB-INF/portlet-instances.xml WEB-INF/classes//MyPortlet.class View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3861176#3861176 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3861176 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development