Java.lang.illegalargumentexception Path Error Does Not Start With A / Character
Contents |
Certification Databases Caching Books Engineering Languages Frameworks Products This Site Careers Other all forums Forum: JSP java. lang. IllegalArgumentException: Path does not start with a "/" http status 500 - path does not start with a / character character Dhuruv Wadekar Greenhorn Posts: 4 posted 8 years ago I
Path Index.html Does Not Start With A "/" Character
use a web page with form controls on it. when the user clicks on submit, I try to java lang illegalargumentexception path does not start with a character struts transfer this information to a servlet. In the servlet I try to attach a value to the request and return it, using a request dispatcher like this. RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("http://www.xyz.com/Index.jsp"); req.setAttribute("operationType", operationType); dispatcher.forward(req,res); However my servlet returns a error : java.lang.IllegalArgumentException: Path http://www.xyz.com/Index.jsp does not start with a "/" character Can anyone help me resolve this issue? Ben Souther Sheriff Posts: 13411 I like... posted 8 years ago Request dispatcher can only forward to resources within your web application. See: http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContext.html#getRequestDispatcher(java.lang.String) Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf Dhuruv Wadekar Greenhorn Posts: 4 posted 8 years ago Well Actually the index.jsp that i was talking about is the main jsp page with form controls that is trying to call the servlet. All I m trying to do is to include the operationType object in the request and forward it to the same page... Ben Souther Sheriff Posts: 13411 I like... posted 8 years ago OK. Did you read the API docs from the link that I posted? Can you see why the argument to getRequestDispatcher is invalid? [ April 08, 2008: Message edited by: Ben Souther ] Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf Dhuruv Wadekar Greenhorn Posts: 4 posted 8 years ago Yes I did....And it's working fine now.... thank you very much...Previously I didn't know that the reference of the URL must be given with respect to Root of that context Thanks once again Post Reply Bookmark Topic Watch Topic New Topic Similar Threads RequestDispatcher forward method
English » 1. Installation / Deployment / Setup Recent Posts Statistics RSS (Opens New Window) Answer (Unmark) Mark as an Answer Threads [ Previous | Next ] Error: Path does not start with a "/" character Dieter Engelhardt March 7, 2012 12:12 PM RE: Error: Path does not start with a "/" character Amos Fong March 7, 2012 10:23 PM RE: Error: Path does not start with a "/" character Dieter http://coderanch.com/t/293385/JSP/java/java-lang-IllegalArgumentException-Path-start Engelhardt March 8, 2012 3:22 AM RE: Error: Path does not start with a "/" character Dieter Engelhardt March 8, 2012 4:30 AM RE: Error: Path does not start with a "/" character Tibor Kiss April 4, 2012 12:36 AM RE: Error: Path does not start with a "/" character https://web.liferay.com/community/forums/-/message_boards/message/12877976 Milan Palian April 10, 2012 4:46 AM Error: Path does not start with a "/" character March 7, 2012 12:12 PM Answer Dieter Engelhardt Rank: New Member Posts: 18 Join Date: October 30, 2011 Recent Posts Hi,i've searched several hours about this Problem.My intstallation LR 6.1 on Ubuntu-Linux behind Apache with virtual hosts via ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/If i check the sessionid in Tomcat-access.log it seems to me, that these are googel crawler requests.Here the full Stacktrace.111:42:11,772 INFO [PortalImpl:4873] Current URL /vi;jsessionid=F47B6E27BA509DD35B5BA5D6EEF559F2 generates exception: Path ;js2essionid=F47B6E27BA509DD35B5BA5D6EEF559F2 does not start with a "/" character311:42:11,794 ERROR [status_jsp:670] java.lang.IllegalArgumentException: Path ;jsessionid=F47B6E27BA509DD35B5BA5D6EEF559F2 does4 not start with a "/" character5java.lang.IllegalArgumentException: Path ;jsessionid=F47B6E27BA509DD35B5BA5D6EEF559F2 does not start with a "/" character6 at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:432)7 at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:223)8 at com.liferay.portal.servlet.I18nServlet.service(I18nServlet.java:100)9 at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)10 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)11 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)12 at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)13 at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(Ba
Red Hat Certificate System Red Hat Satellite Subscription Asset Manager Red Hat Update Infrastructure Red Hat Insights Ansible Tower by Red Hat Cloud Computing Back Red Hat https://access.redhat.com/solutions/29998 CloudForms Red Hat OpenStack Platform Red Hat Cloud Infrastructure Red Hat Cloud Suite Red Hat OpenShift Container Platform Red Hat OpenShift Online Red Hat OpenShift Dedicated Storage Back Red Hat Gluster Storage Red Hat Ceph Storage JBoss Development and Management Back Red Hat JBoss Enterprise Application Platform Red Hat JBoss Data Grid Red Hat JBoss Web Server Red Hat JBoss Portal Red Hat does not JBoss Operations Network Red Hat JBoss Developer Studio JBoss Integration and Automation Back Red Hat JBoss Data Virtualization Red Hat JBoss Fuse Red Hat JBoss A-MQ Red Hat JBoss BPM Suite Red Hat JBoss BRMS Mobile Back Red Hat Mobile Application Platform Services Back Consulting Technical Account Management Training & Certifications Red Hat Enterprise Linux Developer Program Support Get Support Production Support does not start Development Support Product Life Cycle & Update Policies Knowledge Search Documentation Knowledgebase Videos Discussions Ecosystem Browse Certified Solutions Overview Partner Resources Tools Back Red Hat Insights Learn More Red Hat Access Labs Explore Labs Configuration Deployment Troubleshooting Security Additional Tools Red Hat Access plug-ins Red Hat Satellite Certificate Tool Security Back Product Security Center Security Updates Security Advisories Red Hat CVE Database Security Labs Resources Overview Security Blog Security Measurement Severity Ratings Backporting Policies Product Signing (GPG) Keys Community Back Discussions Red Hat Enterprise Linux Red Hat Virtualization Red Hat Satellite Customer Portal Private Groups All Discussions Start a Discussion Blogs Customer Portal Red Hat Product Security Red Hat Access Labs Red Hat Insights All Blogs Events Customer Events Red Hat Summit Stories Red Hat Subscription Benefits You Asked. We Acted. Open Source Communities Subscriptions Downloads Support Cases Account Back Log In Register Red Hat Account Number: Account Details Newsletter and Contact Preferences User Management Account Maintenance My Profile Notifications Help Log Out Language Back English español Deutsch italiano 한국어 français 日本語 português 中文 (中国) русский Customer Portal Search Products & Services Back View All