You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Aravind Venkatesan1 <ar...@in.ibm.com> on 2007/12/19 10:38:08 UTC

build-help

Hi,

I am trying to do a simple webservice using servicemix 3.2.1 . I get this
compilation error when i invoke mvn compile


C:\jbi\wsdl-su>mvn -o compile
[INFO]
NOTE: Maven is executing in offline mode. Any artifacts not already in your
loca
l
repository will be inaccessible.

[INFO] Scanning for projects...
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building WSDL-SU
[INFO]    task-segment: [compile]
[INFO]
-------------------------------------------------------------------------
---
[INFO] [xfire:wsgen {execution: default}]
[INFO] Executing XFire WsGen task with url:
file:/C:/jbi/wsdl-su/src/main/resour
ces/Helloworld.wsdl
[ERROR] log4j:WARN No appenders could be found for logger
(org.codehaus.xfire.ge
n.Wsdl11Generator).
[ERROR] log4j:WARN Please initialize the log4j system properly.
org\apache\servicemix\samples\Hellomsg.java
org\apache\servicemix\samples\HellomsgResponse.java
org\apache\servicemix\samples\Helloworld.java
org\apache\servicemix\samples\HelloworldServiceClient.java
org\apache\servicemix\samples\ObjectFactory.java
org\apache\servicemix\samples\package-info.java
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [jbi:generate-depends-file]
[INFO] Created:
C:\jbi\wsdl-su\target\classes\META-INF\maven\dependencies.proper
ties
[INFO] [compiler:compile]
[INFO] Compiling 7 source files to C:\jbi\wsdl-su\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

C:\jbi\wsdl-su\target\jaxws\org\apache\servicemix\samples\HellomsgResponse.java:
[30,1] annotations are not supported in -source 1.3
(try -source 1.5 to enable annotations)
@XmlAccessorType(XmlAccessType.FIELD)

