You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Khalid K." <gr...@maikada.com> on 2003/11/26 01:46:50 UTC

problem - urgent..help!!

platform:  AIX/Websphere
Struts V:  1.0.2

Problem:  <bean:include id="x" name="/pages/page1.jsp"/>
          <bean:write name="x" filter="false"/>

the above code works fine in windows - none SSL environment.
When we migrate the code to AIX/Websphere that has SSL installed..
hence..https://blahblah... The above code throws:
java.net.MalformedURLException: unknown protocol: https

Last time I checked https is a valid protocol...HELP!!!!! THANKS! 

Thanks in advance!!! (cant use jsp:include ...custom wrappers etc...)


WebGroup      X Servlet Error: Cannot create include URL: 
java.net.MalformedURLException: unknown protocol: https: 
javax.servlet.jsp.JspException: Cannot create include URL: 
java.net.MalformedURLException: unknown protocol: https
        at org.apache.struts.taglib.bean.IncludeTag.doStartTag(IncludeTag.java)
        at noticeofchange._notice_5F_of_5F_change_jsp_5._jspService
(_notice_5F_of_5F_change_jsp_5.java:241)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
(Compiled Code))



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: problem - urgent..help!!

Posted by "Khalid K." <gr...@maikada.com>.
Any solutions yet??? I found a couple of possible solutions.

Download jsse jar files and then setup the  System property by using
System.setProperty("", "")  ('cant recall the correct class names..i am
home now :))

My question is ...how to make this work in a server env. I can make it
work in a stand alone test program, but where can I set 
This attribute in a WebApp to make Strut happy so the <bean:include> tag
does not throw the "unknown protocol: https"  exception ????

Thanks



-----Original Message-----
From: Craig R. McClanahan [mailto:craigmcc@apache.org] 
Sent: Tuesday, November 25, 2003 6:35 PM
To: Struts Users Mailing List; Daniel A. Torrey
Cc: Struts Users Mailing List
Subject: Re: <bean:include> problem - urgent..help!!


Quoting "Daniel A. Torrey" <da...@datorrey.net>:

> I don't think that java.net.URL is capable of setting up an SSL 
> connection.
> 
> -daniel
> 

Actually, it is possible if you have JSSE available (or you're running
JDK 1.4 or later, which includes JSSE).

    http://java.sun.com/products/jsse/

> Daniel A. Torrey
> daniel at datorrey dot net
> 

Craig


> 
> 
> Quoting "Khalid K." <gr...@maikada.com>:
> 
> > platform:  AIX/Websphere
> > Struts V:  1.0.2
> > 
> > Problem:  <bean:include id="x" name="/pages/page1.jsp"/>
> >           <bean:write name="x" filter="false"/>
> > 
> > the above code works fine in windows - none SSL environment. When we

> > migrate the code to AIX/Websphere that has SSL installed.. 
> > hence..https://blahblah... The above code throws:
> > java.net.MalformedURLException: unknown protocol: https
> > 
> > Last time I checked https is a valid protocol...HELP!!!!! THANKS!
> > 
> > Thanks in advance!!! (cant use jsp:include ...custom wrappers 
> > etc...)
> > 
> > 
> > WebGroup      X Servlet Error: Cannot create include URL:
> > java.net.MalformedURLException: unknown protocol: https:
> > javax.servlet.jsp.JspException: Cannot create include URL:
> > java.net.MalformedURLException: unknown protocol: https
> >         at
> > org.apache.struts.taglib.bean.IncludeTag.doStartTag(IncludeTag.java)
> >         at noticeofchange._notice_5F_of_5F_change_jsp_5._jspService
> > (_notice_5F_of_5F_change_jsp_5.java:241)
> >         at 
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
> > (Compiled Code))
> > 
> > 
> > 
> > --------------------------------------------------------------------
> > -
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003
 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: problem - urgent..help!!

Posted by "Craig R. McClanahan" <cr...@apache.org>.
Quoting "Daniel A. Torrey" <da...@datorrey.net>:

> I don't think that java.net.URL is capable of setting up an SSL connection.
> 
> -daniel
> 

Actually, it is possible if you have JSSE available (or you're running JDK 1.4
or later, which includes JSSE).

    http://java.sun.com/products/jsse/

> Daniel A. Torrey
> daniel at datorrey dot net
> 

Craig


