Did you create the file on Windows? It looks like your deploying on Unix, so maybe there are some hidden characters in the file that aren't Unix friendly. Open the file and vi and you should be able to see if there are hidden characters.
Luck Mick -----Original Message----- From: sumeet khullar [mailto:[EMAIL PROTECTED] Sent: Sunday, March 09, 2008 3:47 AM To: [email protected] Subject: Re: "simplest" portlet There are a number of web.xml, so I am not very sure which is the one that is creating this error. I guess it should be the one in simplest.war, the archive that I have created , since the demo portlets are being deployed correctly. The one in simplest.war is as follows :- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>Simplest</display-name> <description>The world's simplest portlet</description> </web-app> This is the same as has been listed on the tutorial site. Regards Sumeet Andrew Strickland-2 wrote: > > Can you post the web.xml so we can see if something is wrong with it? > > On Sat, Mar 8, 2008 at 2:16 AM, sumeet khullar > <[EMAIL PROTECTED]> > wrote: > >> >> Even I am facing the same problem getting the simplest portlet at >> http://portals.apache.org/jetspeed-2/guides/guide-simple-portlet.html >> to work. >> >> When I run the tomcat server, the demo portlets are deployed , but >> when when it tries to deploy the simplest portlet, it gives the >> following >> exception: >> >> ERROR: java.lang.IllegalArgumentException: WEB-INF/web.xml >> org.apache.jetspeed.deployment.DeploymentException: >> java.lang.IllegalArgumentException: WEB-INF/web.xml >> at >> >> org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.dep >> loyPortletApplication >> (DeployPortletAppEventListener.java:224) >> at >> >> org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.inv >> okeDeploy >> (DeployPortletAppEventListener.java:209) >> at >> org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatc >> h( >> StandardDeploymentManager.java:264) >> at >> org.apache.jetspeed.deployment.impl.StandardDeploymentManager.deploy( >> StandardDeploymentManager.java:178) >> at >> >> org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDep >> loymentEvent >> (StandardDeploymentManager.java:209) >> at >> >> org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSys >> temScanner.run >> (StandardDeploymentManager.java:357) >> Caused by: java.lang.IllegalArgumentException: WEB-INF/web.xml >> at >> org.apache.jetspeed.tools.deploy.JetspeedDeploy.<init>(JetspeedDeploy >> .java >> :164) >> at >> org.apache.jetspeed.tools.deploy.JetspeedDeploy.<init>(JetspeedDeploy >> .java >> :88) >> at >> >> org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.dep >> loyPortletApplication >> (DeployPortletAppEventListener.java:219) >> ... 5 more >> ERROR: Failure deploying >> /root/Jetspeed-2.1.3/webapps/jetspeed/WEB-INF/deploy/simplest.war >> >> I have checked web.xml and also checked by war file, but am unable to >> figure out the problem. Any help would be appreciated! >> >> Sumeet >> >> David Sean Taylor wrote: >> > >> > >> > On Aug 9, 2007, at 10:41 AM, Redman, Greg wrote: >> > >> >> I have followed the on-line documentation at >> >> http://portals.apache.org/jetspeed-2/guides/guide-simple-portlet.h >> >> tml >> >> >> >> and haven't been able to get this to work. I receive "Failed to >> >> retrieve Portlet Definition for simplest::Simplest" in the portlet >> >> pane. >> >> >> >> According to the message archive, this was also reported back on >> >> March 9, 2006. >> >> >> >> >> >> >> >> Does anyone have a resolution for this error? >> >> >> > >> > >> > If you login as Admin, go to the PALM Adminstrative portlet Do you >> > see an application named "simplest" there? >> > If yes, what is its status? >> > >> > If all else fails email me your war file and I should be able to >> > figure it out in a few minutes >> > >> > >> > >> > ------------------------------------------------------------------- >> > -- To unsubscribe, e-mail: >> > [EMAIL PROTECTED] >> > For additional commands, e-mail: >> > [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Re%3A-%22simplest%22-portlet-tp12077120p1591196 >> 3.html Sent from the Jetspeed - User mailing list archive at >> Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: >> [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Re%3A-%22simplest%22-portlet-tp12077120p15924755.h tml Sent from the Jetspeed - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
