Problem reading xsl in https environment 2003-01-31 - By Soosai, Lourdhu Vasanth
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@(protected)> mailto:hemant_r_pawar@(protected)] Sent: Friday, January 31, 2003 4:37 AM To: xerces-j-user@(protected) 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@(protected)> wrote: > make sure u have enabled JSSE in the system > properties. > > > -----Original Message----- > From: Voytenko, Dimitry > [ <mailto:dvoytenko@(protected)> mailto:dvoytenko@(protected)] > Sent: Thursday, January 30, 2003 12:04 PM > To: 'xerces-j-user@(protected)' > 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@(protected)> mailto:hemant_r_pawar@(protected)] > Sent: Thursday, January 30, 2003 06:19 > To: xerces-j-user@(protected) > 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@(protected) > For additional commands, e-mail: > xerces-j-user-help@(protected) > > > _____________________________________________________ > Sector Data, LLC, is not affiliated with Sector, > Inc., or SIAC > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > xerces-j-user-unsubscribe@(protected) > For additional commands, e-mail: > xerces-j-user-help@(protected) > > 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@(protected) > For additional commands, e-mail: > xerces-j-user-help@(protected) >
__________________________________________________ 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@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
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
<!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> if ur xsl is inside ur war , u need o need to the give the path.<BR>depends on app server ur running.<BR> eg(websphere :"/opt/IBMWebAS/installedApps/app1.ear/app1.war/xsl/your.xsl)<BR><BR> try to have ur xsl outside ur war...<BR> like this (/var/webapps/appname/xsl/test.xsl)<BR> that will avoid u to rebuild ear for any xsl changes<BR> in production. <BR> <BR><BR >code for jsse:<BR><FONT color=#800000> public class SSLProvider {<BR> <BR> static<BR> {<BR> init();<BR> }<BR> <BR>private static void init(){<BR><BR> <BR> Provider pvr =Security.getProvider("com.ibm.jsse.JSSEProvider");<BR> <BR> if(pvr==null)<BR> {<BR> Security.addProvider(new com.ibm.jsse.JSSEProvider());<BR> System.setProperty("java.protocol.handler.pkgs","com.ibm.net.ssl.internal.www .protocol");<BR> Logger.log("-------------***- -Enabled jsse---------",Logger.INFO);<BR> <BR> }<BR> Logger.log("ProviderName:"+Security.getProvider("com.ibm.jsse.JSSEProvider") ,Logger.INFO); <BR> Logger.log("Handler Name:"+System.getProperty("java.protocol.handler.pkgs"),Logger.INFO);<BR> <BR> <BR>   ; <BR> <BR> }<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> </P> <P><FONT size=2><BR>-----Original Message-----<BR>From: Hemant Pawar [</FONT><A href="mailto:hemant_r_pawar@(protected)"><FONT size=2>mailto:hemant_r_pawar@(protected)</FONT></A><FONT size=2>]<BR>Sent: Friday , January 31, 2003 4:37 AM<BR>To: xerces-j-user@(protected)<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" <LourdhuV@(protected)><BR>wrote:<BR>> make sure u have enabled JSSE in the system<BR>> properties.<BR>><BR>><BR>> -----Original Message-----<BR>> From: Voytenko, Dimitry<BR>> [</FONT><A href="mailto:dvoytenko@(protected)"><FONT size=2>mailto:dvoytenko@(protected)</FONT></A><FONT size=2>]<BR>> Sent: Thursday, January 30, 2003 12:04 PM<BR>> To: 'xerces-j-user@(protected)'<BR>> Subject: RE: Problem reading xsl in https<BR>> environment<BR>><BR>><BR>> Hi Hemant,<BR>><BR>> But can you download this file with anything else<BR>> (Explorer, wget, etc) from<BR>> your network environment? It's just might be<BR>> unavailbale. Otherwise Xerces<BR>> should work just fine.<BR>> Unfortunetely, depending on JDK you use<BR>> java.net.URLConnection provides not<BR>> very clear exception message why error has occured.<BR>> Usually it's just<BR>> FileNotFound exception.<BR>><BR>> thanks,<BR>> Dimitry<BR>><BR>> -----Original Message-----<BR>> From: Hemant Pawar [</FONT><A href="mailto:hemant_r_pawar@(protected)"><FONT size=2>mailto:hemant_r_pawar@(protected)</FONT></A><FONT size=2>]<BR>> Sent: Thursday, January 30, 2003 06:19<BR>> To: xerces-j-user@(protected)<BR>> Subject: Problem reading xsl in https environment<BR>><BR>><BR>> Hi<BR>><BR>> I encountered exception while trying to read a xsl<BR>> file in https environment. I am using xalan.jar to<BR>> transform a xml. Xalan internally uses xerces to<BR>> read<BR>> the xsl,which is used as input for the<BR>> transformation.<BR>><BR>> The exception encountered is as follows<BR>><BR>> File<BR>><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>> not found.<BR>> at<BR>><BR>org.apache.xerces.framework.XMLParser.reportError(XMLParser.java :1202)<BR>> at<BR>><BR>org.apache.xerces.readers.DefaultEntityHandler .startReadingFromDocument(Defa<BR>> ultEntityHandler.java:499)<BR>> at<BR>><BR>org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser .java:312)<BR>> at<BR>><BR>org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1080) <BR>><BR>> Is there problem in xerces to read file in https<BR>> connection?<BR>><BR>> Please help.<BR>><BR>> Regards,<BR>> Hemant<BR>><BR>> __________________________________________________<BR>> Do you Yahoo!?<BR>> Yahoo! Mail Plus - Powerful. Affordable. Sign up<BR>> now.<BR>> </FONT><A target=_blank href="http://mailplus.yahoo.com"><FONT size=2>http://mailplus.yahoo.com</FONT></A><BR><FONT size=2>><BR>><BR>-------------------------------------------------------- -------------<BR>> To unsubscribe, e-mail:<BR>> xerces-j-user-unsubscribe@(protected)<BR>> ; For additional commands, e-mail:<BR>> xerces-j-user-help@(protected)<BR>><BR>><BR>><BR>__________________ ___________________________________<BR>> Sector Data, LLC, is not affiliated with Sector,<BR>> Inc., or SIAC<BR>><BR>><BR>------------------------------------------------------- --------------<BR>> To unsubscribe, e-mail:<BR>> xerces-j-user-unsubscribe@(protected)<BR>> ; For additional commands, e-mail:<BR>> xerces-j-user-help@(protected)<BR>><BR>> This e-mail may contain confidential or privileged<BR>> information. If you<BR>> think you have received this e-mail in error, please<BR>> advise the sender by<BR>> reply e-mail and then delete this e-mail<BR>> immediately. Thank you. Aetna<BR>><BR>><BR>------------------------------------------------------ ---------------<BR>> To unsubscribe, e-mail:<BR>> xerces-j-user-unsubscribe@(protected)<BR>> ; For additional commands, e-mail:<BR>> xerces-j-user-help@(protected)<BR>><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@(protected)<BR>For additional commands, e-mail: xerces-j-user-help@(protected)<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>
|
|