> 
> 
> Quoting "Khalid K." <gr...@maikada.com>:
> 
> > platform:  AIX/Websphere
> > Struts V:  1.0.2
> > 
> > Problem:  <bean:include id="x" name="/pages/page1.jsp"/>
> >           <bean:write name="x" filter="false"/>
> > 
> > the above code works fine in windows - none SSL environment.
> > When we migrate the code to AIX/Websphere that has SSL installed..
> > hence..https://blahblah... The above code throws:
> > java.net.MalformedURLException: unknown protocol: https
> > 
> > Last time I checked https is a valid protocol...HELP!!!!! THANKS!
> > 
> > Thanks in advance!!! (cant use jsp:include ...custom wrappers etc...)
> > 
> > 
> > WebGroup      X Servlet Error: Cannot create include URL:
> > java.net.MalformedURLException: unknown protocol: https:
> > javax.servlet.jsp.JspException: Cannot create include URL:
> > java.net.MalformedURLException: unknown protocol: https
> >         at
> > org.apache.struts.taglib.bean.IncludeTag.doStartTag(IncludeTag.java)
> >         at noticeofchange._notice_5F_of_5F_change_jsp_5._jspService
> > (_notice_5F_of_5F_change_jsp_5.java:241)
> >         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
> > (Compiled Code))
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: https problem - urgent..help!!

Posted by "Khalid K." <gr...@maikada.com>.
This is bad then!! Any proposed solutions ???
<bean:include> tag uses RequestUtils.computeURL() and requestURL()
to determine how to get the included file...

So...<bean:include> does with https ???????   Any ideas..anyone??

Thanks


> I don't think that java.net.URL is capable of setting up an SSL connection.
> 
> -daniel
> 
> Daniel A. Torrey
> daniel at datorrey dot net
> 
> 
> 
> Quoting "Khalid K." <gr...@maikada.com>:
> 
> > platform:  AIX/Websphere
> > Struts V:  1.0.2
> > 
> > Problem:  <bean:include id="x" name="/pages/page1.jsp"/>
> >           <bean:write name="x" filter="false"/>
> > 
> > the above code works fine in windows - none SSL environment.
> > When we migrate the code to AIX/Websphere that has SSL installed..
> > hence..https://blahblah... The above code throws:
> > java.net.MalformedURLException: unknown protocol: https
> > 
> > Last time I checked https is a valid protocol...HELP!!!!! THANKS!
> > 
> > Thanks in advance!!! (cant use jsp:include ...custom wrappers etc...)
> > 
> > 
> > WebGroup      X Servlet Error: Cannot create include URL:
> > java.net.MalformedURLException: unknown protocol: https:
> > javax.servlet.jsp.JspException: Cannot create include URL:
> > java.net.MalformedURLException: unknown protocol: https
> >         at
> > org.apache.struts.taglib.bean.IncludeTag.doStartTag(IncludeTag.java)
> >         at noticeofchange._notice_5F_of_5F_change_jsp_5._jspService
> > (_notice_5F_of_5F_change_jsp_5.java:241)
> >         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
> > (Compiled Code))
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 


-- 
Khalid K.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: problem - urgent..help!!

Posted by "Daniel A. Torrey" <da...@datorrey.net>.
I don't think that java.net.URL is capable of setting up an SSL connection.

-daniel

Daniel A. Torrey
daniel at datorrey dot net



Quoting "Khalid K." <gr...@maikada.com>:

> platform:  AIX/Websphere
> Struts V:  1.0.2
> 
> Problem:  <bean:include id="x" name="/pages/page1.jsp"/>
>           <bean:write name="x" filter="false"/>
> 
> the above code works fine in windows - none SSL environment.
> When we migrate the code to AIX/Websphere that has SSL installed..
> hence..https://blahblah... The above code throws:
> java.net.MalformedURLException: unknown protocol: https
> 
> Last time I checked https is a valid protocol...HELP!!!!! THANKS!
> 
> Thanks in advance!!! (cant use jsp:include ...custom wrappers etc...)
> 
> 
> WebGroup      X Servlet Error: Cannot create include URL:
> java.net.MalformedURLException: unknown protocol: https:
> javax.servlet.jsp.JspException: Cannot create include URL:
> java.net.MalformedURLException: unknown protocol: https
>         at
> org.apache.struts.taglib.bean.IncludeTag.doStartTag(IncludeTag.java)
>         at noticeofchange._notice_5F_of_5F_change_jsp_5._jspService
> (_notice_5F_of_5F_change_jsp_5.java:241)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
> (Compiled Code))
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org