Can't build Camel trunk

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't build Camel trunk

Glen Mazza
Hi, I'm having trouble building Camel-trunk--in particular, the components/camel-spring module.  I am getting these errors:

/home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelBeanPostProcessor.java:39: package org.apache.camel.spring.util does not exist
import org.apache.camel.spring.util.ReflectionUtils;
                                    ^
/home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelBeanPostProcessor.java:64: cannot find symbol
symbol  : class SpringCamelContext
location: class org.apache.camel.spring.CamelBeanPostProcessor
    private SpringCamelContext camelContext;
            ^
/home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelBeanPostProcessor.java:96: cannot find symbol
symbol  : class SpringCamelContext
location: class org.apache.camel.spring.CamelBeanPostProcessor
    public SpringCamelContext getCamelContext() {
           ^
/home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelBeanPostProcessor.java:100: cannot find symbol
symbol  : class SpringCamelContext
location: class org.apache.camel.spring.CamelBeanPostProcessor
    public void setCamelContext(SpringCamelContext camelContext) {
                                ^
/home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelContextFactoryBean.java:88: cannot find symbol
symbol  : class SpringCamelContext
location: class org.apache.camel.spring.CamelContextFactoryBean
    private SpringCamelContext context;
            ^
/home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelContextFactoryBean.java:166: cannot find symbol
symbol  : class SpringCamelContext
location: class org.apache.camel.spring.CamelContextFactoryBean
    public SpringCamelContext getContext() throws Exception {
           ^
/home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelContextFactoryBean.java:173: cannot find symbol
symbol  : class SpringCamelContext
location: class org.apache.camel.spring.CamelContextFactoryBean
    public void setContext(SpringCamelContext context) {
                           ^
/home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelContextFactoryBean.java:276: cannot find symbol
symbol  : class SpringCamelContext
location: class org.apache.camel.spring.CamelContextFactoryBean
    protected SpringCamelContext createContext() {
              ^

I'm using standard "mvn clean install" from both trunk and camel-spring directories, and getting the same errors.  Anyone know what the problem is?

Thanks,
Glen
Reply | Threaded
Open this post in threaded view
|

Re: Can't build Camel trunk

Willem.Jiang
Administrator
Hi Glen

The errors are coming from building a schema from the annotated java
sources.
Since we do want the ReflectionUtils, SpringContext to be a part of  the
schema, we filter them.
You can find more information form the pom.xml[1] in the camel-spring
component.

BTW
Even you get this errors, you still can get the Camel build passed.

[1]https://svn.apache.org/repos/asf/activemq/camel/trunk/components/camel-spring/pom.xml

Willem.

Glen Mazza wrote:

> Hi, I'm having trouble building Camel-trunk--in particular, the
> components/camel-spring module.  I am getting these errors:
>
> /home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelBeanPostProcessor.java:39:
> package org.apache.camel.spring.util does not exist
> import org.apache.camel.spring.util.ReflectionUtils;
>                                     ^
> /home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelBeanPostProcessor.java:64:
> cannot find symbol
> symbol  : class SpringCamelContext
> location: class org.apache.camel.spring.CamelBeanPostProcessor
>     private SpringCamelContext camelContext;
>             ^
> /home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelBeanPostProcessor.java:96:
> cannot find symbol
> symbol  : class SpringCamelContext
> location: class org.apache.camel.spring.CamelBeanPostProcessor
>     public SpringCamelContext getCamelContext() {
>            ^
> /home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelBeanPostProcessor.java:100:
> cannot find symbol
> symbol  : class SpringCamelContext
> location: class org.apache.camel.spring.CamelBeanPostProcessor
>     public void setCamelContext(SpringCamelContext camelContext) {
>                                 ^
> /home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelContextFactoryBean.java:88:
> cannot find symbol
> symbol  : class SpringCamelContext
> location: class org.apache.camel.spring.CamelContextFactoryBean
>     private SpringCamelContext context;
>             ^
> /home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelContextFactoryBean.java:166:
> cannot find symbol
> symbol  : class SpringCamelContext
> location: class org.apache.camel.spring.CamelContextFactoryBean
>     public SpringCamelContext getContext() throws Exception {
>            ^
> /home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelContextFactoryBean.java:173:
> cannot find symbol
> symbol  : class SpringCamelContext
> location: class org.apache.camel.spring.CamelContextFactoryBean
>     public void setContext(SpringCamelContext context) {
>                            ^
> /home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelContextFactoryBean.java:276:
> cannot find symbol
> symbol  : class SpringCamelContext
> location: class org.apache.camel.spring.CamelContextFactoryBean
>     protected SpringCamelContext createContext() {
>               ^
>
> I'm using standard "mvn clean install" from both trunk and camel-spring
> directories, and getting the same errors.  Anyone know what the problem is?
>
> Thanks,
> Glen
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: Can't build Camel trunk

davsclaus
Administrator
In reply to this post by Glen Mazza
Hi

AFAIK the errors is not java compilation errors but some auto generation of some camel spring artifacts.
You should be good to go anyway.

James, Willem can you shed some light?

/Claus

Glen Mazza wrote
Hi, I'm having trouble building Camel-trunk--in particular, the components/camel-spring module.  I am getting these errors:

/home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelBeanPostProcessor.java:39: package org.apache.camel.spring.util does not exist
import org.apache.camel.spring.util.ReflectionUtils;
                                    ^
/home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelBeanPostProcessor.java:64: cannot find symbol
symbol  : class SpringCamelContext
location: class org.apache.camel.spring.CamelBeanPostProcessor
    private SpringCamelContext camelContext;
            ^
/home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelBeanPostProcessor.java:96: cannot find symbol
symbol  : class SpringCamelContext
location: class org.apache.camel.spring.CamelBeanPostProcessor
    public SpringCamelContext getCamelContext() {
           ^
/home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelBeanPostProcessor.java:100: cannot find symbol
symbol  : class SpringCamelContext
location: class org.apache.camel.spring.CamelBeanPostProcessor
    public void setCamelContext(SpringCamelContext camelContext) {
                                ^
/home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelContextFactoryBean.java:88: cannot find symbol
symbol  : class SpringCamelContext
location: class org.apache.camel.spring.CamelContextFactoryBean
    private SpringCamelContext context;
            ^
/home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelContextFactoryBean.java:166: cannot find symbol
symbol  : class SpringCamelContext
location: class org.apache.camel.spring.CamelContextFactoryBean
    public SpringCamelContext getContext() throws Exception {
           ^
/home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelContextFactoryBean.java:173: cannot find symbol
symbol  : class SpringCamelContext
location: class org.apache.camel.spring.CamelContextFactoryBean
    public void setContext(SpringCamelContext context) {
                           ^
/home/gmazza/nbwork/camel/components/camel-spring/target/schema-src/org/apache/camel/spring/CamelContextFactoryBean.java:276: cannot find symbol
symbol  : class SpringCamelContext
location: class org.apache.camel.spring.CamelContextFactoryBean
    protected SpringCamelContext createContext() {
              ^

I'm using standard "mvn clean install" from both trunk and camel-spring directories, and getting the same errors.  Anyone know what the problem is?

Thanks,
Glen
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Reply | Threaded
Open this post in threaded view
|

Re: Can't build Camel trunk

jstrachan
On 03/04/2008, davsclaus <[hidden email]> wrote:
>
>  Hi
>
>  AFAIK the errors is not java compilation errors but some auto generation of
>  some camel spring artifacts.
>  You should be good to go anyway.
>
>  James, Willem can you shed some light?

Yeah - I think those errors come out of the Java -> XSD generation.
With some work we can probably get rid of those; I think its just
we're not giving the jaxb plugin all the dependencies it needs to
compile all the code; but the XSD generation does work :)

--
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com