C:\jbi\wsdl-su\target\jaxws\org\apache\servicemix\samples\Helloworld.java:[9,1]
annotations are not supported in -source 1.3
(try -source 1.5 to enable annotations)
@WebService(name = "Helloworld", targetNamespace =
"http://servicemix.apache.org
/samples/")

C:\jbi\wsdl-su\target\jaxws\org\apache\servicemix\samples\ObjectFactory.java:[21
,1] annotations are not supported in -source 1.3
(try -source 1.5 to enable annotations)
@XmlRegistry

C:\jbi\wsdl-su\target\jaxws\org\apache\servicemix\samples\Hellomsg.java:[26,1]
 a
nnotations are not supported in -source 1.3
(try -source 1.5 to enable annotations)
@XmlAccessorType(XmlAccessType.FIELD)

C:\jbi\wsdl-su\target\jaxws\org\apache\servicemix\samples\package-info.java:[1,1
] annotations are not supported in -source 1.3
(try -source 1.5 to enable annotations)
@javax.xml.bind.annotation.XmlSchema(namespace =
"http://servicemix.apache.org/s
amples/", elementFormDefault =
javax.xml.bind.annotation.XmlNsForm.QUALIFIED)

C:\jbi\wsdl-su\target\jaxws\org\apache\servicemix\samples\HelloworldServiceImpl.
java:[6,1] annotations are not supported in -source 1.3
(try -source 1.5 to enable annotations)
@WebService(serviceName = "HelloworldService", targetNamespace =
"http://service
mix.apache.org/samples/", endpointInterface =
"org.apache.servicemix.samples.Hel
loworld")


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 14 seconds
[INFO] Finished at: Wed Dec 19 13:50:59 IST 2007
[INFO] Final Memory: 18M/32M
[INFO]
------------------------------------------------------------------------


With Regards,
Aravind Venkatesan,
======================


Re: build-help

Posted by Freeman Fang <fr...@gmail.com>.
annotation is new feature in jdk5, so you need jdk5 to build.
Btw, why you use offline mode to build? If you miss any necessary jar 
from your local maven repo, you will build failed as well

Freeman

Aravind Venkatesan1 wrote:
> Hi,
>
> I am trying to do a simple webservice using servicemix 3.2.1 . I get this
> compilation error when i invoke mvn compile
>
>
> C:\jbi\wsdl-su>mvn -o compile
> [INFO]
> NOTE: Maven is executing in offline mode. Any artifacts not already in your
> loca
> l
> repository will be inaccessible.
>
> [INFO] Scanning for projects...
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] Building WSDL-SU
> [INFO]    task-segment: [compile]
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] [xfire:wsgen {execution: default}]
> [INFO] Executing XFire WsGen task with url:
> file:/C:/jbi/wsdl-su/src/main/resour
> ces/Helloworld.wsdl
> [ERROR] log4j:WARN No appenders could be found for logger
> (org.codehaus.xfire.ge
> n.Wsdl11Generator).
> [ERROR] log4j:WARN Please initialize the log4j system properly.
> org\apache\servicemix\samples\Hellomsg.java
> org\apache\servicemix\samples\HellomsgResponse.java
> org\apache\servicemix\samples\Helloworld.java
> org\apache\servicemix\samples\HelloworldServiceClient.java
> org\apache\servicemix\samples\ObjectFactory.java
> org\apache\servicemix\samples\package-info.java
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [jbi:generate-depends-file]
> [INFO] Created:
> C:\jbi\wsdl-su\target\classes\META-INF\maven\dependencies.proper
> ties
> [INFO] [compiler:compile]
> [INFO] Compiling 7 source files to C:\jbi\wsdl-su\target\classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> C:\jbi\wsdl-su\target\jaxws\org\apache\servicemix\samples\HellomsgResponse.java:
> [30,1] annotations are not supported in -source 1.3
> (try -source 1.5 to enable annotations)
> @XmlAccessorType(XmlAccessType.FIELD)
>
> C:\jbi\wsdl-su\target\jaxws\org\apache\servicemix\samples\Helloworld.java:[9,1]
> annotations are not supported in -source 1.3
> (try -source 1.5 to enable annotations)
> @WebService(name = "Helloworld", targetNamespace =
> "http://servicemix.apache.org
> /samples/")
>
> C:\jbi\wsdl-su\target\jaxws\org\apache\servicemix\samples\ObjectFactory.java:[21
> ,1] annotations are not supported in -source 1.3
> (try -source 1.5 to enable annotations)
> @XmlRegistry
>
> C:\jbi\wsdl-su\target\jaxws\org\apache\servicemix\samples\Hellomsg.java:[26,1]
>  a
> nnotations are not supported in -source 1.3
> (try -source 1.5 to enable annotations)
> @XmlAccessorType(XmlAccessType.FIELD)
>
> C:\jbi\wsdl-su\target\jaxws\org\apache\servicemix\samples\package-info.java:[1,1
> ] annotations are not supported in -source 1.3
> (try -source 1.5 to enable annotations)
> @javax.xml.bind.annotation.XmlSchema(namespace =
> "http://servicemix.apache.org/s
> amples/", elementFormDefault =
> javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
>
> C:\jbi\wsdl-su\target\jaxws\org\apache\servicemix\samples\HelloworldServiceImpl.
> java:[6,1] annotations are not supported in -source 1.3
> (try -source 1.5 to enable annotations)
> @WebService(serviceName = "HelloworldService", targetNamespace =
> "http://service
> mix.apache.org/samples/", endpointInterface =
> "org.apache.servicemix.samples.Hel
> loworld")
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 14 seconds
> [INFO] Finished at: Wed Dec 19 13:50:59 IST 2007
> [INFO] Final Memory: 18M/32M
> [INFO]
> ------------------------------------------------------------------------
>
>
> With Regards,
> Aravind Venkatesan,
> ======================
>
>
>