You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by martymusk <ma...@email.it> on 2007/12/11 16:13:44 UTC

Error in Main.java

Hy, I'm working with wsn-example...
I've a question:
when i compile Main.java from linux shell, the following error occurs:

[martina@martina java]$ javac org/apache/servicemix/Main.java
org/apache/servicemix/Main.java:26: package org.springframework.context does
not exist import org.springframework.context.ApplicationContext;                                   
^ org/apache/servicemix/Main.java:49: cannot find symbol symbol  : class
ApplicationContext location: class org.apache.servicemix.Main            
ApplicationContext context = null;             ^
org/apache/servicemix/Main.java:52: cannot access
org.springframework.context.support.ClassPathXmlApplicationContext file
org/springframework/context/support/ClassPathXmlApplicationContext.class not
found                 context = new
ClassPathXmlApplicationContext("servicemix.xml");                          
^ org/apache/servicemix/Main.java:66: cannot access
org.springframework.context.support.FileSystemXmlApplicationContext file
org/springframework/context/support/FileSystemXmlApplicationContext.class
not found                 context = new
FileSystemXmlApplicationContext(file, processors);                          
^ Note: org/apache/servicemix/Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details. 4 errors 

Can somebody help me please?
Thanks in advance.

Martina
-- 
View this message in context: http://www.nabble.com/Error-in-Main.java-tp14275886s12049p14275886.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Error in Main.java

Posted by Guillaume Nodet <gn...@gmail.com>.
This examples has been designed to show that WS-Notification can be used in
a cluster,
but you could easily repackage the whole example to work in a single JBI
container.
Usually, you'll only need a single container.

I suggest you take a look at camel or at the EIP component to route the
received message
though the steps you need for your test: maybe modify it and send it to
another destination.

On Dec 11, 2007 5:19 PM, martymusk <ma...@email.it> wrote:

>
> Thanks for immediately answer.
> I've resolved this problem.
> Can I post you another question?
> I would like to modify wsn-example. Can you help me?
> After instance2 receives message, published by instance3, I'd like
> instance2
> can publish copy of message received.
> So, I think I have to modi fy xml files.
> In servicemix2.xml I have to add code concern to publisher and in
> servicemix3.xml I have to add code concern to reciever.
> I have to create others JBI containers?
>
> It's clear?
> I'm working for thesis at University of Naples, I hope you can help me.
> Thank you very much.
>
> Martina
>
>
>
> gnodet wrote:
> >
> > How did you compile it ?
> > Did you follow the instructions in the README file ?
> >
> > On Dec 11, 2007 4:13 PM, martymusk <ma...@email.it> wrote:
> >
> >>
> >> Hy, I'm working with wsn-example...
> >> I've a question:
> >> when i compile Main.java from linux shell, the following error occurs:
> >>
> >> [martina@martina java]$ javac org/apache/servicemix/Main.java
> >> org/apache/servicemix/Main.java:26: package
> >> org.springframework.contextdoes
> >> not exist import org.springframework.context.ApplicationContext;
> >> ^ org/apache/servicemix/Main.java:49: cannot find symbol symbol  :
> class
> >> ApplicationContext location: class org.apache.servicemix.Main
> >> ApplicationContext context = null;             ^
> >> org/apache/servicemix/Main.java:52: cannot access
> >> org.springframework.context.support.ClassPathXmlApplicationContext file
> >>
> org/springframework/context/support/ClassPathXmlApplicationContext.class
> >> not
> >> found                 context = new
> >> ClassPathXmlApplicationContext("servicemix.xml");
> >> ^ org/apache/servicemix/Main.java:66: cannot access
> >> org.springframework.context.support.FileSystemXmlApplicationContextfile
> >>
> org/springframework/context/support/FileSystemXmlApplicationContext.class
> >> not found                 context = new
> >> FileSystemXmlApplicationContext(file, processors);
> >> ^ Note: org/apache/servicemix/Main.java uses unchecked or unsafe
> >> operations.
> >> Note: Recompile with -Xlint:unchecked for details. 4 errors
> >>
> >> Can somebody help me please?
> >> Thanks in advance.
> >>
> >> Martina
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Error-in-Main.java-tp14275886s12049p14275886.html
> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Error-in-Main.java-tp14275886s12049p14277281.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Re: Error in Main.java

