<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Redstream Blog &#187; Oracle iAS</title>
	<atom:link href="http://blog.redstream.nl/tag/oracle-ias/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.redstream.nl</link>
	<description>Pragmatic Integrators</description>
	<lastBuildDate>Mon, 26 Jul 2010 06:09:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=689</generator>
		<item>
		<title>Review Oracle WSM: Securing Your Web Services</title>
		<link>http://blog.redstream.nl/2009/01/24/review-oracle-wsm-securing-your-web-services/</link>
		<comments>http://blog.redstream.nl/2009/01/24/review-oracle-wsm-securing-your-web-services/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 13:51:25 +0000</pubDate>
		<dc:creator>Pascal Alma</dc:creator>
				<category><![CDATA[Web Service]]></category>
		<category><![CDATA[Oracle iAS]]></category>
		<category><![CDATA[Oracle WSM]]></category>
		<category><![CDATA[SOA/Web Services]]></category>

		<guid isPermaLink="false">http://www.pascalalma.net/?p=415</guid>
		<description><![CDATA[As you might have noticed by my last posts I am currently investigating the posiblities of Oracle&#8217;s Web Service Manager. I do this investigation by reading the Packtpub book &#8216;Oracle Web Services Manager &#8211; Securing Your Web Services&#8216;, written by Sitaraman Lakshminarayanan. As the back-cover says this book mainly targets developers and architects with expertise [...]]]></description>
			<content:encoded><![CDATA[<p>As you might have noticed by <a href="http://blog.redstream.nl/category/soaweb-services/soap-ui/">my last posts</a> I am currently investigating the posiblities of Oracle&#8217;s Web Service Manager. I do this investigation by reading the <a href="http://www.packtpub.com">Packtpub</a> book &#8216;<a href="http://www.packtpub.com/oracle-web-services-manager/book">Oracle Web Services Manager &#8211; Securing Your Web Services</a>&#8216;, written by Sitaraman Lakshminarayanan. As the back-cover says this book mainly targets developers and architects with expertise in developing and deploying web services. And I want to add that it is most interesting if you are going to use or are currently using Oracle WSM, of course.<span id="more-415"></span><br />
 One thing I do not really understand is that the author describes how to use .Net clients to test the setup (besides the test facility in OWSM itself). Hasn&#8217;t Oracle been busy for almost 10 years now to become a important player in the J2EE market. So why not some examples how to test the setup with Java clients? But well, I have <a href="http://blog.redstream.nl/tag/soap-ui/">described how to test the examples with SoapUI</a>, so I will consider this issue as solved ;-)<br />
Besides this .Net thing there are some other (small) issues in the example descriptions:</p>
<ul>
<li>In chapter 4 you will start with using Oracle WSM by registering your first service in it. But you can only do that after you have registered the gateway first (I would suggest to start with the <a href="http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b32126.pdf">Oracle WSM Starters guide</a> of Oracle first).</li>
<li>The description of testing the setup in chapter 6 is not correct. The test as described sends an unsigned request and checks if the response is signed. But in the configuration of the web service in this chapter the incoming request must be signed, so the test will always fail. The quick workaround is of course to disable the checking of incoming request. But a nicer solution would be to send in a signed request. To do this I used SoapUI as described <a href="http://blog.redstream.nl/2009/01/20/testing-oracle-wsms-web-service-signing-and-verifying-with-soapui/">here</a>.
</li>
</ul>
<p>One thing I miss in the book is (high level) information about keystores and how to create these, but this might be caused by the fact that I am not using .Net so I don&#8217;t have the default keystore they use in the book. But with this addition you make the examples better accessible for others like me who don&#8217;t have .Net available.<br />
Overall it is a nice books with lots of screenshots showing you how to deal with Oracle WSM and it gives you a good insight in how you can secure your web services.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.redstream.nl/2009/01/24/review-oracle-wsm-securing-your-web-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Commons Logging with OC4J</title>
		<link>http://blog.redstream.nl/2008/07/14/using-commons-logging-with-oc4j/</link>
		<comments>http://blog.redstream.nl/2008/07/14/using-commons-logging-with-oc4j/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 19:23:04 +0000</pubDate>
		<dc:creator>Pascal Alma</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[Oracle iAS]]></category>

		<guid isPermaLink="false">http://www.pascalalma.net/?p=140</guid>
		<description><![CDATA[For my current project I am migrating several projects from JDeveloper 10.1.3.1 to JDeveloper 10.1.3.3. After migrating my WebService project I deployed the application to my local Standalone OC4J instance and ran my test suite in SoapUI to test the migrated services. But to my surpise, all requests failed! They all gave the same response: [...]]]></description>
			<content:encoded><![CDATA[<p>For my current project I am migrating several projects from JDeveloper 10.1.3.1 to JDeveloper 10.1.3.3. After migrating my WebService project  I deployed the application to my local Standalone OC4J instance and ran my test suite in SoapUI to test the migrated services. But to my surpise, all requests failed! They all gave the same response:</p>
<div class="igBar"><span id="lxml-2"><a href="#" onclick="javascript:showCodeTxt('xml-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-2">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;html<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;head<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;title<span style="font-weight: bold; color: black;">&gt;</span></span></span>500 Internal Server Error<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/title<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/head<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;body<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;h1<span style="font-weight: bold; color: black;">&gt;</span></span></span>500 Internal Server Error<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/h1<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;pre<span style="font-weight: bold; color: black;">&gt;</span></span></span>Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/pre<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/body<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/html<span style="font-weight: bold; color: black;">&gt;</span></span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Although the web services were generated with JDeveloper's Web Service 'wizard' (one way to create a web service which I definitely <i>don't</i> like), it just could be that I had to recreate them with the newer JDev version.<br />
<span id="more-140"></span><br />
But before I took that approach, I had a look in the 'application.log' file to see if there was some more info there. And yep, there was:</p>
<blockquote><p>
08/06/27 12:40:02.547 MyWS: Servlet error<br />
java.lang.ExceptionInInitializerError<br />
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br />
....<br />
....<br />
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@dc5c99 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@dc5c99 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category))<br />
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)<br />
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)<br />
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)<br />
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)<br />
at net.pascalmalma.ws.base.BaseService.<clinit>(BaseService.java:26)<br />
... 34 more<br />
Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@dc5c99 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)<br />
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413)<br />
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)<br />
... 38 more<br />
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category<br />
at java.lang.Class.getDeclaredConstructors0(Native Method)<br />
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)<br />
at java.lang.Class.getConstructor0(Class.java:2640)<br />
at java.lang.Class.getConstructor(Class.java:1629)<br />
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)<br />
... 39 more
</p></blockquote>
<p>It seemed I (suddenly??) had some conflicting issues with commons-logging. So now I only needed to solve this issue... One hour later and having shifted the libraries throughout almost every directory in OC4J, I just gave up to look for a 'nice' shared configuration (as is described <a href="http://forums.oracle.com/forums/thread.jspa?messageID=1763496">here</a>).<br />
I went for the quick (and dirty??) solution which means disabling the use of the shared libraries for log4j and supply the necessary libraries (commons-logging and log4j) with each web application deployment. You can set the option in the OC4J Enterprise Manager, like this:<br />
<img src="http://www.pascalalma.net/wordpress/wp-content/uploads/2008/07/oc4j-logging-setup.jpg" alt="OC4J Deployment screen" title="oc4j-logging-setup" width="600" /></p>
<p>and<br />
<img src="http://www.pascalalma.net/wordpress/wp-content/uploads/2008/07/oc4j-logging-setup2.jpg" alt="OC4J Deployment " title="oc4j-logging-setup2" width="600" /></p>
<p>Only disadvantage is that if you deploy your application directly from JDeveloper this property is overwritten and the issue is back again.... Luckily I found <a href="http://blogs.oracle.com/jheadstart/2007/12/deploying_jheadstart_applicati.html">this entry</a> of the JHeadstart team. It appears they had the same problem, but this makes my life somewhat easier :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.redstream.nl/2008/07/14/using-commons-logging-with-oc4j/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
