?
Solved

Classloader problem using Axis 1.4 - WSS - Jboss 4.x

Posted on 2009-03-30
5
Medium Priority
?
1,805 Views
Last Modified: 2013-12-02
Hi, I'm facing a strange problem using Axis 1.4 with security features deployed on jboss 4.0.5.
I implemented WSDoAllReceiver with UsernameToken action.
Everything works fine, but I have an exception showing up on server.log, that I do not understand, expecially considering that I tested the application and it's working.
Here is the exception:
java.lang.ClassNotFoundException: No ClassLoaders found for: org.apache.ws.security.transform.STRTransform
Any clues?
Thanks in advance
0
Comment
Question by:hanoirules
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:pghn
ID: 24017867
Are all required jar's in your classpath? (Including xmlsec.jar)?

You need to check what jar's are needed by wss4j and add them to your classpath.
0
 

Author Comment

by:hanoirules
ID: 24017909
Thanks for your response, I added all required jar in my web-apps' lib folder. in fact everything is working: I tried even with wrong user/password and I got the correct behaviour..
0
 

Author Comment

by:hanoirules
ID: 24018201
I solve the exception problem with a dirty solution (for me anyway  is dirty :) ): I added xmlsec.jar and wss4j-1.5.1.jar in server/lib folder.
I do not understand why it is necessary to add files there.. Shouldn't my web-app lib be enough?
Do you think is there another solution instead of this one?
Thanks in advance
0
 
LVL 5

Accepted Solution

by:
pghn earned 1500 total points
ID: 24018367
The jar's are required in the classpath due the referenced libraries. Sometimes they are not really "needed" but since they are referenced it's good to have them in the classpath. It's not really a "dirty solution" =)
0
 

Author Comment

by:hanoirules
ID: 24018705
not that clean anyway!!
I personally believe that each web-app lib folder should contain all required libraries without spread them in server lib
Thanks for your attention :)
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month10 days, 6 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question