Thursday 24 November 05
Still having ‘fun’ trying to get this web services stuff to work correctly. Currently I have CCSI running and I have Sled running, unfortunately I can’t run them on the same machine (or instance of JBoss) as I then run into error because of class loading etc. I found that if I replace the JBoss axis.jar with v1.2.1, then start up fails because of errors with CCSI.war, however, in order to get sled.war to start up correctly I must have the up to date version of axis in the JBoss lib directory – so that’s my conumdrum – how to get this working!
I’ve been googling and emailing a few people to try and find a solution to the problem – essentially I’m trying to fnd out how I can run the 2 apps on the same instance of JBoss (which I ought to be able to do) – and here’s how far I’ve got…
I found the page on the Jboss wiki (http://www.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration) which is meant to explain how you can override classes. Unfortunately theres no actual example, they give the code snippet:
<jboss-app>
<loader-repository>
dot.com:loader=unique-archive-name
<loader-repository-config>
java2ParentDelegation=false
</loader-repository-config>
</loader-repository>
</jboss-app>
But I don’t know *exactly* what I shoud put instead of unique-archive-name, should it be ‘axis.jar’ or ‘lib/axis.jar’ etc, and also I don’t know if I’m meant to change the ‘dot.com’ to be ‘org.apache.axis’ or something else or not!
The other options I have are either upgrading to version 4.x of JBoss or to just leave as is and just Java api when the apps are running on the same box, and webservices if they are on seperate boxes. Upgrading is a bit of a non-starter – as it could quite easily introduce many more problem than I’ve already got – especially as I’d need to ensure that CopperCore, CCSI and Sled all ran fine underthe new environment. Took much work I think! Having them run on seperate boxes, or just using java if they are going to be on the same box is a fallback solution for me – I wouldn’t be that happy leaving it at that, because then I’ve not actually solved the problem – just got around it. I know that in a produciton environment if you had 2 java apps running on the same App server you wouldn’t need them to be communicating using web services, but for the purposes of this project, I’d at least like to be able to demonstrate that you can if you want.
Actually another option for me could be to see if I can get the CCSI.war to start up and run when the latest version of axis is in the JBoss lib directory. So I might try and have a look at that too.
If anyone out there has any bright ideas – please email me ASAP!