Posted by martymusk <ma...@email.it>.
Thanks for immediately answer.
I've resolved this problem.
Can I post you another question?
I would like to modify wsn-example. Can you help me?
After instance2 receives message, published by instance3, I'd like instance2
can publish copy of message received.
So, I think I have to modi fy xml files.
In servicemix2.xml I have to add code concern to publisher and in
servicemix3.xml I have to add code concern to reciever.
I have to create others JBI containers?

It's clear?
I'm working for thesis at University of Naples, I hope you can help me.
Thank you very much.

Martina



gnodet wrote:
> 
> How did you compile it ?
> Did you follow the instructions in the README file ?
> 
> On Dec 11, 2007 4:13 PM, martymusk <ma...@email.it> wrote:
> 
>>
>> Hy, I'm working with wsn-example...
>> I've a question:
>> when i compile Main.java from linux shell, the following error occurs:
>>
>> [martina@martina java]$ javac org/apache/servicemix/Main.java
>> org/apache/servicemix/Main.java:26: package
>> org.springframework.contextdoes
>> not exist import org.springframework.context.ApplicationContext;
>> ^ org/apache/servicemix/Main.java:49: cannot find symbol symbol  : class
>> ApplicationContext location: class org.apache.servicemix.Main
>> ApplicationContext context = null;             ^
>> org/apache/servicemix/Main.java:52: cannot access
>> org.springframework.context.support.ClassPathXmlApplicationContext file
>> org/springframework/context/support/ClassPathXmlApplicationContext.class
>> not
>> found                 context = new
>> ClassPathXmlApplicationContext("servicemix.xml");
>> ^ org/apache/servicemix/Main.java:66: cannot access
>> org.springframework.context.support.FileSystemXmlApplicationContext file
>> org/springframework/context/support/FileSystemXmlApplicationContext.class
>> not found                 context = new
>> FileSystemXmlApplicationContext(file, processors);
>> ^ Note: org/apache/servicemix/Main.java uses unchecked or unsafe
>> operations.
>> Note: Recompile with -Xlint:unchecked for details. 4 errors
>>
>> Can somebody help me please?
>> Thanks in advance.
>>
>> Martina
>> --
>> View this message in context:
>> http://www.nabble.com/Error-in-Main.java-tp14275886s12049p14275886.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> 
> 

-- 
View this message in context: http://www.nabble.com/Error-in-Main.java-tp14275886s12049p14277281.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Error in Main.java

Posted by Guillaume Nodet <gn...@gmail.com>.
How did you compile it ?
Did you follow the instructions in the README file ?

On Dec 11, 2007 4:13 PM, martymusk <ma...@email.it> wrote:

>
> Hy, I'm working with wsn-example...
> I've a question:
> when i compile Main.java from linux shell, the following error occurs:
>
> [martina@martina java]$ javac org/apache/servicemix/Main.java
> org/apache/servicemix/Main.java:26: package org.springframework.contextdoes
> not exist import org.springframework.context.ApplicationContext;
> ^ org/apache/servicemix/Main.java:49: cannot find symbol symbol  : class
> ApplicationContext location: class org.apache.servicemix.Main
> ApplicationContext context = null;             ^
> org/apache/servicemix/Main.java:52: cannot access
> org.springframework.context.support.ClassPathXmlApplicationContext file
> org/springframework/context/support/ClassPathXmlApplicationContext.class
> not
> found                 context = new
> ClassPathXmlApplicationContext("servicemix.xml");
> ^ org/apache/servicemix/Main.java:66: cannot access
> org.springframework.context.support.FileSystemXmlApplicationContext file
> org/springframework/context/support/FileSystemXmlApplicationContext.class
> not found                 context = new
> FileSystemXmlApplicationContext(file, processors);
> ^ Note: org/apache/servicemix/Main.java uses unchecked or unsafe
> operations.
> Note: Recompile with -Xlint:unchecked for details. 4 errors
>
> Can somebody help me please?
> Thanks in advance.
>
> Martina
> --
> View this message in context:
> http://www.nabble.com/Error-in-Main.java-tp14275886s12049p14275886.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/