You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by java dawg <ja...@yahoo.com> on 2004/09/15 05:02:50 UTC
User Question: Using jaxME / jaxB within an EJB Container
Thank you for all the good advise. I am looking for
more good advice on how to get jaxME working within an
EJB.
I continue to get this error within my jaxME impl:
java.lang.NoSuchMethodError:
javax.xml.namespace.QName: method
<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
not found
errored code within my TestImpl calling:
private final static javax.xml.namespace.QName __qName
= new
javax.xml.namespace.QName("http://my.domain.com/test/jaxme",
"TEST", "test");
It works fine outside as a java application. I am
thinking it is my IO limits in EJB. My EJB container
(WAS 5.0) does not allow file IO within an EJB.
Any assistance would be greatfully appreciated.
Thank you,
Duane Adkins
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org
Re: User Question: Using jaxME / jaxB within an EJB Container
Posted by Jochen Wiedmann <jo...@freenet.de>.
java dawg wrote:
> Are you familuar with this QName jar implementation in
> qname.jar?
That most probably matches an elder version. I just notice, that this
class is now even in the J2SE: See
http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/namespace/QName.html
(Note the constructor with three strings.)
Jochen
--
http://lilypie.com/baby1/050423/1/5/1/+1
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org
Re: User Question: Using jaxME / jaxB within an EJB Container
Posted by java dawg <ja...@yahoo.com>.
Yes, that was very nice.
Using the getLocation method, I was able to find the
conflicting jar located in my WAS app server lib
called qname.jar. I removed it and replaced it with
jaxmeapi.jar. This resolved my issues.
I will be happy to do a FAQ on this. I would like to
make sure I resolved it the correct (best) way...
Are you familuar with this QName jar implementation in
qname.jar? It just has one class called qname with
the following manifest contents:
Implementation-Version: [ASV502] ptf2M0325.01
Specification-Title: wsdl4j
Specification-Version: 5.0
Implementation-Title: wsdl4j
Created-By: Apache Ant 1.5.1
Class-Path: wsdl4j.jar qname.jar
Implementation-Vendor: IBM Corp.
Specification-Vendor: IBM Corp.
As in the docs, QName is part of the XML Schema Part2:
Datatypes specification. Do you think the
jaxmeapi.jar implementation be sufficent for replacing
ibm's implementation of qname? It sure does work like
a charm.
It looks like this qname.jar was added as a fix for
something.
Thanks,
Duane Adkins
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org
Re: User Question: Using jaxME / jaxB within an EJB Container
Posted by Jochen Wiedmann <jo...@freenet.de>.
Davanum Srinivas wrote:
> The following may work as well:
> System.out.println(QName.class.getProtectionDomain().getCodeSource().getLocation());
Uuuh, that's nice!
--
http://lilypie.com/baby1/050423/1/5/1/+1
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org
Re: User Question: Using jaxME / jaxB within an EJB Container
Posted by Davanum Srinivas <da...@gmail.com>.
The following may work as well:
System.out.println(QName.class.getProtectionDomain().getCodeSource().getLocation());
-- dims
On Wed, 15 Sep 2004 08:50:24 +0200, Jochen Wiedmann
<jo...@freenet.de> wrote:
> java dawg wrote:
>
> > I continue to get this error within my jaxME impl:
> > java.lang.NoSuchMethodError:
> > javax.xml.namespace.QName: method
> > <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
> > not found
>
> The error message says, that you have a class
>
> javax.xml.namespace.QName
>
> but that class doesn't have a constructor
>
> QName(String, String, String)
>
> Most possibly, there is an elder version of this class in some other jar
> file. To find out, which jar file this is, add the following code to
> your source *before* creating the JAXBContext:
>
> ClassLoader[] classLoaders = new ClassLoader[]{
> Thread.currentThread().getContextClassLoader(),
> getClass().getClassLoader(),
> ClassLoader.getSystemClassLoader()
> };
> for (int i = 0; i < classLoaders.length; i++) {
> ClassLoader cl = classLoaders[i];
> URL url;
> if (cl == null) {
> url = null;
> } else {
> url = cl.getRessource("javax/xml/namespace/QName.class");
> }
> System.out.println("ClassLoader " + cl + " returns " + url);
> }
>
> And, btw, if you find a solution, it would be nice to add an entry to
> the FAQ at
>
> http://wiki.apache.org/ws/JaxMe/FrequentlyAskedQuestions
>
> Regards,
>
> Jochen
>
> --
> http://lilypie.com/baby1/050423/1/5/1/+1
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: jaxme-dev-help@ws.apache.org
>
>
--
Davanum Srinivas - http://webservices.apache.org/~dims/
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org
Re: User Question: Using jaxME / jaxB within an EJB Container
Posted by Jochen Wiedmann <jo...@freenet.de>.
java dawg wrote:
> I continue to get this error within my jaxME impl:
> java.lang.NoSuchMethodError:
> javax.xml.namespace.QName: method
> <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
> not found
The error message says, that you have a class
javax.xml.namespace.QName
but that class doesn't have a constructor
QName(String, String, String)
Most possibly, there is an elder version of this class in some other jar
file. To find out, which jar file this is, add the following code to
your source *before* creating the JAXBContext:
ClassLoader[] classLoaders = new ClassLoader[]{
Thread.currentThread().getContextClassLoader(),
getClass().getClassLoader(),
ClassLoader.getSystemClassLoader()
};
for (int i = 0; i < classLoaders.length; i++) {
ClassLoader cl = classLoaders[i];
URL url;
if (cl == null) {
url = null;
} else {
url = cl.getRessource("javax/xml/namespace/QName.class");
}
System.out.println("ClassLoader " + cl + " returns " + url);
}
And, btw, if you find a solution, it would be nice to add an entry to
the FAQ at
http://wiki.apache.org/ws/JaxMe/FrequentlyAskedQuestions
Regards,
Jochen
--
http://lilypie.com/baby1/050423/1/5/1/+1
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org