dissapointing trials running the new JScaLite examples, shipped with the Oracle WebLogic Server 11g R1 Patch Set 1 (WLS 10.3.2.0).
Seems as if my calls were heared at Oracle and they started to write some blogposts about the new Weblogic SCA container tech preview.
Raghav Srinivasan posted "Getting Started with SCA" and this finaly gave me the missing hints about what to do, getting the examples running.
Here is the complete HowTo:
Follow the steps, already described in my previous post
1) Install WLS 10.3.2.0 (with examples)
2) setup environment variables
3) change example.properties
4) deploy the weblogic-sca-1.0.war
5) point the war files to the library (weblogic.xml)
Now, here comes the music:
6) Change the spring-context.xml files
one located in both example war files:
Replace the <beans tag at the beginning with the following:
replace all <binding with <wlsb:binding
7) Now your are ready to build the examples (ant build)
8) and deploy them (ant deploy)
Working behind a corporate proxy leads to a fancy warning:
eanDefinitionReader> <BEA-000000> <Ignored XML validation warning
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema documen
inding.xsd', because 1) could not find the document; 2) the document could not b
e read; 3) the root element of the document is not <xsd:schema>.
This is because of the fact, the the WLS does not have access to the needed schema files. Therefore the deployment takes quite some time until the timeouts appear.
Anyhow, if you switch your configuration and use a proxy in your setDomainEnv.bat/.sh JAVA_PROPERTIES
like this: -Dhttp.proxyHost=myproxyserver.com -Dhttp.proxyPort=80
you run into another problem, a SAX Parser exception:
org.xml.sax.SAXParseException: White spaces are required between publicId and systemId
That is not too funny, as the deployment will fail with this. Therefore, you better accept the warnings and get the app deployed :)
9) You can run the examples from the command line (ant run) this opens up your favorite browser and
points it to the URL http://<host>:<port>/ShoppingCartCtx/ShoppingCart