tomcat, uPortal, error messages and confusion
I've recently been trying to implement uPortal on my debian linux server running the following binaries: tomcat5.5 maven2 ant 1.7.1 Again, attempting to deploy uPortal version 3.0.4 in communication with the uPortal mailing list, I was advised to seek advice from this group regarding the following thread: ==BEGIN uPortal THREAD== If you stop tomcat (kill if needed), clear out all your logs, rm -rf work/Catalina/localhost, and start tomcat, what do you see in your logs? also, there is a chance that you don't have tomcat configured to autodeploy, which could be the reason for no response (it isn't deploying uPortal etc. and/or compiling the jsps etc. and putting them in the work/... dir). If you are new to tomcat, you might also want to check out the tomcat- users list and ask there to get up to speed with Tomcat first: http://tomcat.apache.org/lists.html Unfortunately even though uPortal uses Tomcat, admining Tomcat is not the point of this list. :( Wish I could be of better help. Thanks, Gary Egeste wrote: Gary, thank you for your advice. I had not run the deployPortletApp task. After running the task and restarting tomcat, no new errors were generated in catalina.log, however browsing to localhost on port 8080 returns 0 bytes, or localhost:8080/uPortal returns a tomcat 404 message, and i cant seem to locate any portal.log file. Following this I proceeded with step 2, changing the ownership of tomcat_home/webapps and tomcat_home/logs to tomcat55 (the user tomcat runs as), as well as deleting tomcat_home/work/Catalina/ localhost. Once again, after restarting tomcat I get a 0 byte response from localhost:8080 and a tomcat 404 from localhost:8080/ uPortal. Again, no portal.log is created. Is there any more insight anyone could shed on this? Thanks in advance -Steve On Dec 7, 2009, at 12:19 PM, Gary Weaver wrote: As a correction for solution to issue 2, I meant a recursive chown (it is unlikely that the files themselves have wrong attributes, so chmod prob not needed). Gary Weaver wrote: Issue 1: Did you use uPortal to deploy your portlet via the ant/maven task? Looking at your web.xml I don't see the part that is automatically generated by that process. That "plutofication" process will add portlet.tld to the deployed portlet (webapp) and will modify (add some XML to) web.xml (using your portlet.xml). While you *can* include these changes yourself in the portlet without going through uPortal, it is highly recommended by the uPortal developers to use the deployPortletApp process instead because it includes the portlet.tld and web.xml changes that are specific for the version of the Apache Pluto that uPortal uses. Issue 2: Looks like you have some permissions issues. If possible do a recursive chmod to add read and write rights to the user/group that Tomcat is running as on your (tomcat home)/webapps directory, do the same for your (tomcat home)/logs and you might want to remove (rm -rf) (tomcat home)/work/Catalina/localhost directory just in case it compiled some stuff as a diff user if you ran Tomcat as one user and then later as another user. Hope this helps, Gary Egeste wrote: When I deploy war and start tomcat, I'm getting this error. Any advice? Error: http://pastebin.ca/1701299 portlet.tld http://pastebin.ca/1701300 web.xml http://pastebin.ca/1701301 --- You are currently subscribed to uportal-u...@lists.ja-sig.org as: gary.wea...@duke.edu To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user --- You are currently subscribed to uportal-u...@lists.ja-sig.org as: ege...@egeste.net To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user ---You are currently subscribed to uportal-u...@lists.ja-sig.org as: gary.wea...@duke.edu To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user --- You are currently subscribed to uportal-u...@lists.ja-sig.org as: ege...@egeste.net To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user ==END THREAD== I've read through much of the documentation in my learning process attempting to deploy this app, but have not come across anything that has jumped out as a feasible or probable solution or coherent definition of the problem I'm experiencing. At this point I no longer have any error logs to interpret and would appreciate any guidance. -Steve
Re: tomcat, uPortal, error messages and confusion
Chuck, Thank you for volunteering assistance. To clarifty, do you want the web.xml and context.xml files before or after I build the war file? On Dec 7, 2009, at 3:18 PM, Caldarale, Charles R wrote: From: Egeste [mailto:ege...@egeste.net] Subject: tomcat, uPortal, error messages and confusion in communication with the uPortal mailing list, I was advised to seek advice from this group regarding the following thread: Is this a real Tomcat, or a Ubuntu-mangled version? Please post your server.xml file, which should be in Tomcat's conf directory (unless the Ubuntu distribution moved it somewhere else). Also post the META-INF/context.xml and WEB-INF/web.xml for your uPortal webapp, if they exist. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat, uPortal, error messages and confusion
I'm unsure whether it's an "ubuntu mangled" version - I installed tomcat5.5 via apt-get. uname -a: Linux *** 2.6.18-92.1.18.el5.028stab060.8PAE #1 SMP Mon Feb 9 22:32:30 MSK 2009 i686 GNU/Linux Here is my server.xml: http://pastebin.ca/1707274 webapps/uPortal/META-INF/context.xml: className="org.apache.catalina.session.StandardManager"/> web.xml http://pastebin.ca/1707286 -Steve On Dec 7, 2009, at 3:18 PM, Caldarale, Charles R wrote: From: Egeste [mailto:ege...@egeste.net] Subject: tomcat, uPortal, error messages and confusion in communication with the uPortal mailing list, I was advised to seek advice from this group regarding the following thread: Is this a real Tomcat, or a Ubuntu-mangled version? Please post your server.xml file, which should be in Tomcat's conf directory (unless the Ubuntu distribution moved it somewhere else). Also post the META-INF/context.xml and WEB-INF/web.xml for your uPortal webapp, if they exist. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat, uPortal, error messages and confusion
As for the mangled ubuntu version, tomcat_home is /usr/share/ tomcat5.5, here is the directory listing total 20 drwxr-xr-x 5 root root 4096 Dec 9 00:35 . drwxr-xr-x 121 root root 4096 Dec 9 00:37 .. drwxr-xr-x 2 root root 4096 Dec 9 00:35 bin drwxr-xr-x 6 root root 4096 Dec 9 00:35 common lrwxrwxrwx 1 root root 14 Dec 9 00:35 conf -> /etc/tomcat5.5 lrwxrwxrwx 1 root root 16 Dec 9 00:35 doc -> ../doc/tomcat5.5 lrwxrwxrwx 1 root root 23 Dec 9 00:35 logs -> /var/lib/tomcat5.5/ logs drwxr-xr-x 5 root root 4096 Dec 9 00:37 server lrwxrwxrwx 1 root root 25 Dec 9 00:35 shared -> /var/lib/ tomcat5.5/shared lrwxrwxrwx 1 root root 23 Dec 9 00:35 temp -> /var/lib/tomcat5.5/ temp lrwxrwxrwx 1 root root 26 Dec 9 00:35 webapps -> /var/lib/ tomcat5.5/webapps lrwxrwxrwx 1 root root 23 Dec 9 00:35 work -> /var/lib/tomcat5.5/ work Here is my updated web.xml on pastebin, hopefully easier to read =). http://pastebin.ca/1708600 Here is the directory listing for tomcat_home/webapps total 12 drwxr-xr-x 3 tomcat55 root 4096 Dec 9 00:12 . drwxr-xr-x 5 root root 4096 Dec 9 00:35 .. drwxr-xr-x 6 root root 4096 Dec 9 00:12 uPortal Again, the issue is blank pages navigating to localhost:8080 and tomcat 404 when navigating to localhost:8080/uPortal On Dec 8, 2009, at 5:41 PM, Caldarale, Charles R wrote: From: Egeste [mailto:ege...@egeste.net] Subject: Re: tomcat, uPortal, error messages and confusion I'm unsure whether it's an "ubuntu mangled" version - I installed tomcat5.5 via apt-get. It's mangled, meaning that files may not be located where they are in the standard Tomcat distribution, and some configuration settings may have been changed from the standard. Here is my server.xml: http://pastebin.ca/1707274 That looks o.k. webapps/uPortal/META-INF/context.xml: The above is fine. What else do you have under the webapps directory? In particular, is there a default (ROOT) webapp deployed? I seem to recall seeing blank pages returned when no default webapp is available. web.xml http://pastebin.ca/1707286 That's pretty much unreadable, at least by humans my age. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat, uPortal, error messages and confusion
Chuck, Thanks again for all your help with this. After following your instructions and restarting tomcat, i know see my index.html when I browse to localhost:8080. However, I still only see a 404 message when I browse to localhost:8080/uPortal. Any further suggestions? On Dec 9, 2009, at 2:34 PM, Caldarale, Charles R wrote: From: Egeste [mailto:ege...@egeste.net] Subject: Re: tomcat, uPortal, error messages and confusion As for the mangled ubuntu version, tomcat_home is /usr/share/ tomcat5.5, here is the directory listing Yup, mangled - notice the soft links to files scattered all over, rather than the concise structure a real Tomcat distribution uses. Here is the directory listing for tomcat_home/webapps total 12 drwxr-xr-x 3 tomcat55 root 4096 Dec 9 00:12 . drwxr-xr-x 5 root root 4096 Dec 9 00:35 .. drwxr-xr-x 6 root root 4096 Dec 9 00:12 uPortal As I suspected, you're missing a default webapp (ROOT); strange behavior occurs when you omit that. All you need is a dummy webapp named ROOT (case sensitive) with a simple index.html file in it. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
AJP connector and java keystore
I'm using tomcat6, deploying a webapp via mod_jk, but my application is failing because java does not like my self signed certificate. I do not want users to access tomcat directly. How can I tell tomcat that my cert is trusted? Thanks -Steve - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: AJP connector and java keystore
You are correct, i misinterpreted the issue. Thank you for the information about tomcatAuthentication On Dec 16, 2009, at 5:02 PM, André Warnier wrote: Egeste wrote: I'm using tomcat6, deploying a webapp via mod_jk, but my application is failing because java does not like my self signed certificate. I do not want users to access tomcat directly. How can I tell tomcat that my cert is trusted? If you have mod_jk (and thus Apache) in front, then why do you need that the communication between Apache and Tomcat would be under SSL ? Is it not simpler to have client --> HTTPS --> Apache --> mod_jk, non SSL --> Tomcat If the link between Apache and Tomcat is not on the Internet, then there is no reason to carry the SSL overhead over to Tomcat. Let Apache and the client deal with it, and just talk AJP between Apache and Tomcat. If you need to forward the user-id from Apache to Tomcat, then just set the "tomcatAuthentication" attribute of the AJP Connector to false, and Tomcat will "believe" the user-id forwarded by mod_jk. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org