Help get this topic noticed by sharing it on Twitter Twitter, Facebook Facebook, or email.
craig.jonathan

target release 1.5 conflicts with default source release 1.7

we have recently upgraded our servers to java 1.7_03, which went fine for almost everything! however a small "echo" application using wsdl-cxf has stopped - in the log file i find:


intialized cxf config!!!
javac: target release 1.5 conflicts with default source release 1.7
ERROR 2012-04-03 09:13:35,183 [[importsenter-echo-1.0].connector.http.mule.default.receiver.2] org.apache.cxf.endpoint.dynamic.DynamicClientFactory: Could not compile java files for http://webdok4-test:8089/OnlineBatchReceiver.svc?WSDL&method=ReceiveOnlineBatchExternalAttachment?wsdl.


which has me worried - its seems mule (3.1.1) is maybe not fully compatible with java 7, and my wsdl line has an extra "?wsdl" tacked onto the end - its not there in the config file! where did that come from and why?

any help would be appreciated :)
1 person has
this problem
+1
Reply
  • Hi,

    Mule will be certified for java 7 starting from version 3.3.

    However AFAIK no problem with java 7 has been reported yet. Are you using the echo example that comes with mule? Did you compile it or used the packaged one?

    Cheers,
    Alberto
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • craig.jonathan
    made my own echo service after going on a mule course. works fine with an example website, but not in our network. Java has recently been upgraded on the machine running mule.

    the source looks like this


    <?xml version="1.0" encoding="UTF-8"?>
    <mule xmlns="http://www.mulesoft.org/schema/mule/core"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:spring="http://www.springframework.org/schema/beans"
    xmlns:http="http://www.mulesoft.org/schema/mule/http"
    xmlns:https="http://www.mulesoft.org/schema/mule/https"
    xsi:schemaLocation="
    http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.1/mule.xsd
    http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/3.1/mule-http.xsd
    http://www.mulesoft.org/schema/mule/https http://www.mulesoft.org/schema/mule/https/3.1/mule-https.xsd
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

    <flow name="altinnFlow">
    <http:inbound-endpoint address="http://altinn-test.npt.no:80/OnlineBatchReceiver.svc/ReceiveOnlineBatchExternalAttachment"/>

    <logger message="Payload is #[payload:]" level="INFO"/>
    <expression-filter expression="payload != '/favicon.ico'" evaluator="groovy"/>

    <outbound-endpoint
    address="wsdl-cxf:http://webdok4-test:8089/OnlineBatchReceiver.svc?WSDL&method=ReceiveOnlineBatchExternalAttachment"/>
    <object-to-string-transformer/>
    </flow>
    </mule>
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • utamas
    Hi all, I'm fairly new here.

    However I would like to get to work the example posted in mulesoft documentation http://www.mulesoft.org/documentation/display/MULE3USER/WSDL+Connectors.

    I'm using ubuntu 12.04 and have installed java 7:
    java version "1.7.0_04"
    Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
    Java HotSpot(TM) Server VM (build 23.0-b21, mixed mode)

    I'm using MuleStudio version: 1.1.0. (it has MuleServer 3.2.1 CE) installed with it.

    Whenever I'm trying to run the example I get the following error message:

    javac: target release 1.5 conflicts with default source release 1.7
    ERROR 2012-06-12 20:31:49,272 [[wsdl].inputService.stage1.02] org.apache.cxf.endpoint.dynamic.DynamicClientFactory: Could not compile java files for http://www.webservicex.net/CurrencyCo....
    ERROR 2012-06-12 20:31:49,287 [[wsdl].inputService.stage1.02] org.mule.exception.DefaultMessagingExceptionStrategy:
    ********************************************************************************
    Message : Unable to create JAXBContext for generated packages: Provider com.sun.xml.bind.v2.ContextFactory could not be instantiated: javax.xml.bind.JAXBException: "net.webservicex" doesnt contain ObjectFactory.class or jaxb.index (java.lang.IllegalStateException)
    Code : MULE_ERROR-10999
    --------------------------------------------------------------------------------
    Exception stack is:
    1. "net.webservicex" doesnt contain ObjectFactory.class or jaxb.index (javax.xml.bind.JAXBException)
    com.sun.xml.bind.v2.ContextFactory:183 (http://java.sun.com/j2ee/sdk_1.3/tech...)
    2. Provider com.sun.xml.bind.v2.ContextFactory could not be instantiated: javax.xml.bind.JAXBException: "net.webservicex" doesnt contain ObjectFactory.class or jaxb.index (javax.xml.bind.JAXBException)
    javax.xml.bind.ContextFinder:146 (http://java.sun.com/j2ee/sdk_1.3/tech...)
    3. Unable to create JAXBContext for generated packages: Provider com.sun.xml.bind.v2.ContextFactory could not be instantiated: javax.xml.bind.JAXBException: "net.webservicex" doesnt contain ObjectFactory.class or jaxb.index (java.lang.IllegalStateException)
    org.apache.cxf.endpoint.dynamic.DynamicClientFactory:345 (null)
    4. Unable to create JAXBContext for generated packages: Provider com.sun.xml.bind.v2.ContextFactory could not be instantiated: javax.xml.bind.JAXBException: "net.webservicex" doesnt contain ObjectFactory.class or jaxb.index (java.lang.IllegalStateException) (org.mule.api.DefaultMuleException)
    org.mule.module.cxf.builder.AbstractOutboundMessageProcessorBuilder:90 (http://www.mulesoft.org/docs/site/cur...)
    --------------------------------------------------------------------------------
    Root Exception stack trace:
    javax.xml.bind.JAXBException: "net.webservicex" doesnt contain ObjectFactory.class or jaxb.index
    at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:183)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
    ********************************************************************************

    Does this mean that I have to move back (or at least use) java 5 for this project?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • This reply was removed on 2012-06-12.
    see the change log
  • utamas
    Yeap ,it solved my issue... I've downgraded to jdk1.6.0_33 and now it seams to work.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited