SV: SV: SV: SV: Help setting up hello world
Søren Blidorf <[email protected]> Fri, 4 Jun 2010 07:48:13 +0200
| Newsgroups | gmane.comp.jakarta.pluto.user |
|---|---|
| Message-ID | <AD730008CA894B99895CD19EA7CA6CBE@NOLAS> |
This is a multi-part message in MIME format. ------=_NextPart_000_039A_01CB03BA.49EB2A20 Content-Type: multipart/alternative; boundary="----=_NextPart_001_039B_01CB03BA.49ED9B20" ------=_NextPart_001_039B_01CB03BA.49ED9B20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable My war don=92t contain the portlet.tld. =20 As I understand you that is created by Maven from my pom.xml. So I guess something is wrong with my pom.xml. =20 I have created it as in the example in Pluto/deploying. Would you look = at my attached pom.xml? =20 Soren =20 -----Oprindelig meddelelse----- Fra: Gary Weaver [mailto:[email protected]]=20 Sendt: 3. juni 2010 21:47 Til: [email protected] Emne: Re: SV: SV: SV: Help setting up hello world =20 Some things to check: =20 1. Make sure that you did whatever was necessary to have Pluto assembly modify web.xml and have it add portlet.tld to your war (you don't add = those things- it does). This is done via the pluto-maven-plugin which you'd = need to setup in your pom.xml and make sure it is using the same version of = Pluto as is in Tomcat or it won't work. (That is not discussed on the page I = sent, because uPortal uses an ant target to do that (deployPortletApp).) =20 2. If the deployed war contains the web.xml modification by Pluto and = the portlet.tld file, then make sure when it deployed that in tomcat/logs/catalina.out (or in some log in there) it shows that the = portlet registered (I think- at least that is what happens in uPortal). =20 Note that you cannot visit the http://localhost:8080/helloworld/ = directly. It can only be viewed within the portal. Unfortunately I can't tell you = how to manage portlets within Pluto portal. Hopefully there is documentation about that somewhere. :( =20 Gary =20 =20 On Jun 3, 2010, at 3:32 PM, S=F8ren Blidorf wrote: I have now created a page on pluto and added my HelloWorldPortlet. =20 When I open the page I get: HelloWorldPortlet not ready. =20 Does anybody know what that means? I get no errors in the log! =20 Soren =20 -----Oprindelig meddelelse----- Fra: Gary Weaver [mailto:[email protected]]=20 Sendt: 3. juni 2010 20:20 Til: [email protected] Emne: Re: SV: SV: Help setting up hello world =20 Try a simpler example first (the one I sent and in the wiki page I sent) first. After that, if you haven't figured it out, copy all of the source (pom.xml, HelloWorldPortlet.java, the 2 jsp files, the 3 xml files) into = the body of the email saying what is what, and copy and paste how you ran = maven and exactly what it output, so people can help. =20 Thanks! Gary =20 =20 On Jun 3, 2010, at 2:12 PM, S=F8ren Blidorf wrote: =20 The problem is that there is nothing wrong with my web.xml. =20 No matter what I try including web.xml from the second link I get the = same error. =20 Could it be that it cannot find it? =20 My file structure is: =20 HelloWorldPortlet (top level directory) |- pom.xml (the pom file) |- src (Subdir containing main subdirectory) |- main (Subdir containing java, resources and webapp = subdirs) |- java (java source code goes under here) | `- com | `- mycompany | `- portlet | `- HelloWorldPortlet.java = (portlet source) |- webapp (webapp resources (jsp, css, images) go = under here) `- jsp `- HelloWorldPortletView.jsp (for view = mode) `- HelloWorldPortletEdit.jsp (for edit = mode) `- META-INF `- HelloWorldPortlet.xml (Tomcat context deployment descriptor) `- WEB-INF `- portlet.xml (JSR-168 deployment descriptor) `- web.xml (This will be modified by maven-pluto-plugin) =20 =20 -----Oprindelig meddelelse----- Fra: Gary Weaver [mailto:[email protected]]=20 Sendt: 3. juni 2010 20:01 Til: [email protected] Emne: Re: SV: Help setting up hello world =20 If you look at that second link I sent: https://wiki.jasig.org/display/PLT/Hello+World+Portlet =20 It has an example simple web.xml, portlet.xml, etc. If you are new to = Java or Java web applications, you probably out to read up on that and Maven prior to getting into the portlet side of things, though. =20 As for where to go after Hello World, I lot of people use Spring Portlet MVC, in which case you might do something like this in web.xml (I tried = to strip out the unnecessary parts, but not sure how good of a job I did): =20 <?xml version=3D"1.0" encoding=3D"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>yourportletname</display-name> <description>Description of the portlet</description> <context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/context/portlet/nameofyourportlet.xml </param-value> </context-param> <context-param> <param-name>webAppRootKey</param-name> <param-value>some.parent.package.newofyourportlet</param-value> </context-param> <listener> =20 <listener-class>org.springframework.web.util.WebAppRootListener</listener= -cl ass> </listener> <listener> =20 <listener-class>org.springframework.web.context.ContextLoaderListener</li= ste ner-class> </listener> <servlet> <servlet-name>ViewRendererServlet</servlet-name> =20 <servlet-class>org.springframework.web.servlet.ViewRendererServlet</servl= et- class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>ViewRendererServlet</servlet-name> <url-pattern>/WEB-INF/servlet/view</url-pattern> </servlet-mapping> </web-app> =20 And could look at this as an example of spring context, pom.xml, portlet.xml, etc.: https://source.jasig.org/sandbox/MailPortlet/tags/rel-2.0.0-alpha-7/ =20 There are also a Grails Portlet project and a Rails-portlet project, I = think both aimed at JSR-286 implementations like Liferay (I know the latter is = at the moment). =20 If you want to see what is it really doing in the assembly portion, look = at FileAssembler.java. For example I found it here: http://github.com/apache/pluto/blob/trunk/pluto-util/src/main/java/org/ap= ach e/pluto/util/assemble/file/FileAssembler.java =20 Gary =20 =20 On Jun 3, 2010, at 1:33 PM, S=F8ren Blidorf wrote: =20 Thanks Gary. I will look at it. =20 When I use mvn package I get a build error - invalid web.xml. =20 Does anybody know what is needed in the web.xml for maven to concider it valid? =20 Soren =20 -----Oprindelig meddelelse----- Fra: Gary Weaver [mailto:[email protected]]=20 Sendt: 3. juni 2010 17:22 Til: [email protected] Emne: Re: Help setting up hello world =20 Soren, =20 Assuming you are talking about this hello world example?: http://portals.apache.org/pluto/v20/deploying.html =20 I also just found another example, even though it is geared for uPortal rather than the example Pluto server. (But uPortal uses Pluto and = supports JSR-168 compliant portlets, so should work.): https://wiki.jasig.org/display/PLT/Hello+World+Portlet =20 Some other example portlets are here: https://source.jasig.org/portlets/ there are also some in here but not all of these work: https://source.jasig.org/sandbox/ =20 As of 2010/06/03 I'm not sure how any of those if any are JSR-286 (most = are still JSR-168), but that shouldn't matter afaik just to get something = simple working. =20 Some miscellaneous tips/notes: * Pluto's jars should be in the shared/lib area, which requires some = change to the default Tomcat 6 config to have it look for. That is the most appropriate place for it, afaik. * Like any war, if you unzip the war, it should unzip its contents into = the current directory (i.e. is isn't unzipping into (webapp directory = name)/... ). That is just a war thing, not specific to portlets. This only matters = if you tried to make the war by hand. * Pluto's assembly API must be used to prep the war. There is a maven-pluto-plugin that can help with this (it uses Pluto assembly). = Pluto assembly looks at the portlet.xml then modifies the web.xml and adds portlet*.tld file(s). * Even though Tomcat is much more lenient when it decompresses a war, = Pluto assembly (used by maven-pluto-plugin) uses the standard Java API to = unjar the war, and if the META-INF/MANIFEST.MF file isn't the first entry (and there should be only one manifest), it will choke (and the error is not = that helpful). * Just because maven-pluto-plugin preps the war doesn't mean it is a = valid portlet (or even valid web.xml and portlet.xml for a portlet) or that it will even register in Pluto afaik. You need to make sure that web.xml is cleaned up and that you didn't try to add the stuff that Pluto assembly = puts into it. (For info on how to clean it up if you need that, see the = unplutofy project). * In newer versions of pluto (not sure what version, but sometime = between 1.0.0-RC2 and 1.1.7), portlets register themselves with pluto (I think). = So you can someone tell if a portlet is available and at least valid enough = for Pluto to register it (although it still may not work) if the logs showed that it registered. It may not register each time though? Registering is different than just Tomcat deploying the war (it is the line right after that in the logs usually, I think). =20 Hopefully none of that info is wrong, and please anyone feel free to = correct or clarify those. =20 Wish I could provide more info, but maybe some of that will help. =20 Gary =20 =20 On Jun 3, 2010, at 5:58 AM, S=F8ren Blidorf wrote: =20 Hi. =20 I am new to portlets and Pluto. =20 I have installed Pluto on my existing Tomcat and it works fine. =20 However I am having difficulties setting up a helloworld portlet. =20 I have created the portlet.xml and the helloworld.java. Compiled and = deploy but nothing happens. =20 I have tried different examples on google, but nothing works. =20 Does anybody have a helloworld.war file of a describsion for dummies on = how to get a helloworld to work. =20 Soren =20 =20 =20 =20 =20 ------=_NextPart_001_039B_01CB03BA.49ED9B20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)"> <base href=3D"x-msg://46/"> <style> <!-- /* Font Definitions */ @font-face {font-family:Helvetica; panose-1:2 11 6 4 2 2 2 2 2 4;} @font-face {font-family:"Monotype Corsiva"; panose-1:3 1 1 1 1 2 1 1 1 1;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} p.MsoEnvelopeAddress, li.MsoEnvelopeAddress, div.MsoEnvelopeAddress {margin-top:0cm; margin-right:0cm; margin-bottom:0cm; margin-left:144.0pt; margin-bottom:.0001pt; font-size:20.0pt; font-family:"Monotype Corsiva"; color:gray; font-style:italic;} p.MsoEnvelopeReturn, li.MsoEnvelopeReturn, div.MsoEnvelopeReturn {margin:0cm; margin-bottom:.0001pt; font-size:16.0pt; font-family:"Monotype Corsiva"; color:gray; font-style:italic;} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:blue; text-decoration:underline;} span.EmailStyle21 {font-family:Arial; color:navy;} @page Section1 {size:595.3pt 841.9pt; margin:3.0cm 2.0cm 3.0cm 2.0cm;} div.Section1 {page:Section1;} --> </style> </head> <body lang=3DDA link=3Dblue vlink=3Dblue style=3D'word-wrap: = break-word;-webkit-nbsp-mode: space; -webkit-line-break: after-white-space'> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial;color:navy'>My war = don’t contain the portlet.tld.</span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial;color:navy'> </span></fo= nt></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial;color:navy'>As I understand = you that is created by Maven from my pom.xml. So I guess something is wrong with = my pom.xml.</span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial;color:navy'> </span></fo= nt></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial;color:navy'>I have created = it as in the example in Pluto/deploying. Would you look at my attached = pom.xml?</span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial;color:navy'> </span></fo= nt></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Soren</span></fon= t></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial;color:navy'> </span></fo= nt></p> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>-----Oprindelig = meddelelse-----<br> <b><span style=3D'font-weight:bold'>Fra:</span></b> Gary Weaver [mailto:[email protected]] <br> <b><span style=3D'font-weight:bold'>Sendt:</span></b> 3. juni 2010 = 21:47<br> <b><span style=3D'font-weight:bold'>Til:</span></b> = [email protected]<br> <b><span style=3D'font-weight:bold'>Emne:</span></b> Re: SV: SV: SV: = Help setting up hello world</span></font></p> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> <div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Some things to = check:</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>1. Make sure = that you did whatever was necessary to have Pluto assembly modify web.xml and have it = add portlet.tld to your war (you don't add those things- it does). This is = done via the pluto-maven-plugin which you'd need to setup in your pom.xml and = make sure it is using the same version of Pluto as is in Tomcat or it won't work. = (That is not discussed on the page I sent, because uPortal uses an ant target = to do that (deployPortletApp).)</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>2. If the = deployed war contains the web.xml modification by Pluto and the portlet.tld file, = then make sure when it deployed that in tomcat/logs/catalina.out (or in some log = in there) it shows that the portlet registered (I think- at least that is = what happens in uPortal).</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Note that you = cannot visit the <a = href=3D"http://localhost:8080/helloworld/">http://localhost:8080/hellowor= ld/</a> directly. It can only be viewed within the portal. Unfortunately I can't = tell you how to manage portlets within Pluto portal. Hopefully there is documentation about that somewhere. :(</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'>Gary</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> <div> <div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>On Jun 3, = 2010, at 3:32 PM, S=F8ren Blidorf wrote:</span></font></p> </div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><br> <br> </span></font></p> <span style=3D'orphans: 2;widows: 2;-webkit-border-horizontal-spacing: = 0px; -webkit-border-vertical-spacing: 0px;-webkit-text-decorations-in-effect: = none; -webkit-text-size-adjust: auto;-webkit-text-stroke-width: = 0px;word-spacing: 0px'> <div link=3Dblue vlink=3Dblue style=3D'word-wrap: = break-word;-webkit-nbsp-mode: space; -webkit-line-break: after-white-space'> <div> <div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'>I have now created a page on pluto and added my = HelloWorldPortlet.</span></font></p> </div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'> </span></font></p> <div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'>When I open the page I get: HelloWorldPortlet not = ready.</span></font></p> </div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'> </span></font></p> <div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'>Does anybody know what that means? I get no errors in the = log!</span></font></p> </div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'> </span></font></p> <div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'>Soren</span></font></p> </div> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'> </span></font></p> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>-----Oprindelig = meddelelse-----<br> <b><span style=3D'font-weight:bold'>Fra:</span></b><span class=3Dapple-converted-space> </span>Gary Weaver [mailto:[email protected]]<span = class=3Dapple-converted-space> </span><br> <b><span style=3D'font-weight:bold'>Sendt:</span></b><span class=3Dapple-converted-space> </span>3. juni 2010 20:20<br> <b><span style=3D'font-weight:bold'>Til:</span></b><span class=3Dapple-converted-space> </span><a href=3D"mailto:[email protected]">[email protected]= rg</a><br> <b><span style=3D'font-weight:bold'>Emne:</span></b><span class=3Dapple-converted-space> </span>Re: SV: SV: Help setting up = hello world</span></font></p> </div> <p class=3DMsoNormal style=3D'margin-left:130.4pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> <div> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Try a simpler = example first (the one I sent and in the wiki page I sent) first. After that, if = you haven't figured it out, copy all of the source (pom.xml, HelloWorldPortlet.java, the 2 jsp files, the 3 xml files) into the body = of the email saying what is what, and copy and paste how you ran maven and = exactly what it output, so people can help.</span></font></p> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:130.4pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'>Thanks!</span></font></p> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'>Gary</span></font></p> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:130.4pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <p class=3DMsoNormal style=3D'margin-left:130.4pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> <div> <div> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>On Jun 3, = 2010, at 2:12 PM, S=F8ren Blidorf wrote:</span></font></p> </div> </div> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal = style=3D'margin-right:0cm;margin-bottom:12.0pt;margin-left: 65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <span style=3D'orphans: 2;widows: 2;-webkit-border-horizontal-spacing: = 0px; -webkit-border-vertical-spacing: 0px;-webkit-text-decorations-in-effect: = none; -webkit-text-size-adjust: auto;-webkit-text-stroke-width: = 0px;word-spacing: 0px'> <div link=3Dblue vlink=3Dblue style=3D'word-wrap: = break-word;-webkit-nbsp-mode: space; -webkit-line-break: after-white-space'> <div> <div> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'>The problem is that there is nothing wrong with my = web.xml.</span></font></p> </div> </div> <p class=3DMsoNormal style=3D'margin-left:130.4pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'> </span></font></p> <div> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'>No matter what I try including web.xml from the second link = I get the same error.</span></font></p> </div> </div> <p class=3DMsoNormal style=3D'margin-left:130.4pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'> </span></font></p> <div> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'>Could it be that it cannot find it?</span></font></p> </div> </div> <p class=3DMsoNormal style=3D'margin-left:130.4pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'> </span></font></p> <div> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'>My file structure is:</span></font></p> </div> </div> <p class=3DMsoNormal style=3D'margin-left:130.4pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'> </span></font></p> <div style=3D'border:solid #2E6794 6.0pt;padding:0cm 0cm 0cm 0cm'> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'>HelloWorldPortlet (top level directory)</span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> |- pom.xml (the pom file)</span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> |- src (Subdir containing main subdirectory)</span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> |- main (Subdir containing java, resources and webapp subdirs)</span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> |- java (java source code goes = under here)</span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> &= nbsp; | `- = com</span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> &= nbsp; | `- = mycompany</span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> &= nbsp; | = `- portlet</span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> &= nbsp; | = `- HelloWorldPortlet.java (portlet source)</span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> &= nbsp; |- webapp (webapp resources (jsp, css, images) = go under here)</span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> &= nbsp; `- jsp</span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> &= nbsp; = `- HelloWorldPortletView.jsp (for view mode) = </span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> &= nbsp; = `- HelloWorldPortletEdit.jsp (for edit mode) = </span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> &= nbsp; `- META-INF</span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> &= nbsp; = `- HelloWorldPortlet.xml (Tomcat context deployment = descriptor)</span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> &= nbsp; `- WEB-INF</span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> &= nbsp; `- portlet.xml (JSR-168 deployment descriptor)</span></font></p> </div> </div> <div style=3D'border-width:initial;border-color:initial'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3D"Courier New"><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier = New"'> &= nbsp; `- web.xml (This will be modified = by maven-pluto-plugin)</span></font></p> </div> </div> </div> <p class=3DMsoNormal style=3D'margin-left:130.4pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'> </span></font></p> <p class=3DMsoNormal style=3D'margin-left:130.4pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'> </span></font></p> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>-----Oprindelig = meddelelse-----<br> <b><span style=3D'font-weight:bold'>Fra:</span></b><span class=3Dapple-converted-space> </span>Gary Weaver [mailto:[email protected]]<span = class=3Dapple-converted-space> </span><br> <b><span style=3D'font-weight:bold'>Sendt:</span></b><span class=3Dapple-converted-space> </span>3. juni 2010 20:01<br> <b><span style=3D'font-weight:bold'>Til:</span></b><span class=3Dapple-converted-space> </span><a href=3D"mailto:[email protected]">[email protected]= rg</a><br> <b><span style=3D'font-weight:bold'>Emne:</span></b><span class=3Dapple-converted-space> </span>Re: SV: Help setting up hello = world</span></font></p> </div> </div> <p class=3DMsoNormal style=3D'margin-left:195.6pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> <div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>If you look at = that second link I sent:</span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><a href=3D"https://wiki.jasig.org/display/PLT/Hello+World+Portlet">https://w= iki.jasig.org/display/PLT/Hello+World+Portlet</a></span></font></p> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:195.6pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>It has an = example simple web.xml, portlet.xml, etc. If you are new to Java or Java web = applications, you probably out to read up on that and Maven prior to getting into the = portlet side of things, though.</span></font></p> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:195.6pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>As for where = to go after Hello World, I lot of people use Spring Portlet MVC, in which case you = might do something like this in web.xml (I tried to strip out the unnecessary = parts, but not sure how good of a job I did):</span></font></p> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:195.6pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><?xml version=3D"1.0" = encoding=3D"UTF-8"?></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><!DOCTYPE = web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "<a = href=3D"http://java.sun.com/dtd/web-app_2_3.dtd">http://java.sun.com/dtd/= web-app_2_3.dtd</a>"></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'><web-app></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <display-name>yourportletname</display-name></span></fo= nt></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <description>Description of the = portlet</description></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <context-param></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> = = <param-name>contextConfigLocation</param-name></span></= font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> = <param-value></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> = = /WEB-INF/context/portlet/nameofyourportlet.xml</span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> = </param-value></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> </context-param></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <context-param></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> = = <param-name>webAppRootKey</param-name></span></font></p= > </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> = = <param-value>some.parent.package.newofyourportlet</param-v= alue></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> </context-param></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <listener></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> = = <listener-class>org.springframework.web.util.WebAppRootListen= er</listener-class></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> </listener></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <listener></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> = = <listener-class>org.springframework.web.context.ContextLoader= Listener</listener-class></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> </listener></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <servlet></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> = = <servlet-name>ViewRendererServlet</servlet-name></span>= </font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> = = <servlet-class>org.springframework.web.servlet.ViewRendererSe= rvlet</servlet-class></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> = = <load-on-startup>1</load-on-startup></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> </servlet></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <servlet-mapping></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> = = <servlet-name>ViewRendererServlet</servlet-name></span>= </font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> = = <url-pattern>/WEB-INF/servlet/view</url-pattern></span>= </font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> </servlet-mapping></span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'></web-app></span></font></p> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:195.6pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>And could look = at this as an example of spring context, pom.xml, portlet.xml, etc.: <a href=3D"https://source.jasig.org/sandbox/MailPortlet/tags/rel-2.0.0-alpha= -7/">https://source.jasig.org/sandbox/MailPortlet/tags/rel-2.0.0-alpha-7/= </a></span></font></p> </div> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:195.6pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>There are also = a Grails Portlet project and a Rails-portlet project, I think both aimed at = JSR-286 implementations like Liferay (I know the latter is at the = moment).</span></font></p> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:195.6pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>If you want to = see what is it really doing in the assembly portion, look = at FileAssembler.java. For example I found it here:</span></font></p> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><a href=3D"http://github.com/apache/pluto/blob/trunk/pluto-util/src/main/jav= a/org/apache/pluto/util/assemble/file/FileAssembler.java">http://github.c= om/apache/pluto/blob/trunk/pluto-util/src/main/java/org/apache/pluto/util= /assemble/file/FileAssembler.java</a></span></font></p> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:195.6pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'>Gary</span></font></p> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:195.6pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <p class=3DMsoNormal style=3D'margin-left:195.6pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> <div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>On Jun 3, = 2010, at 1:33 PM, S=F8ren Blidorf wrote:</span></font></p> </div> </div> </div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt;margin-bottom:12.0pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> </div> <div link=3Dblue vlink=3Dblue style=3D'word-wrap: = break-word;-webkit-nbsp-mode: space; -webkit-line-break: after-white-space'> <div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'>Thanks<span = class=3Dapple-converted-space> </span></span></font><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt; font-family:Arial;color:navy'>Gary</span></font><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'>. I will look at it.</span></font></p> </div> </div> </div> <p class=3DMsoNormal style=3D'margin-left:195.6pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'> </span></font></p> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'>When I use mvn package I get a build error - invalid = web.xml.</span></font></p> </div> </div> </div> <p class=3DMsoNormal style=3D'margin-left:195.6pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'> </span></font></p> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'>Does anybody know what is needed in the web.xml for maven to concider it valid?</span></font></p> </div> </div> </div> <p class=3DMsoNormal style=3D'margin-left:195.6pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'> </span></font></p> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'>Soren</span></font></p> </div> </div> </div> <p class=3DMsoNormal style=3D'margin-left:195.6pt'><font size=3D2 = color=3Dnavy face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial; color:navy'> </span></font></p> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>-----Oprindelig = meddelelse-----<br> <b><span style=3D'font-weight:bold'>Fra:</span></b><span class=3Dapple-converted-space> </span>Gary Weaver [mailto:[email protected]]<span = class=3Dapple-converted-space> </span><br> <b><span style=3D'font-weight:bold'>Sendt:</span></b><span class=3Dapple-converted-space> </span>3. juni 2010 17:22<br> <b><span style=3D'font-weight:bold'>Til:</span></b><span class=3Dapple-converted-space> </span><a href=3D"mailto:[email protected]">[email protected]= rg</a><br> <b><span style=3D'font-weight:bold'>Emne:</span></b><span class=3Dapple-converted-space> </span>Re: Help setting up hello = world</span></font></p> </div> </div> </div> <p class=3DMsoNormal style=3D'margin-left:260.8pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'>Soren,</span></font></p> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:260.8pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Assuming you = are talking about this hello world example?:</span></font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><a href=3D"http://portals.apache.org/pluto/v20/deploying.html">http://portal= s.apache.org/pluto/v20/deploying.html</a></span></font></p> </div> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:260.8pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>I also just = found another example, even though it is geared for uPortal rather than the example = Pluto server. (But uPortal uses Pluto and supports JSR-168 compliant portlets, = so should work.):</span></font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><a href=3D"https://wiki.jasig.org/display/PLT/Hello+World+Portlet">https://w= iki.jasig.org/display/PLT/Hello+World+Portlet</a></span></font></p> </div> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:260.8pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Some other = example portlets are here:</span></font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><a href=3D"https://source.jasig.org/portlets/">https://source.jasig.org/port= lets/</a></span></font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>there are also = some in here but not all of these work:</span></font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><a href=3D"https://source.jasig.org/sandbox/">https://source.jasig.org/sandb= ox/</a></span></font></p> </div> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:260.8pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>As of = 2010/06/03 I'm not sure how any of those if any are JSR-286 (most are still JSR-168), but = that shouldn't matter afaik just to get something simple = working.</span></font></p> </div> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:260.8pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Some = miscellaneous tips/notes:</span></font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>* Pluto's jars = should be in the shared/lib area, which requires some change to the default Tomcat = 6 config to have it look for. That is the most appropriate place for it, = afaik.</span></font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>* Like any = war, if you unzip the war, it should unzip its contents into the current directory = (i.e. is isn't unzipping into (webapp directory name)/... ). That is just a war = thing, not specific to portlets. This only matters if you tried to make the war = by hand.</span></font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>* Pluto's = assembly API must be used to prep the war. There is a maven-pluto-plugin that can = help with this (it uses Pluto assembly). Pluto assembly looks at the portlet.xml = then modifies the web.xml and adds portlet*.tld file(s).</span></font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>* Even though = Tomcat is much more lenient when it decompresses a war, Pluto assembly (used by = maven-pluto-plugin) uses the standard Java API to unjar the war, and if = the </span></font><span class=3Dapple-style-span><font face=3D"Courier New"><span = style=3D'font-family:"Courier = New"'>META-INF/MANIFEST.MF</span></font></span><span class=3Dapple-style-span><font face=3DHelvetica><span = style=3D'font-family:Helvetica'> file isn't the first entry (and there should be only one manifest), it will = choke (and the error is not that helpful).</span></font></span></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>* Just because maven-pluto-plugin preps the war doesn't mean it is a valid portlet (or = even valid web.xml and portlet.xml for a portlet) or that it will even = register in Pluto afaik. You need to make sure that web.xml is cleaned up and that = you didn't try to add the stuff that Pluto assembly puts into it. (For info = on how to clean it up if you need that, see the unplutofy = project).</span></font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>* In newer = versions of pluto (not sure what version, but sometime between 1.0.0-RC2 and 1.1.7), portlets register themselves with pluto (I think). So you can someone = tell if a portlet is available and at least valid enough for Pluto to register it (although it still may not work) if the logs showed that it registered. = It may not register each time though? Registering is different than just Tomcat deploying the war (it is the line right after that in the logs usually, = I think).</span></font></p> </div> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:260.8pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Hopefully none = of that info is wrong, and please anyone feel free to correct or clarify = those.</span></font></p> </div> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:260.8pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Wish I could = provide more info, but maybe some of that will help.</span></font></p> </div> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:260.8pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'>Gary</span></font></p> </div> </div> </div> </div> <div> <p class=3DMsoNormal style=3D'margin-left:260.8pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:260.8pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> <div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>On Jun 3, = 2010, at 5:58 AM, S=F8ren Blidorf wrote:</span></font></p> </div> </div> </div> </div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt;margin-bottom:12.0pt'> <p class=3DMsoNormal style=3D'margin-left:130.4pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> </div> <div link=3Dblue vlink=3Dpurple> <div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>Hi.<u1:p></u1:p></span></fon= t></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'><u1:p> </u1:p></span></= font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DArial><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial'>I am new to = portlets and Pluto.<u1:p></u1:p></span></font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial'><u1:p> </u1:p></span></= font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DArial><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial'>I have = installed Pluto on my existing Tomcat and it works fine.<u1:p></u1:p></span></font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial'><u1:p> </u1:p></span></= font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DArial><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial'>However I am = having difficulties setting up a helloworld = portlet.<u1:p></u1:p></span></font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial'><u1:p> </u1:p></span></= font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DArial><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial'>I have created = the portlet.xml and the helloworld.java. Compiled and deploy but nothing = happens.<u1:p></u1:p></span></font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial'><u1:p> </u1:p></span></= font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DArial><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial'>I have tried = different examples on google, but nothing works.<u1:p></u1:p></span></font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial'><u1:p> </u1:p></span></= font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DArial><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial'>Does anybody = have a helloworld.war file of a describsion for dummies on how to get a = helloworld to work.<u1:p></u1:p></span></font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial'><u1:p> </u1:p></span></= font></p> </div> </div> </div> </div> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D2 = face=3DArial><span lang=3DEN-GB = style=3D'font-size:10.0pt;font-family:Arial'>Soren</span></font></p> </div> </div> </div> </div> <u1:p></u1:p> <div> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <div style=3D'margin-left:65.2pt'> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span lang=3DEN-GB = style=3D'font-size:12.0pt'><u1:p> </u1:p></span></font></p> </div> </div> </div> </div> </div> </div> </div> <p class=3DMsoNormal style=3D'margin-left:260.8pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> </div> </div> </div> <p class=3DMsoNormal style=3D'margin-left:195.6pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> </div> </div> </span> <p class=3DMsoNormal style=3D'margin-left:130.4pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> </div> </div> </span> <p class=3DMsoNormal style=3D'margin-left:65.2pt'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> </span></font></p> </div> </body> </html> ------=_NextPart_001_039B_01CB03BA.49ED9B20-- ------=_NextPart_000_039A_01CB03BA.49EB2A20 Content-Type: text/xml; name="pom.xml" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="pom.xml" <project xmlns=3D"http://maven.apache.org/POM/4.0.0" xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 = http://maven.apache.org/maven-v4_0_0.xsd"> <!-- Change this to something akin to your java package structure --> <groupId>nc.portlets.HelloWorldPortlet</groupId> <modelVersion>4.0.0</modelVersion> <!-- Version of this app --> <version>0.1-alpha1</version> <!-- Base name of the war file without .war ext --> <artifactId>HelloWorldPortlet</artifactId> <packaging>war</packaging> <name>${pom.artifactId}</name> <!-- Dependency Version Properties = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --> <properties> <pluto.version>2.0.0</pluto.version> <portlet-api.version>1.0</portlet-api.version> <servlet-api.version>2.4</servlet-api.version> <jsp-api.version>2.0</jsp-api.version> <junit.version>3.8.1</junit.version> </properties> <dependencies> <dependency> <groupId>javax.portlet</groupId> <artifactId>portlet-api</artifactId> <version>${portlet-api.version}</version> <scope>provided</scope><!-- Prevents addition to war file --> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>${servlet-api.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.portals.pluto</groupId> <artifactId>pluto-util</artifactId> <version>${pluto.version}</version> <scope>provided</scope> </dependency> <!-- Any other build or deployment dependancies go here --> </dependencies> <build> <finalName>${pom.name}</finalName> <plugins> <!-- configure to use Java 6 to compile (change to your JDK) --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <!-- configure maven-war-plugin to use updated web.xml --> <plugin> <artifactId>maven-war-plugin</artifactId> <configuration> = <webXml>${project.build.directory}/pluto-resources/web.xml</webXml> </configuration> </plugin> <!-- bind 'pluto2:assemble' goal to 'generate-resources' lifecycle = --> <plugin> <groupId>org.apache.portals.pluto</groupId> <artifactId>maven-pluto-plugin</artifactId> <version>${pluto.version}</version> <executions> <execution> <phase>generate-resources</phase> <goals> <goal>assemble</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> ------=_NextPart_000_039A_01CB03BA.49EB2A20--