On Jul 7, 2008, at 1:52 PM, Marcus Redeker wrote:

Dan,

Thanks for the clarification. That makes sense.
But this means that the user must have a JDK if he uses the DynamicClient.
Is that somewhere in the docs?

I added it to the docs:
http://cwiki.apache.org/confluence/display/CXF20DOC/Dynamic+Clients

What about the eclipse compiler which is used by some jsp container?

A patch to enable that would be great.   :-)

Dan





Marcus

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von
Daniel Kulp
Gesendet: Montag, 7. Juli 2008 18:01
An: [email protected]
Betreff: Re: AW: AW: Error after upgrading to jdk 1.6.0_06


On Jul 7, 2008, at 7:59 AM, Marcus Redeker wrote:

I hat the "bin" folder in my path but strangely enough there was no
"javac"
in it :-(
After installing the JDK again everything is fine. Thanks.

But why does CXF call the actual "javac" executable and does not use
the Java API?

Couple reasons:
1) The "api" for the compiler is a com.sun class that only exists on
Sun JDK's.   Thus, it wouldn't work on non-sun vm's.

2) On Sun jdk's, calling the class directly only works if you add the
tools jar to your classpath.   Most people don't do that.

3) The java compile is known to have all kinds of memory leaks and
such.   We didn't want to run that in vm.

Calling javac is the least error prone way to do it.

Dan




--Marcus

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag
von Bård Magnus Kvalheim
Gesendet: Montag, 7. Juli 2008 12:55
An: [email protected]
Betreff: Re: AW: Error after upgrading to jdk 1.6.0_06

Had similar problem a few days ago.
Check that javac.exe (JAVA_HOME/bin) is in your path variable as
DynamicClientFactory compiles classes in runtime.

Magnus

2008/7/7 Glen Mazza <[EMAIL PROTECTED]>:

I doubt you will need to change the WSDL, but there may be JAXB
binding files you need to add it so your objects will work with JAXB
2.1.  Come to think of it, the error message you are getting is very
specific--perhaps Googling it or Dan or someone else on the team can
spot the error, I'm hardly the JAXB expert around here.

Glen

On Mon, 2008-07-07 at 10:27 +0200, Marcus Redeker wrote:
Thanks. But what can I do? I can't influence the WSDL because that
comes from another system. Is there a setting I have to set or does
CXF 2.1.1 help?
--Marcus

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag
von Glen Mazza
Gesendet: Sonntag, 6. Juli 2008 23:50
An: [email protected]
Betreff: Re: Error after upgrading to jdk 1.6.0_06

For JDK6, Updates 1-3, JAXB 2.0 is used by default, Updates 4+ JAXB
2.1
is
used.  I suspect this is your problem; somehow you will need to
update
your
code to make it JAXB 2.1 compatible.

Glen

On Sun, 2008-07-06 at 23:45 +0200, Marcus Redeker wrote:
After updating my JDK to the latest version my DynamicClient does
not work anymore.
This worked fine with jdk 1.6.0_01.
I receive this error:

06.07.2008 23:37:15
org.apache.cxf.endpoint.dynamic.DynamicClientFactory
outputDebug
INFO: Created classes: org.example.services.GetLoginChallenge,
org.example.services.GetLoginChallengeResponse,
org.example.services.InsertFile,
org.example.services.InsertFileResponse,
org.example.services.InsertStatus,
org.example.services.InsertStatusResponse,
org.example.services.Login, org.example.services.LoginResponse,
org.example.services.Logout, org.example.services.LogoutResponse,
org.example.services.ObjectFactory,
org.example.services.SendLoginResponse,
org.example.services.SendLoginResponseResponse,
org.example.services.SessionHeaderType
[ERROR] IOException during exec() of compiler "javac". Check your
path environment variable.
06.07.2008 23:37:16
org.apache.cxf.endpoint.dynamic.DynamicClientFactory
createClient
SCHWERWIEGEND: Could not compile java files for
http://xlf-virtuell:8040/services/Logoverwaltung?wsdl.
Exception in thread "main" java.lang.IllegalStateException: Unable
to create JAXBContext for generated packages:
"org.example.services"
doesnt contain ObjectFactory.class or jaxb.index
  at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(
Dyna
micCli
entFactory.java:246)

Does somebody have an idea?

Thanks







---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog






---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog




Reply via email to