Re: [J2] JS2-210: deployment refactoring branch updated with JBoss 3.2.7 support
Cool I will take a look at what I did wrong One question though, if Websphere doesn't have a autodeploy feature for applications built as Wars, is there any hope of getting this working? Or will this solve the problem by deploying the app differently? On Thu, 17 Mar 2005 21:35:02 +0100, Ate Douma [EMAIL PROTECTED] wrote: Seth Ford wrote: I am trying it out but I think I am doing something wrong with the jetspeed2-layout-portlets.war Doesn't it still go in the WEB-INF deploy folder? I put it there but I am seeing INFO: Loading portlet application from web archive C:\apps\tomcat\5.0. \jetspeed\WEB-INF\deploy\jetspeed-layouts.war INFO: Portlet application jetspeed: registered=true, deployed=true INFO: Portlet application jetspeed already registered. Skipping ini yment. INFO: Portlet application registration target is jetspeed ... INFO: Adding file:/C:/apps/tomcat/5.0.28/temp/jetspeed-jar-tmp/jetspee war/WEB-INF/classes/ to class path. INFO: Adding file:/C:/apps/tomcat/5.0.28/temp/jetspeed-jar-tmp/jetspee war/WEB-INF/lib/portals-bridges-velocity-0.1.jar to class path. INFO: Registered portlet app in the class loader registry... jetspeed INFO: Registered portlet app in the search engine... jetspeed INFO: Portlet application registration of jetspeed complete. INFO: Portlet app jetspeed successfuly (re)deployed. and I get an error coming back from the browser for the branch Seth, I'm not sure which version of J2 you are testing but it certainly isn't the deployment_refactoring branch. Looking at the logging you provided this looks a cvs head version to me. The deployment_refactoring doesn't need temporary deployment folders like /temp/jetspeed-jar-tmp anymore and furthermore the jetspeed-layouts local pa is registered under its own name: jetspeed-layouts (which means I had to change the psml definitions for that too). Encountered the following problem(s) while attmepting to render portlet fragment: dp-1 Failed to retrieve Portlet Definition for jetspeed::VelocityTwoColumns org.apache.jetspeed.container.window.FailedToRetrievePortletWindow: No PortletEntity exists for for id dp-1 removing window from cache. Failed to retrieve Portlet Definition for jetspeed::VelocityTwoColumns org.apache.jetspeed.container.window.FailedToRetrievePortletWindow: No PortletEntity exists for for id dp-1 removing window from cache. On Thu, 17 Mar 2005 03:01:59 +0100, Ate Douma [EMAIL PROTECTED] wrote: Dear all, Today I committed a big update for the deployment refactoring branch. I've added the following features: - Moved Deployment interfaces and related components to the jetspeed-api subproject, as well as the ApplicationServerManager interface and its new Result component. This allows access to these services for portlet applications. - Provided a new ManagerServlet somewhat like the ManagerServlet of Tomcat. It allows remote control of portlet applications and the registry with the following functions: start, stop, reload, list, undeploy and deploy (upload). I also created a new JetspeedConsole CLI using the ManagerServlet which works well, but which I haven't committed yet because I need to clean it up first. - The ManagerServlet depends for several of its tasks on a ApplicationServerManager implementation. With the TomcatManager all of its features can now be used. The implementations of the JBossManager and WeblogicManager are still empty shells though and probably someone else with more knowledge of these application servers should take a look at those. - A new PortletApplicationManager portlet. Yes, another PAM indeed, and the naming of these is getting confusing. This new portlet though provides (almost) the same functionality as the ManagerServlet. Its lists all registered portlet applications in a table with action links for: start, stop, undeploy and delete (unregister from the registry). It also shows if an portlet application actually is running or not. Because I wanted to provide this functionality in table layout, I decided to not implement it in the already existing PAM (PortletApplicationBrowser) portlet which presents the portlet applications and its portlets in a tree. For now, this portlet is accessible from the Administrative folder (pam2.psml). We probably need to discuss though if and/or how these two portlets should be integrated. This portlet also depends on a ApplicationServerManager. If none is configured (like for JBoss) it will still show if a portlet application is running or not and allow to delete (unregister) an portlet application. - J2 on JBoss Because one of the premises of this deployment refactoring was that it should make it easier to deploy J2 on other application servers as well, I decided to prove this and got my feet wet trying it out for JBoss
Re: [J2] JS2-210: deployment refactoring branch updated with JBoss 3.2.7 support
configuration from a shared classloader to all the applications. This really is conflicting with the way we use them in Jetspeed-2 under Tomcat (although Tomcat 5.5 also is giving more headaches with this now). One simply cannot have the commons-logging and log4j jars anymore in WEB-INF/lib because it definitely is giving classloader problems under JBoss. Furthermore, our own log4j configuration conflicts with the global configuration provided with JBoss. If you initialize a new log4j configuration from a web application like we do with J2, you end up closing and detaching existing loggers and appenders and rerouting them into the J2 logging. Likewise, if some other web application deployed after J2 does the same, the J2 logging might get closed and detached and rerouted into this other web application its logging. Anyway you look at it, dynamic log4j configuration is very problematic under JBoss. And, while scanning the internet for a way around this, I found out many others encountered the same problem and not only on JBoss but other application servers as well. After a long investigation of the concrete implementations of commons-logging and log4j though I've come up with a solution which I called IsolatedLog4JLogger. As I put a lot of javadoc into that class I'm not going to reproduce it here. But, I invite everyone to have a look at it. Its currently only committed to the deployment_refactoring branch under portal/src/java/org/apache/jetspeed/util. Whats left is a future solution of the packaging of these jars. Having to remove them after a war is build is quite dumb and easy to forget as well. - JBoss UniversalClassLoader I don't think I have to explain anyone interested in JBoss what this means. Anyway, with a few tweaks to the JBoss configurations I managed to get it working properly ;-) Other solutions are also possible (like providing a jboss-web.xml in *all* portlet application war files). - JAAS authentication This was quite simple to implement but in the end turned out to be working only half way. The authentication itself is easy to do by configuring our DefaultLoginModule in the JBoss login-config.xml. But, the propagation of the Subject principals to JBoss is quite a problem. Simply put: none is. JBoss requires the Subject to be configured with a java.security.acl.Group named Roles containing all the Role principals. As our security principals don't implement java.securitry.acl.Group (yet) none is recognized by JBoss. After some further investigation, it turns out other application servers might require a Group implementation as well. So, we might need to refactor our security principals a bit to get this to work. As we don't actually *use* request.isUserInRole(roleName) in our demo portlets yet (except for the security demo portlet), the default J2 deployment actually works quite good. Well, I'd be very interested in others experiences with this branch (the latest and from before my last changes). I know some are trying it out on different platforms as well. Seth Ford is still unsuccessful with getting M1 running on WebSpere. Seth, I can't really help you out with WebSphere but I really would suggest you try it out with the latest from this branch (check the JBoss deployment instructions as reference). I think that with a few success stories of other deployments on different platforms of this branch it might be almost ready for merging with the head. Deleting (unregistering) of portlet applications is now provided for, as well as start, stop, (remote) deployment and undeployment for Tomcat. If anyone has some requirements which should be fixed/implemented on this branch before considering it ready for merge with the head (besides more proof it works too on other platforms), please let me know. If possible and reasonable, I'll try to provide for it. Regards, Ate - 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: getting Jetspeed 2 to work with WebSphere 5.1.2
He is the error that I get when I import the war file directly after they are registered TRAS0014I: The following exception was logged java.lang.NullPointerException at com.ibm.ws.webcontainer.srt.SRTServletRequest.getContextPath(SRTServletRequest.java:1229) at javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletRequestWrapper.java:183) at org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:209) 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:626) at org.apache.jetspeed.aggregator.impl.Worker.run(Worker.java:165) . java.lang.NullPointerException at com.ibm.ws.webcontainer.srt.SRTServletRequest.getContextPath(SRTServletRequest.java:1229) at javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletRequestWrapper.java:183) at org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:209) 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:626) at org.apache.jetspeed.aggregator.impl.Worker.run(Worker.java:165) On Tue, 15 Mar 2005 17:48:40 -0700, Seth Ford [EMAIL PROTECTED] wrote: Yeah... I have been working on Jetspeed 2 M1 and am struggling to get the default portlets to work in WebSphere 5.1.2 I guess I can try your new branch, but if you can provide any help getting them working on WebSphere/WSAD I would appreciate it. In this case I am trying to use the hot deploy the database is connection fine the portal deploys but then WebSphere does not have any idea about the new contexts that have been layed down /demo and such I have also tried importing the portlet war files but then I get a requestdispatcher include error Has any got jetspeed 2 working on WebSphere? And if so I would appreciate any details you might have On Sun, 13 Mar 2005 22:51:45 +0100, Ate Douma [EMAIL PROTECTED] wrote: Seth, I can't directly help you with WebSphere but I am interested in how you got it working and with which version of Jetspeed 2 you are working. As you might know, I created a new branch of Jetspeed 2 somewhat more than a week ago (branch: deployment_refactoring, see http://issues.apache.org/jira/browse/JS2-210) in which I've implemented an application server indepedent deployment model. If you haven't tried that one out yet, you might have a better result doing so. Note the current limitations of that branch though (see the JS2-210 issue). I'm working right now on improvements which should resolve those limitations, but it probably will take me a few hours more (or possibly a few days if I run out of time) before I can commit those improvements. Regarding your question about cross context problem: all portlets deployed with Jetspeed 2 use cross context. So, if the default portlets provided by Jetspeed 2 *are* working, cross context shouldn't be the problem. Maybe if you provide us with some more detailed information (like error messages and stacktraces) I or someone else can help you better. Regards, Ate Seth Ford wrote: I have jetspeed 2 working with WebSphere 5.1.2 except for the portals that are done through a hot deploy Can any explain how to do this in WebSphere? I have tried to install the portlet WARs seperatly, but have run into request dispatcher include related issues looks like a cross context problem Thanks Seth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL
Re: getting Jetspeed 2 to work with WebSphere 5.1.2
Yeah... I have been working on Jetspeed 2 M1 and am struggling to get the default portlets to work in WebSphere 5.1.2 I guess I can try your new branch, but if you can provide any help getting them working on WebSphere/WSAD I would appreciate it. In this case I am trying to use the hot deploy the database is connection fine the portal deploys but then WebSphere does not have any idea about the new contexts that have been layed down /demo and such I have also tried importing the portlet war files but then I get a requestdispatcher include error Has any got jetspeed 2 working on WebSphere? And if so I would appreciate any details you might have On Sun, 13 Mar 2005 22:51:45 +0100, Ate Douma [EMAIL PROTECTED] wrote: Seth, I can't directly help you with WebSphere but I am interested in how you got it working and with which version of Jetspeed 2 you are working. As you might know, I created a new branch of Jetspeed 2 somewhat more than a week ago (branch: deployment_refactoring, see http://issues.apache.org/jira/browse/JS2-210) in which I've implemented an application server indepedent deployment model. If you haven't tried that one out yet, you might have a better result doing so. Note the current limitations of that branch though (see the JS2-210 issue). I'm working right now on improvements which should resolve those limitations, but it probably will take me a few hours more (or possibly a few days if I run out of time) before I can commit those improvements. Regarding your question about cross context problem: all portlets deployed with Jetspeed 2 use cross context. So, if the default portlets provided by Jetspeed 2 *are* working, cross context shouldn't be the problem. Maybe if you provide us with some more detailed information (like error messages and stacktraces) I or someone else can help you better. Regards, Ate Seth Ford wrote: I have jetspeed 2 working with WebSphere 5.1.2 except for the portals that are done through a hot deploy Can any explain how to do this in WebSphere? I have tried to install the portlet WARs seperatly, but have run into request dispatcher include related issues looks like a cross context problem Thanks Seth - 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]
getting Jetspeed 2 to work with WebSphere 5.1.2
I have jetspeed 2 working with WebSphere 5.1.2 except for the portals that are done through a hot deploy Can any explain how to do this in WebSphere? I have tried to install the portlet WARs seperatly, but have run into request dispatcher include related issues looks like a cross context problem Thanks Seth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]