Subjects
Home
VOTE Move XML Commons to Xerces
Commented: (XERCESJ 589) Bug with pattern restriction on long strings
: Xerces J 2 8 1 Release on Wednesday, September 13th
: Xerces J 2 9 0 Release on Wednesday, November 22nd
Commented: (XERCESJ 1066) Restriction+choice+substitutionGroup error
Commented: (XERCESJ 1178) Error getting prefix for an attribute with no n
Updated: (XERCESJ 1244) XMLSchemaValidator does not contribute element 's
Some consideration about the xerces DOM implementation
Updated: (XERCESJ 1066) Restriction+choice+substitutionGroup error
Commented: (XERCESJ 1227) Poor performance / OutOfMemoryError for sequenc
retain exception stack traces
Updated: (XERCESJ 1193) NPE or hang when parsing using the "continue afte
Future of NekoHTML
Commented: (XERCESJ 1203) NPE in XMLDTDProcessor
DOM Level 3 APIs for Xalan J and a new Xalan release (2 7 1)
: xml commons external 1 3 04 Release on Wednesday, November 22nd
Commented: (XERCESJ 1247) Incorrect location information on SAX when usin
XInclude exceptions how to mirror Xerces J functionality into Xerces C++?
First proposal on SoC project "Add support for the StAX (JSR 173) cursor API
: xml commons resolver 1 2 Release on Wednesday, November 22nd
Typo in RangeToken java Please check
Validator features
java lang ClassCastException when adopting Node
using the org apache xerces impl xs identity package
Updated: (XERCESJ 1257) buffer overflow in UTF8Reader for characters out
Problem with ref attributes and schema validation
Updated: (XERCESJ 122) XMLSchemaValidator does not contribute element 's d
Performance problem under load Xerces with Weblogic 9 x
remove ignored memory allocation
Commented: (XERCESJ 1177) SAXXMLStreamReader doesn 't always report namesp
Commented: (XERCESJ 977) Null pointer exception during DOM parsing
Commented: (XERCESJ 1197) Code cleanup for org apache xml serialize
Commented: (XERCESJ 1201) Initial contribution for StAX Event API
Updated: (XERCESJ 1061) Regex "$ " and "^ " characters treated as special c
Commented: (XERCESJ 1199) SAXXMLStreamReader should attempt to register a
Commented: (XERCESJ 1061) Regex "$ " and "^ " characters treated as special
Updated: (XERCESJ 589) Bug with pattern restriction on long strings
StackOverflow
xerces Range unnecessarily not garbage collectable if not detached
Updated: (XERCESJ 1178) Error getting prefix for an attribute with no nam
Bug in xs:redefine
Commented: (XERCESJ 1204) Can not set XMLEntityResolver for LSParser
Updated: (XERCESJ 1253) Prototype for SoC2007 project "Add support for th
Updated: (XERCESJ 1259) Add SteamFilter Function to SoC2007 project "Add
Assigned: (XERCESJ 444) SAXException thrown by EntityResolver is reported
Google Summer of Code 2007
Xerces J and XInclude relative path issue
Assigned: (XERCESJ 206) Stack overflow when using a schema validation
Commented: (XERCESJ 1215) Restrictions involving two levels of substituti
Closed: (XERCESJ 1203) NPE in XMLDTDProcessor
non overriding equals methoda
Resolved: (XERCESJ 1079) invalid value returned for TOTALDIGITS facet in
Xerces AS3 port
Updated: (XERCESJ 325) Regular Expression; Pattern "| " clause order de
Updated: (XERCESJ 1196) Javadoc generation fails on Java SE 5 0
Closed: (XERCESJ 1202) DTD validation on XIncluded documents when the sch
Created: (XERCESJ 1124) Nonspecific schema error message
a bug in xerces
Updated: (XERCESJ 1201) Initial contribution for StAX Event API
Closed: (XERCESJ 1254) Empty uris in targetNamespace attribute not report
Links
Home
Oracle database error code
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Problem reading xsl in https environment

Problem reading xsl in https environment

2003-01-31       - By Soosai, Lourdhu Vasanth
Reply:     1     2     3     4     5  

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>&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@(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" &lt;LourdhuV@(protected)&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@(protected)"><FONT
size=2>mailto:dvoytenko@(protected)</FONT></A><FONT size=2>]<BR>&gt; Sent:
Thursday, January 30, 2003 12:04 PM<BR>&gt; To:
'xerces-j-user@(protected)'<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@(protected)"><FONT
size=2>mailto:hemant_r_pawar@(protected)</FONT></A><FONT size=2>]<BR>&gt; Sent:
Thursday, January 30, 2003 06:19<BR>&gt; To:
xerces-j-user@(protected)<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@(protected)<BR>&gt
;
For additional commands, e-mail:<BR>&gt;
xerces-j-user-help@(protected)<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@(protected)<BR>&gt
;
For additional commands, e-mail:<BR>&gt;
xerces-j-user-help@(protected)<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@(protected)<BR>&gt
;
For additional commands, e-mail:<BR>&gt;
xerces-j-user-help@(protected)<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@(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>