[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-dev
Subject:    RE: Problem reading xsl in https environment
From:       "Soosai, Lourdhu Vasanth" <LourdhuV () aetna ! com>
Date:       2003-01-31 13:44:03
[Download RAW message or body]

hi hemant,
            if ur xsl is inside ur war , u need o need to the give  the
path.
depends on app server ur running.
        eg(websphere
:"/opt/IBMWebAS/installedApps/app1.ear/app1.war/xsl/your.xsl)

         try to have ur xsl outside ur war...
         like this (/var/webapps/appname/xsl/test.xsl)
         that will avoid u to rebuild ear for any xsl changes
           in production.      
       

code for jsse:
                public class SSLProvider {
       
        static
        {
                init();
        }
       
private static void init(){

        
        Provider pvr =Security.getProvider("com.ibm.jsse.JSSEProvider");
       
        if(pvr==null)
        {
                Security.addProvider(new com.ibm.jsse.JSSEProvider());
 
System.setProperty("java.protocol.handler.pkgs","com.ibm.net.ssl.internal.ww
w.protocol");
                Logger.log("-------------***--Enabled
jsse---------",Logger.INFO);
               
        }
 
Logger.log("ProviderName:"+Security.getProvider("com.ibm.jsse.JSSEProvider")
,Logger.INFO);   
          Logger.log("Handler
Name:"+System.getProperty("java.protocol.handler.pkgs"),Logger.INFO);
         
       
       
       
 }

hope this helps

cheers

vasanth 


-----Original Message-----
From: Hemant Pawar [  <mailto:hemant_r_pawar@yahoo.com>
mailto:hemant_r_pawar@yahoo.com]
Sent: Friday, January 31, 2003 4:37 AM
To: xerces-j-user@xml.apache.org
Subject: RE: Problem reading xsl in https environment


Thanks for replies.

Here are few more details..
The xsl is already available in my war file. I am
trying to read the xsl in my jsp using the code
new Transformer( new StreamSource (url));//xalan.jar

The url is complete path of the xsl which lies in the
same folder as the jsp. It is able to pick up the xsl
when you use simple  <http://> http:// request , but when its
 <https://> https:// it fails.

Vasanth, can you tell me how to enable the JSSE in
system properties?

Thanks n regards,
Hemant



--- "Soosai, Lourdhu Vasanth" <LourdhuV@aetna.com>
wrote:
> make sure u have enabled JSSE in the system
> properties.
>
>
> -----Original Message-----
> From: Voytenko, Dimitry
> [  <mailto:dvoytenko@sectordata.com> mailto:dvoytenko@sectordata.com]
> Sent: Thursday, January 30, 2003 12:04 PM
> To: 'xerces-j-user@xml.apache.org'
> Subject: RE: Problem reading xsl in https
> environment
>
>
> Hi Hemant,
>
> But can you download this file with anything else
> (Explorer, wget, etc) from
> your network environment? It's just might be
> unavailbale. Otherwise Xerces
> should work just fine.
> Unfortunetely, depending on JDK you use
> java.net.URLConnection provides not
> very clear exception message why error has occured.
> Usually it's just
> FileNotFound exception.
>
> thanks,
> Dimitry
>
> -----Original Message-----
> From: Hemant Pawar [  <mailto:hemant_r_pawar@yahoo.com>
mailto:hemant_r_pawar@yahoo.com]
> Sent: Thursday, January 30, 2003 06:19
> To: xerces-j-user@xml.apache.org
> Subject: Problem reading xsl in https environment
>
>
> Hi
>
> I encountered exception while trying to read a xsl
> file in https environment. I am using xalan.jar to
> transform a xml. Xalan internally uses xerces to
> read
> the xsl,which is used as input for the
> transformation.
>
> The exception encountered is as follows
>
> File
>
"  <https://intradev.bc/NPAD/npa/screens/interventionsmodule/OMSNPSEN.xsl>
https://intradev.bc/NPAD/npa/screens/interventionsmodule/OMSNPSEN.xsl"
> not found.
>       at
>
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1202)
>       at
>
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(Defa
> ultEntityHandler.java:499)
>       at
>
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:312)
>       at
>
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1080)
>
> Is there problem in xerces to read file in https
> connection?
>
> Please help.
>
> Regards,
> Hemant
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
>  <http://mailplus.yahoo.com> http://mailplus.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> xerces-j-user-help@xml.apache.org
>
>
>
_____________________________________________________
> Sector Data, LLC, is not affiliated with Sector,
> Inc., or SIAC
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> xerces-j-user-help@xml.apache.org
>
> This e-mail may contain confidential or privileged
> information.  If you
> think you have received this e-mail in error, please
> advise the sender by
> reply e-mail and then delete this e-mail
> immediately.  Thank you.  Aetna
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> xerces-j-user-help@xml.apache.org
>


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 <http://mailplus.yahoo.com> http://mailplus.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org



This e-mail may contain confidential or privileged information.  If you
think you have received this e-mail in error, please advise the sender by
reply e-mail and then delete this e-mail immediately.  Thank you.  Aetna

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE></TITLE>

<META content="MSHTML 5.50.4611.1300" name=GENERATOR></HEAD>
<BODY>
<P><FONT size=2>hi hemant,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; if ur xsl is inside ur war , u need o need to the give&nbsp; 
the path.<BR>depends on app server ur 
running.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eg(websphere 
> "/opt/IBMWebAS/installedApps/app1.ear/app1.war/xsl/your.xsl)<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
> 
try to have ur xsl outside ur 
war...<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; like this 
(/var/webapps/appname/xsl/test.xsl)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 that will avoid u to rebuild ear for any xsl 
changes<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; in 
production.&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><BR>code 
for jsse:<BR><FONT color=#800000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public class SSLProvider 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 static<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
init();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>private static void 
init(){<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 Provider pvr 
=Security.getProvider("com.ibm.jsse.JSSEProvider");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 if(pvr==null)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Security.addProvider(new 
com.ibm.jsse.JSSEProvider());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
System.setProperty("java.protocol.handler.pkgs","com.ibm.net.ssl.internal.www.protocol");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Logger.log("-------------***--Enabled 
jsse---------",Logger.INFO);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; 
Logger.log("ProviderName:"+Security.getProvider("com.ibm.jsse.JSSEProvider"),Logger.INFO);&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &nbsp; Logger.log("Handler 
Name:"+System.getProperty("java.protocol.handler.pkgs"),Logger.INFO);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp \
;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;}<BR></FONT><BR><FONT \
 face=Arial color=#0000ff>hope this helps</FONT></FONT></P>
<P><FONT face=Arial color=#0000ff size=2>cheers</FONT></P>
<P><FONT face=Arial color=#0000ff size=2>vasanth</FONT>&nbsp;</P>
<P><FONT size=2><BR>-----Original Message-----<BR>From: Hemant Pawar [</FONT><A 
href="mailto:hemant_r_pawar@yahoo.com"><FONT 
size=2>mailto:hemant_r_pawar@yahoo.com</FONT></A><FONT size=2>]<BR>Sent: Friday, 
January 31, 2003 4:37 AM<BR>To: xerces-j-user@xml.apache.org<BR>Subject: RE: 
Problem reading xsl in https environment<BR><BR><BR>Thanks for 
replies.<BR><BR>Here are few more details..<BR>The xsl is already available in 
my war file. I am<BR>trying to read the xsl in my jsp using the code<BR>new 
Transformer( new StreamSource (url));//xalan.jar<BR><BR>The url is complete path 
of the xsl which lies in the<BR>same folder as the jsp. It is able to pick up 
the xsl<BR>when you use simple </FONT><A target=_blank href="http://"><FONT 
size=2>http://</FONT></A><FONT size=2> request , but when its<BR></FONT><A 
target=_blank href="https://"><FONT size=2>https://</FONT></A><FONT size=2> it 
fails.<BR><BR>Vasanth, can you tell me how to enable the JSSE in<BR>system 
properties?<BR><BR>Thanks n regards,<BR>Hemant<BR><BR><BR><BR>--- "Soosai, 
Lourdhu Vasanth" &lt;LourdhuV@aetna.com&gt;<BR>wrote:<BR>&gt; make sure u have 
enabled JSSE in the system<BR>&gt; properties.<BR>&gt;<BR>&gt;<BR>&gt; 
-----Original Message-----<BR>&gt; From: Voytenko, Dimitry<BR>&gt; [</FONT><A 
href="mailto:dvoytenko@sectordata.com"><FONT 
size=2>mailto:dvoytenko@sectordata.com</FONT></A><FONT size=2>]<BR>&gt; Sent: 
Thursday, January 30, 2003 12:04 PM<BR>&gt; To: 
'xerces-j-user@xml.apache.org'<BR>&gt; Subject: RE: Problem reading xsl in 
https<BR>&gt; environment<BR>&gt;<BR>&gt;<BR>&gt; Hi Hemant,<BR>&gt;<BR>&gt; But 
can you download this file with anything else<BR>&gt; (Explorer, wget, etc) 
from<BR>&gt; your network environment? It's just might be<BR>&gt; unavailbale. 
Otherwise Xerces<BR>&gt; should work just fine.<BR>&gt; Unfortunetely, depending 
on JDK you use<BR>&gt; java.net.URLConnection provides not<BR>&gt; very clear 
exception message why error has occured.<BR>&gt; Usually it's just<BR>&gt; 
FileNotFound exception.<BR>&gt;<BR>&gt; thanks,<BR>&gt; Dimitry<BR>&gt;<BR>&gt; 
-----Original Message-----<BR>&gt; From: Hemant Pawar [</FONT><A 
href="mailto:hemant_r_pawar@yahoo.com"><FONT 
size=2>mailto:hemant_r_pawar@yahoo.com</FONT></A><FONT size=2>]<BR>&gt; Sent: 
Thursday, January 30, 2003 06:19<BR>&gt; To: 
xerces-j-user@xml.apache.org<BR>&gt; Subject: Problem reading xsl in https 
environment<BR>&gt;<BR>&gt;<BR>&gt; Hi<BR>&gt;<BR>&gt; I encountered exception 
while trying to read a xsl<BR>&gt; file in https environment. I am using 
xalan.jar to<BR>&gt; transform a xml. Xalan internally uses xerces to<BR>&gt; 
read<BR>&gt; the xsl,which is used as input for the<BR>&gt; 
transformation.<BR>&gt;<BR>&gt; The exception encountered is as 
follows<BR>&gt;<BR>&gt; File<BR>&gt;<BR>"</FONT><A target=_blank 
href="https://intradev.bc/NPAD/npa/screens/interventionsmodule/OMSNPSEN.xsl"><FONT 
size=2>https://intradev.bc/NPAD/npa/screens/interventionsmodule/OMSNPSEN.xsl</FONT></A><FONT \
 size=2>"<BR>&gt; not found.<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
at<BR>&gt;<BR>org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1202)<BR>&gt; \
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
at<BR>&gt;<BR>org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(Defa<BR>&gt; \
 ultEntityHandler.java:499)<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
at<BR>&gt;<BR>org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:312)<BR>&gt; \
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
at<BR>&gt;<BR>org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1080)<BR>&gt;<BR>&gt; \
 Is there problem in xerces to read file in https<BR>&gt; 
connection?<BR>&gt;<BR>&gt; Please help.<BR>&gt;<BR>&gt; Regards,<BR>&gt; 
Hemant<BR>&gt;<BR>&gt; 
__________________________________________________<BR>&gt; Do you 
Yahoo!?<BR>&gt; Yahoo! Mail Plus - Powerful. Affordable. Sign up<BR>&gt; 
now.<BR>&gt; </FONT><A target=_blank href="http://mailplus.yahoo.com"><FONT 
size=2>http://mailplus.yahoo.com</FONT></A><BR><FONT 
size=2>&gt;<BR>&gt;<BR>---------------------------------------------------------------------<BR>&gt; \
 To unsubscribe, e-mail:<BR>&gt; xerces-j-user-unsubscribe@xml.apache.org<BR>&gt; 
For additional commands, e-mail:<BR>&gt; 
xerces-j-user-help@xml.apache.org<BR>&gt;<BR>&gt;<BR>&gt;<BR>_____________________________________________________<BR>&gt; \
 Sector Data, LLC, is not affiliated with Sector,<BR>&gt; Inc., or 
SIAC<BR>&gt;<BR>&gt;<BR>---------------------------------------------------------------------<BR>&gt; \
 To unsubscribe, e-mail:<BR>&gt; xerces-j-user-unsubscribe@xml.apache.org<BR>&gt; 
For additional commands, e-mail:<BR>&gt; 
xerces-j-user-help@xml.apache.org<BR>&gt;<BR>&gt; This e-mail may contain 
confidential or privileged<BR>&gt; information.&nbsp; If you<BR>&gt; think you 
have received this e-mail in error, please<BR>&gt; advise the sender by<BR>&gt; 
reply e-mail and then delete this e-mail<BR>&gt; immediately.&nbsp; Thank 
you.&nbsp; 
Aetna<BR>&gt;<BR>&gt;<BR>---------------------------------------------------------------------<BR>&gt; \
 To unsubscribe, e-mail:<BR>&gt; xerces-j-user-unsubscribe@xml.apache.org<BR>&gt; 
For additional commands, e-mail:<BR>&gt; 
xerces-j-user-help@xml.apache.org<BR>&gt;<BR><BR><BR>__________________________________________________<BR>Do \
 you Yahoo!?<BR>Yahoo! Mail Plus - Powerful. Affordable. Sign up 
now.<BR></FONT><A target=_blank href="http://mailplus.yahoo.com"><FONT 
size=2>http://mailplus.yahoo.com</FONT></A><BR><BR><FONT 
size=2>---------------------------------------------------------------------<BR>To 
unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org<BR>For additional 
commands, e-mail: xerces-j-user-help@xml.apache.org<BR></P></FONT></BODY></HTML>
<BR>

<P><FONT SIZE=2 FACE="Arial">This e-mail may contain confidential or privileged \
information.  If you think you have received this e-mail in error, please advise the \
sender by reply e-mail and then delete this e-mail immediately.  Thank you.  \
Aetna</FONT></P>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic