Jahia Dev Forum > double slash

0 (0 Good)
0 (0 Bad)

double slash

by  ybdev »  2011/06/07 20:46

Hello everyone,

Jahia is very powerfull a CMS. Thanks to make it open source.

In fact I'm using it since few months, in particular for developing a portal.

However, I'm facing a problem which become a "pain in the neck".

To make simple, here is 2 the scenarios :

(1) Struts 2 portlet
------------------
I created a simple struts 2 portlet which contains an empty action and one jsp. The jsp contains one form and submit button (fields in the form). 

When I click on the submit button I get "//" in the URL.

The "//" is inserted like this : http://localhost:port/JahiaPageName//_xxxxxxxxxxxxxxxx

The same portlet works fine without "//" under Apache Pluto Container!!!

(2) JSR 168 : 

For eliminating doubt of struts 2 framework, I created a JSR 168 portlet

The problem still appears in Jahia but not in Apache Pluto container!?

Any idea to solve the probleme? Have anyone faced it before?

Thanks so much in advance.

Youcef

  • double slash
    2011/07/08 12:15

    ybdev <p> Hello everyone,<br /> <br /> Jahia is very powerfull a CMS. Thanks to make it open source.<br /> <br /> In fact I&#39;m using it since few months, in particular for developing a portal.<br /> <br /> However, I&#39;m facing a problem which become a &quot;pain in the neck&quot;.<br /> <br /> To make simple, here is 2 the scenarios :<br /> <br /> (1) Struts 2 portlet<br /> ------------------<br /> I created a simple struts 2 portlet which contains an empty action and one jsp. The jsp contains one form and submit button (fields in the form).&nbsp;<br /> <br /> When I click on the submit button I get &quot;//&quot; in the URL.<br /> <br /> The &quot;//&quot; is inserted like this :&nbsp;<a href="http://localhost:port/JahiaPageName//_xxxxxxxxxxxxxxxx">http://localhost:port/JahiaPageName//_xxxxxxxxxxxxxxxx</a><br /> <br /> The same portlet works fine without &quot;//&quot; under Apache Pluto Container!!!<br /> <br /> (2) JSR 168 :&nbsp;<br /> <br /> For eliminating doubt of struts 2 framework, I created a JSR 168 portlet<br /> <br /> The problem still appears in Jahia but not in Apache Pluto container!?<br /> <br /> Any idea to solve the probleme? Have anyone faced it before?<br /> <br /> Thanks so much in advance.<br /> <br /> Youcef</p>

  • Number of messages  8
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: double slash

    by  shyrkov »  2011/06/07 20:46

    Hello Youcef,

    could you, please, let us know which Jahia build number are you using and also your sample JSR 168 portlet or Struts 2 one that we can test it on our side and resolve the issue?

    Kind regards
    Sergiy
  • Re: double slash
    2011/06/07 20:46

    shyrkov Hello Youcef,<br/><br/>could you, please, let us know which Jahia build number are you using and also your sample JSR 168 portlet or Struts 2 one that we can test it on our side and resolve the issue?<br/><br/>Kind regards<br/>Sergiy

  • Number of messages  407
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: double slash

    by  ybdev »  2011/06/07 20:46

    Hi Sergiy

    please find attached the struts 2 portlet.

    You must test it in child page not in the home page of sites.

    The "//" appears only in child pages!

    ps. jahia version « Jahia 6.1.1 r31787 »

    I failed to attach the portlet. Would it be possible to send me you email address?

    Best ragrads

    Youcef

  • Re: double slash
    2011/07/08 12:15

    ybdev <p> Hi Sergiy<br /> <br /> please find attached the struts 2 portlet.<br /> <br /> You must test it in child page not in the home page of sites.<br /> <br /> The &quot;//&quot; appears only in child pages!<br /> <br /> ps. jahia version &laquo; Jahia 6.1.1 r31787 &raquo;<br /> <br /> I failed to attach the portlet. Would it be possible to send me you email address?<br /> <br /> Best ragrads<br /> <br /> Youcef</p>

  • Number of messages  8
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: double slash

    by  shyrkov »  2011/06/07 20:46

    Hello Youcef,

    I would suggest that you create a ticket for this in our community issue tracking system. There is also a possibility to attach files directly to the ticket.

    Thank you in advance!

    Kind regards
    Sergiy

  • Re: double slash
    2011/07/08 12:16

    shyrkov <p> Hello Youcef,<br /> <br /> I would suggest that you create a ticket for this in our&nbsp;<a href="http://jira.jahia.org/">community issue tracking system</a>. There is also a possibility to attach files directly to the ticket.<br /> <br /> Thank you in advance!<br /> <br /> Kind regards<br /> Sergiy</p>

  • Number of messages  407
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: double slash

    by  ybdev »  2011/06/07 20:46

    Dear Sergiy,

    I added ticket in Jahia Jira "double slash"...

    Bien cordialement

    Youcef

  • Re: double slash
    2011/07/08 12:16

    ybdev <p> Dear Sergiy,<br /> <br /> I added ticket in Jahia Jira &quot;double slash&quot;...<br /> <br /> Bien cordialement<br /> <br /> Youcef</p>

  • Number of messages  8
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: double slash

    by  ybdev »  2011/06/07 20:46

    Am wondering why it took so time for testing the portlet?

    Am getting dispointed when asking me to create Ticket rather to try answering my question.

    Please any help?

    Thanks in advance

    Youcef
  • Re: double slash
    2011/06/07 20:46

    ybdev Am wondering why it took so time for testing the portlet?<br/><br/>Am getting dispointed when asking me to create Ticket rather to try answering my question.<br/><br/>Please any help?<br/><br/>Thanks in advance<br/><br/>Youcef

  • Number of messages  8
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: double slash

    by  shyrkov »  2011/06/07 20:46

     

    Hello Youcef,

     

    we are really concerned to make our customer support service and change request tracking as convenient as we can.

    Since you've posted your ticket PORTAL-326 there were only 24 business hours passed.

    If you would like to force the quickest possible response to your problem, please, take care of describing your test case and thus help our support engineers to reproduce the problem easier. I do not see any description in the ticket - had you problems / access rights issue posting your description into the ticket?

    When testing your "portlet" (why have you attached it as as ZIP file?), I am encountering en exception when calling the page with this portlet:

    Caused by: org.apache.jasper.JasperException: File "/tld/std-portlet_2_0.tld" not found
    
            at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
    
            at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
    
            at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
    
            at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:160)
    
            at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:431)
    
            at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:494)
    
            at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
    
            at org.apache.jasper.compiler.Parser.parse(Parser.java:138)
    
            at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
    
            at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
    
            at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154)
    
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
    
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
    
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
    
            at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
    
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
    
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:2
    
    90)
    
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
    
            at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
    
            at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
    
            at org.apache.pluto.internal.impl.PortletRequestDispatcherImpl.internalInclude(PortletRequestDisp

    I would also suggest if you would like a faster assistance with your custom portlet, please, contact your Jahia product manager (you get one when you have a valid support contract) or move your ticket to your project area in our support JIRA.

     

    Kind regards

    Sergiy

  • Re: double slash
    2011/07/08 12:21

    shyrkov <p> &nbsp;</p> <p> <title></title> </p> <p> Hello Youcef,</p> <p> &nbsp;</p> <p> we are really concerned to make our customer support service and change request tracking as convenient as we can.</p> <p> Since you&#39;ve posted your ticket <a href="http://jira.jahia.org/browse/PORTAL-326">PORTAL-326</a> there were only 24 business hours passed.</p> <p> If you would like to force the quickest possible response to your problem, please, take care of describing your test case and thus help our support engineers to reproduce the problem easier. I do not see any description in the ticket - had you problems / access rights issue posting your description into the ticket?</p> <p> When testing your &quot;portlet&quot; (why have you attached it as as ZIP file?), I am encountering en exception when calling the page with this portlet:</p> <pre> Caused by: org.apache.jasper.JasperException: File &quot;/tld/std-portlet_2_0.tld&quot; not found at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116) at org.apache.jasper.compiler.TagLibraryInfoImpl.&lt;init&gt;(TagLibraryInfoImpl.java:160) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:431) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:494) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444) at org.apache.jasper.compiler.Parser.parse(Parser.java:138) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:315) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:2 90) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472) at org.apache.pluto.internal.impl.PortletRequestDispatcherImpl.internalInclude(PortletRequestDisp</pre> <p> I would also suggest if you would like a faster assistance with your custom portlet, please, contact your Jahia product manager (you get one when you have a valid support contract) or move your ticket to your project area in our <a href="http://support.jahia.com/">support JIRA</a>.</p> <p> &nbsp;</p> <p> Kind regards</p> <p> Sergiy</p>

  • Number of messages  407
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: double slash

    by  ybdev »  2011/06/07 20:46

    Hi Sergiy,

    I find Jahia very exciting cms/portal which is helping me to develop my own/personal project.

    As for the portlet, there is no problem since the "/tld/std-portlet_2_0.tld" is configured in web.xml and located in WEB-INF/tld/ directory. It works without any issues after be deployed in Jahia. Am sure that the problem is coming somewhere in your configuration. Or may be you don't unzip all files or something else.

    Jahia is an open source portal, I would like to report bugs and issues. After getting used with it, I'll probably contribute for it's development and enhancement.

    I'll put more details in the ticket (screenshot, ..etc)

    tools and environment : Jahia, weblogic, struts 2

    Thanks again for you kind replies.

    Best regards
    Youcef

  • Re: double slash
    2011/07/08 12:21

    ybdev <p> Hi Sergiy,<br /> <br /> I find Jahia very exciting cms/portal which is helping me to develop my own/personal project.<br /> <br /> As for the portlet, there is no problem since the &quot;/tld/std-portlet_2_0.tld&quot; is configured in web.xml and located in WEB-INF/tld/ directory. It works without any issues after be deployed in Jahia. Am sure that the problem is coming somewhere in your configuration. Or may be you don&#39;t unzip all files or something else.<br /> <br /> Jahia is an open source portal, I would like to report bugs and issues. After getting used with it, I&#39;ll probably contribute for it&#39;s development and enhancement.<br /> <br /> I&#39;ll put more details in the ticket (screenshot, ..etc)<br /> <br /> tools and environment : Jahia, weblogic, struts 2<br /> <br /> Thanks again for you kind replies.<br /> <br /> Best regards<br /> Youcef</p>

  • Number of messages  8
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: double slash

    by  ybdev »  2011/06/07 20:46

    Dear Sergiy,

    I tried to add screenshot and war file (same as zip file) to the ticket without success (when attach files it redirect to invalid link!).

    So, I added them in this post.

    Please tell me whether you run it or no?

    Thanks in advance.

    Youcef
  • Re: double slash
    2011/06/07 20:46

    ybdev Dear Sergiy,<br/><br/>I tried to add screenshot and war file (same as zip file) to the ticket without success (when attach files it redirect to invalid link!).<br/><br/>So, I added them in this post.<br/><br/>Please tell me whether you run it or no?<br/><br/>Thanks in advance.<br/><br/>Youcef

  • Number of messages  8
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: double slash

    by  ybdev »  2011/06/07 20:46

    Dear Sergiy,

    Have you checked the issue? Any result?

    Any help will be appreciated.

    Regards

    Youcef
  • Re: double slash
    2011/06/07 20:46

    ybdev Dear Sergiy,<br/><br/>Have you checked the issue? Any result?<br/><br/>Any help will be appreciated.<br/><br/>Regards<br/><br/>Youcef

  • Number of messages  8
    Registration date Jun 7, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page