You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Guillaume Nodet <gn...@gmail.com> on 2008/03/25 11:39:21 UTC

Re: Issue/Bug with Servicemix-web 3.2.1 (WAR)

I've looked at your code and after having fixed a minor issue in the
HandlerBean (I had a NullPointerException because the content variable was
null because of the File stuff used to retrieve the name of the attachment;
try fileName = it.next().toString() instead), I've been able to deploy it on
servicemix standalone and when i have submitted the form, my browser asked
me to save a file (which seems to be the response of the bean).
The console said that  HTTPMarshaler.sendOut() was called.
Don't you see the same behavior ?  I haven't tried yet on tomcat, but it
would be nice to see if you can make it work on ServiceMix standalone first.

On Sun, Feb 17, 2008 at 7:55 PM, puneetjain <pu...@wipro.com> wrote:

>
> Hi,
>
> I am trying to integrate servicemix with Geronimo.
> I have written the http-uploader sample application given in the tutorial
> of
> servicemix at below location
>
> http://servicemix.apache.org/7-intermediate-writing-a-http-upload-application.html
>
> It runs fine with standalone servicemix. But when, I tried to run this
> application with servicemix running in Geronimo, it's not working
> properly.
> When we tried the same on the Servicemix, it shows file save dialog box.
> The
> same is not working, when tried on Geronimo.
>
> Note: No exception is coming
>
> I have put the logging statements in the HttpMarshler and HttpHandler Bean
> classes and run it. I have observed that the createMessage() method of
> HttpMarshler is getting called. onMessageExchange() method of HttpHandler
> is
> also called. But the sendOut method of HttpMarshler is not getting called.
>
> The example is using the http:consumer element in xbean.xml file:
> <http:consumer   service="ex:httplistener"
>                 endpoint="listenerEndpoint"
>                 locationURI="http://0.0.0.0:8192/upload/"
>                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>                 targetService="ex:httphandler"
>                 marshaler="#marshaler" />
> And This element is existing in ServiceMix version 3.2 and above only (As
> mentioned in the tutorial).
>
> Since this element is new in servicemix, the handling of this element is
> having some issue when it is used with apache servicemix-web (WAR) in
> Geronimo.
>
> Environment:
> =========
> Operating System – Windows XP SP2
> Servicemix 3.2.1
> Geronimo with tomcat version 2.0.2
> Java 1.5
>
> Steps Performed:
> ============
>
> 1.      Downloaded the "apache-servicemix-web-3.2.1.zip" file from below
> location
> and deployed it on Geronimo.
>        http://servicemix.apache.org/download.html
>
> 2.      Installed servicemix-shared library using the apache
> servicemix-web
> interface's Shared Libraries Menu.
> 3.      Installed and started servicemix-http and servicemix-bean
> component using
> the servicemix-web interface's Components menu.
> 4.      Deployed and started the http-uploader-sa service assembly using
> the same
> interface's Service assemblies menu.
> 5.      Verified that the service is deployed using below url:
>        http://localhost:8080/apache-servicemix-web-3.2.1.zip/jbi/
>
> 6.      I have written a client as per instruction given in the tutorial
> and
> change the  "action" in the HTML form tag  with the following URL:
>        http://localhost:8080/apache-servicemix-web-3.2.1.zip/jbi/upload
> 7.      When, I tried to access the application, nothing got displayed on
> the
> browser. i.e.  no response comes back.
>
> Exception:
> ======
> There is no Exception comes in any log.
>
>
> Please help me in resolving this problem. I am stuck with this problem
> from
> long time and have sent so many mails, but have not got any pointers to
> solve to this problem.
>
> Looking forward for your reply at the earliest..!
>
> Thanks,
> Puneet
>
> --
> View this message in context:
> http://www.nabble.com/Issue-Bug-with-Servicemix-web-3.2.1-%28WAR%29-tp15532283s12049p15532283.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


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

Re: Issue/Bug with Servicemix-web 3.2.1 (WAR)

Posted by Guillaume Nodet <gn...@gmail.com>.
Yeah, the code i gave was just meant to give an idea.
You need to import the needed classes from the following package:
  org.apache.servicemix.executors.impl

On Tue, Mar 25, 2008 at 5:08 PM, puneetjain <pu...@wipro.com> wrote:

>
> Hi Gnodet,
>
> Thanks a lot for your support and help.
>
> Mean while I tried the ExecutorConfig implementation for jboss deployer,
> but
> my class is not getting build. I have added dependancy of ExecutorConfig
> class in the pom file but its not resolving the class.
> The pom configuration file for the same is:
> http://www.nabble.com/file/p16276727/pom.xml pom.xml
>
> Please have a look to this file and tell me where I have commited mistake.
> Exception log is given below.
>
> Can we configure the instance pool of servicemix components running with
> Jboss. How to configure it and what is the default value when running with
> Jboss Application Server?
>
> Secondly, I don't know how to create a raise a jira issue.
>
> Exception Raised:
> ===========
>
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Building Unnamed -
> org.codehaus.smxext:servicemix-jboss-deployer:jar:3.2.1
> [INFO]    task-segment: [clean, install]
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking
> for
> updates from codehaus.snapshots
> [WARNING] repository metadata for: 'artifact
> org.apache.maven.plugins:maven-surefire-plugin' could not be retrieved
> from
> repository: codehaus.snapshots due to an error: Error transferring file
> [INFO] Repository 'codehaus.snapshots' will be blacklisted
> [WARNING] While downloading servletapi:servletapi:2.3
>  This artifact has been relocated to javax.servlet:servlet-api:2.3.
>
>
> [INFO] [xdoclet:xdoclet {execution: default}]
> [INFO] Initializing DocletTasks!!!
> [INFO] Executing tasks
> Mar 25, 2008 9:15:05 PM xdoclet.XDocletMain start
> INFO: Running <mbeaninterface/>
> Mar 25, 2008 9:15:05 PM xdoclet.TemplateSubTask engineStarted
> INFO: Generating output for 'org.servicemix.jboss.deployment.JBIService'
> using template file
> 'jar:file:/D:/OKISoft/maven-2.0.6
> /xdoclet/xdoclet-jmx-module/1.2.3/xdoclet-
> jmx-module-1.2.3.jar!/xdoclet/modules/jmx/resources/mbean.xdt'.
> Mar 25, 2008 9:15:06 PM xdoclet.TemplateSubTask engineStarted
> INFO: Generating output for 'org.servicemix.jboss.deployment.JBIDeployer'
> using template file
> 'jar:file:/D:/OKISoft/maven-2.0.6
> /xdoclet/xdoclet-jmx-module/1.2.3/xdoclet-
> jmx-module-1.2.3.jar!/xdoclet/modules/jmx/resources/mbean.xdt'.
> INFO:    Some classes refer to other classes that were not found among the
> sources or on the classpath.
>         (Perhaps the referred class doesn't exist? Hasn't been generated
> yet?)
>         The referring classes do not import any fully qualified classes
> matching these classes.
>         However, since no packages are imported, xjavadoc has assumed that
> the referred classes
>         belong to the same package as the referring class. The classes
> are:
>
> D:\OKISoft\POCDemo\25March2008\Work\jboss-deployer\src\main\java\org\servicemix\jboss\deployment\JBIDeployer.java
> --> JBIDeployerMBean qualified to
> org.servicemix.jboss.deployment.JBIDeployerMBean
>
> D:\OKISoft\POCDemo\25March2008\Work\jboss-deployer\src\main\java\org\servicemix\jboss\deployment\JBIService.java
> --> JBIServiceMBean qualified to
> org.servicemix.jboss.deployment.JBIServiceMBean
> [INFO] Executed tasks
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Compiling 4 source files to
> D:\OKISoft\POCDemo\25March2008\Work\jboss-deployer\target\classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> D:\OKISoft\POCDemo\25March2008\Work\jboss-deployer\src\main\java\org\servicemix\jboss\deployment\JBIService.java:[214,44]
> cannot find symbol
> symbol  : class ExecutorFactoryImp
> location: class org.servicemix.jboss.deployment.JBIService
>
>
>
>
> D:\OKISoft\POCDemo\25March2008\Work\jboss-deployer\src\main\java\org\servicemix\jboss\deployment\JBIService.java:[214,44]
> cannot find symbol
> symbol  : class ExecutorFactoryImp
> location: class org.servicemix.jboss.deployment.JBIService
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: Compilation failure
>
> D:\OKISoft\POCDemo\25March2008\Work\jboss-deployer\src\main\java\org\servicemix\jboss\deployment\JBIService.java:[214,44]
> cannot find symbol
> symbol  : class ExecutorFactoryImp
> location: class org.servicemix.jboss.deployment.JBIService
>
>
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:560)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> (DefaultLifecycleExecutor.java:480)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> DefaultLifecycleExecutor.java:459)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (DefaultLifecycleExecutor.java:311)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:278)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:143)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>        at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.CompilationFailureException:
> Compilation
> failure
>
> D:\OKISoft\POCDemo\25March2008\Work\jboss-deployer\src\main\java\org\servicemix\jboss\deployment\JBIService.java:[214,44]
> cannot find symbol
> symbol  : class ExecutorFactoryImp
> location: class org.servicemix.jboss.deployment.JBIService
>
>
>        at
> org.apache.maven.plugin.AbstractCompilerMojo.execute(
> AbstractCompilerMojo.java:516)
>        at
> org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
>        at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:443)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:539)
>        ... 16 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 13 seconds
> [INFO] Finished at: Tue Mar 25 21:15:09 IST 2008
> [INFO] Final Memory: 14M/29M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
> Thanks,
> Puneet
>
>
>
>
> gnodet wrote:
> >
> > I've been able to reproduce your problem.  It seems that the code has a
> > bug
> > and won't work if the web server is not jetty.   You can easily force
> the
> > use of the embedded jetty server inside the apache-servicemix-web
> > application by removing the following line in the WEB-INF/servicemix.xml
> > configuration file:
> >
> >     <sm:listeners>
> >       <bean class="org.apache.servicemix.web.http.HttpComponentListener"
> > />
> >     </sm:listeners>
> >
> > If you remove it, your application should work.  btw, could you please
> > raise
> > a JIRA and I'll commit a fix asap.
> >
> > On Tue, Mar 25, 2008 at 1:07 PM, puneetjain <pu...@wipro.com>
> > wrote:
> >
> >>
> >>
> >> Hi gnodet,
> >>
> >> I have already tried this sample with the modified code on Servicemix
> >> standalone. It was working perfectly fine. That I u have already
> >> mentioned
> >> in my mail. The problem is there when I try to run the same service
> >> assemply
> >> on Geronimo. I have integrated servicemix with geronimo using the
> >> Servicemin
> >> standard web app distribution.
> >> I tried the same on Jboss and tomcat with the same web app
> distribution.
> >> But
> >> it was not working.
> >>
> >> Please give me some pointer to resolve these issues.
> >>
> >>
> >> Thanks,
> >> Puneet
> >>
> >>
> >> gnodet wrote:
> >> >
> >> > I've looked at your code and after having fixed a minor issue in the
> >> > HandlerBean (I had a NullPointerException because the content
> variable
> >> was
> >> > null because of the File stuff used to retrieve the name of the
> >> > attachment;
> >> > try fileName = it.next().toString() instead), I've been able to
> deploy
> >> it
> >> > on
> >> > servicemix standalone and when i have submitted the form, my browser
> >> asked
> >> > me to save a file (which seems to be the response of the bean).
> >> > The console said that  HTTPMarshaler.sendOut() was called.
> >> > Don't you see the same behavior ?  I haven't tried yet on tomcat, but
> >> it
> >> > would be nice to see if you can make it work on ServiceMix standalone
> >> > first.
> >> >
> >> > On Sun, Feb 17, 2008 at 7:55 PM, puneetjain <pu...@wipro.com>
> >> > wrote:
> >> >
> >> >>
> >> >> Hi,
> >> >>
> >> >> I am trying to integrate servicemix with Geronimo.
> >> >> I have written the http-uploader sample application given in the
> >> tutorial
> >> >> of
> >> >> servicemix at below location
> >> >>
> >> >>
> >>
> http://servicemix.apache.org/7-intermediate-writing-a-http-upload-application.html
> >> >>
> >> >> It runs fine with standalone servicemix.
> >> > ============================
> >> > But when, I tried to run this
> >> >> application with servicemix running in Geronimo, it's not working
> >> >> properly.
> >> >> When we tried the same on the Servicemix, it shows file save dialog
> >> box.
> >> >> The
> >> >> same is not working, when tried on Geronimo.
> >> >>
> >> >> Note: No exception is coming
> >> >>
> >> >> I have put the logging statements in the HttpMarshler and
> HttpHandler
> >> >> Bean
> >> >> classes and run it. I have observed that the createMessage() method
> of
> >> >> HttpMarshler is getting called. onMessageExchange() method of
> >> HttpHandler
> >> >> is
> >> >> also called. But the sendOut method of HttpMarshler is not getting
> >> >> called.
> >> >>
> >> >> The example is using the http:consumer element in xbean.xml file:
> >> >> <http:consumer   service="ex:httplistener"
> >> >>                 endpoint="listenerEndpoint"
> >> >>                 locationURI="http://0.0.0.0:8192/upload/"
> >> >>                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> >> >>                 targetService="ex:httphandler"
> >> >>                 marshaler="#marshaler" />
> >> >> And This element is existing in ServiceMix version 3.2 and above
> only
> >> (As
> >> >> mentioned in the tutorial).
> >> >>
> >> >> Since this element is new in servicemix, the handling of this
> element
> >> is
> >> >> having some issue when it is used with apache servicemix-web (WAR)
> in
> >> >> Geronimo.
> >> >>
> >> >> Environment:
> >> >> =========
> >> >> Operating System – Windows XP SP2
> >> >> Servicemix 3.2.1
> >> >> Geronimo with tomcat version 2.0.2
> >> >> Java 1.5
> >> >>
> >> >> Steps Performed:
> >> >> ============
> >> >>
> >> >> 1.      Downloaded the "apache-servicemix-web-3.2.1.zip" file from
> >> below
> >> >> location
> >> >> and deployed it on Geronimo.
> >> >>        http://servicemix.apache.org/download.html
> >> >>
> >> >> 2.      Installed servicemix-shared library using the apache
> >> >> servicemix-web
> >> >> interface's Shared Libraries Menu.
> >> >> 3.      Installed and started servicemix-http and servicemix-bean
> >> >> component using
> >> >> the servicemix-web interface's Components menu.
> >> >> 4.      Deployed and started the http-uploader-sa service assembly
> >> using
> >> >> the same
> >> >> interface's Service assemblies menu.
> >> >> 5.      Verified that the service is deployed using below url:
> >> >>        http://localhost:8080/apache-servicemix-web-3.2.1.zip/jbi/
> >> >>
> >> >> 6.      I have written a client as per instruction given in the
> >> tutorial
> >> >> and
> >> >> change the  "action" in the HTML form tag  with the following URL:
> >> >>
> >> http://localhost:8080/apache-servicemix-web-3.2.1.zip/jbi/upload
> >> >> 7.      When, I tried to access the application, nothing got
> displayed
> >> on
> >> >> the
> >> >> browser. i.e.  no response comes back.
> >> >>
> >> >> Exception:
> >> >> ======
> >> >> There is no Exception comes in any log.
> >> >>
> >> >>
> >> >> Please help me in resolving this problem. I am stuck with this
> problem
> >> >> from
> >> >> long time and have sent so many mails, but have not got any pointers
> >> to
> >> >> solve to this problem.
> >> >>
> >> >> Looking forward for your reply at the earliest..!
> >> >>
> >> >> Thanks,
> >> >> Puneet
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/Issue-Bug-with-Servicemix-web-3.2.1-%28WAR%29-tp15532283s12049p15532283.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/Re%3A-Issue-Bug-with-Servicemix-web-3.2.1-%28WAR%29-tp16273957s12049p16274120.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/Re%3A-Issue-Bug-with-Servicemix-web-3.2.1-%28WAR%29-tp16273957s12049p16276727.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


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

Re: Issue/Bug with Servicemix-web 3.2.1 (WAR)

Posted by puneetjain <pu...@wipro.com>.
Hi Gnodet,

Thanks a lot for your support and help.

Mean while I tried the ExecutorConfig implementation for jboss deployer, but
my class is not getting build. I have added dependancy of ExecutorConfig
class in the pom file but its not resolving the class.
The pom configuration file for the same is:
http://www.nabble.com/file/p16276727/pom.xml pom.xml 

Please have a look to this file and tell me where I have commited mistake.
Exception log is given below.

Can we configure the instance pool of servicemix components running with
Jboss. How to configure it and what is the default value when running with
Jboss Application Server?

Secondly, I don't know how to create a raise a jira issue.

Exception Raised:
===========

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Unnamed -
org.codehaus.smxext:servicemix-jboss-deployer:jar:3.2.1
[INFO]    task-segment: [clean, install]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for
updates from codehaus.snapshots
[WARNING] repository metadata for: 'artifact
org.apache.maven.plugins:maven-surefire-plugin' could not be retrieved from
repository: codehaus.snapshots due to an error: Error transferring file
[INFO] Repository 'codehaus.snapshots' will be blacklisted
[WARNING] While downloading servletapi:servletapi:2.3
  This artifact has been relocated to javax.servlet:servlet-api:2.3.


[INFO] [xdoclet:xdoclet {execution: default}]
[INFO] Initializing DocletTasks!!!
[INFO] Executing tasks
Mar 25, 2008 9:15:05 PM xdoclet.XDocletMain start
INFO: Running <mbeaninterface/>
Mar 25, 2008 9:15:05 PM xdoclet.TemplateSubTask engineStarted
INFO: Generating output for 'org.servicemix.jboss.deployment.JBIService'
using template file
'jar:file:/D:/OKISoft/maven-2.0.6/xdoclet/xdoclet-jmx-module/1.2.3/xdoclet-jmx-module-1.2.3.jar!/xdoclet/modules/jmx/resources/mbean.xdt'.
Mar 25, 2008 9:15:06 PM xdoclet.TemplateSubTask engineStarted
INFO: Generating output for 'org.servicemix.jboss.deployment.JBIDeployer'
using template file
'jar:file:/D:/OKISoft/maven-2.0.6/xdoclet/xdoclet-jmx-module/1.2.3/xdoclet-jmx-module-1.2.3.jar!/xdoclet/modules/jmx/resources/mbean.xdt'.
INFO:    Some classes refer to other classes that were not found among the
sources or on the classpath.
         (Perhaps the referred class doesn't exist? Hasn't been generated
yet?)
         The referring classes do not import any fully qualified classes
matching these classes.
         However, since no packages are imported, xjavadoc has assumed that
the referred classes
         belong to the same package as the referring class. The classes are:
D:\OKISoft\POCDemo\25March2008\Work\jboss-deployer\src\main\java\org\servicemix\jboss\deployment\JBIDeployer.java
--> JBIDeployerMBean qualified to
org.servicemix.jboss.deployment.JBIDeployerMBean
D:\OKISoft\POCDemo\25March2008\Work\jboss-deployer\src\main\java\org\servicemix\jboss\deployment\JBIService.java
--> JBIServiceMBean qualified to
org.servicemix.jboss.deployment.JBIServiceMBean
[INFO] Executed tasks
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 4 source files to
D:\OKISoft\POCDemo\25March2008\Work\jboss-deployer\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
D:\OKISoft\POCDemo\25March2008\Work\jboss-deployer\src\main\java\org\servicemix\jboss\deployment\JBIService.java:[214,44]
cannot find symbol
symbol  : class ExecutorFactoryImp
location: class org.servicemix.jboss.deployment.JBIService



D:\OKISoft\POCDemo\25March2008\Work\jboss-deployer\src\main\java\org\servicemix\jboss\deployment\JBIService.java:[214,44]
cannot find symbol
symbol  : class ExecutorFactoryImp
location: class org.servicemix.jboss.deployment.JBIService


[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
D:\OKISoft\POCDemo\25March2008\Work\jboss-deployer\src\main\java\org\servicemix\jboss\deployment\JBIService.java:[214,44]
cannot find symbol
symbol  : class ExecutorFactoryImp
location: class org.servicemix.jboss.deployment.JBIService


        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation
failure
D:\OKISoft\POCDemo\25March2008\Work\jboss-deployer\src\main\java\org\servicemix\jboss\deployment\JBIService.java:[214,44]
cannot find symbol
symbol  : class ExecutorFactoryImp
location: class org.servicemix.jboss.deployment.JBIService


        at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
        at
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        ... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 13 seconds
[INFO] Finished at: Tue Mar 25 21:15:09 IST 2008
[INFO] Final Memory: 14M/29M
[INFO]
------------------------------------------------------------------------



Thanks,
Puneet




gnodet wrote:
> 
> I've been able to reproduce your problem.  It seems that the code has a
> bug
> and won't work if the web server is not jetty.   You can easily force the
> use of the embedded jetty server inside the apache-servicemix-web
> application by removing the following line in the WEB-INF/servicemix.xml
> configuration file:
> 
>     <sm:listeners>
>       <bean class="org.apache.servicemix.web.http.HttpComponentListener"
> />
>     </sm:listeners>
> 
> If you remove it, your application should work.  btw, could you please
> raise
> a JIRA and I'll commit a fix asap.
> 
> On Tue, Mar 25, 2008 at 1:07 PM, puneetjain <pu...@wipro.com>
> wrote:
> 
>>
>>
>> Hi gnodet,
>>
>> I have already tried this sample with the modified code on Servicemix
>> standalone. It was working perfectly fine. That I u have already
>> mentioned
>> in my mail. The problem is there when I try to run the same service
>> assemply
>> on Geronimo. I have integrated servicemix with geronimo using the
>> Servicemin
>> standard web app distribution.
>> I tried the same on Jboss and tomcat with the same web app distribution.
>> But
>> it was not working.
>>
>> Please give me some pointer to resolve these issues.
>>
>>
>> Thanks,
>> Puneet
>>
>>
>> gnodet wrote:
>> >
>> > I've looked at your code and after having fixed a minor issue in the
>> > HandlerBean (I had a NullPointerException because the content variable
>> was
>> > null because of the File stuff used to retrieve the name of the
>> > attachment;
>> > try fileName = it.next().toString() instead), I've been able to deploy
>> it
>> > on
>> > servicemix standalone and when i have submitted the form, my browser
>> asked
>> > me to save a file (which seems to be the response of the bean).
>> > The console said that  HTTPMarshaler.sendOut() was called.
>> > Don't you see the same behavior ?  I haven't tried yet on tomcat, but
>> it
>> > would be nice to see if you can make it work on ServiceMix standalone
>> > first.
>> >
>> > On Sun, Feb 17, 2008 at 7:55 PM, puneetjain <pu...@wipro.com>
>> > wrote:
>> >
>> >>
>> >> Hi,
>> >>
>> >> I am trying to integrate servicemix with Geronimo.
>> >> I have written the http-uploader sample application given in the
>> tutorial
>> >> of
>> >> servicemix at below location
>> >>
>> >>
>> http://servicemix.apache.org/7-intermediate-writing-a-http-upload-application.html
>> >>
>> >> It runs fine with standalone servicemix.
>> > ============================
>> > But when, I tried to run this
>> >> application with servicemix running in Geronimo, it's not working
>> >> properly.
>> >> When we tried the same on the Servicemix, it shows file save dialog
>> box.
>> >> The
>> >> same is not working, when tried on Geronimo.
>> >>
>> >> Note: No exception is coming
>> >>
>> >> I have put the logging statements in the HttpMarshler and HttpHandler
>> >> Bean
>> >> classes and run it. I have observed that the createMessage() method of
>> >> HttpMarshler is getting called. onMessageExchange() method of
>> HttpHandler
>> >> is
>> >> also called. But the sendOut method of HttpMarshler is not getting
>> >> called.
>> >>
>> >> The example is using the http:consumer element in xbean.xml file:
>> >> <http:consumer   service="ex:httplistener"
>> >>                 endpoint="listenerEndpoint"
>> >>                 locationURI="http://0.0.0.0:8192/upload/"
>> >>                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>> >>                 targetService="ex:httphandler"
>> >>                 marshaler="#marshaler" />
>> >> And This element is existing in ServiceMix version 3.2 and above only
>> (As
>> >> mentioned in the tutorial).
>> >>
>> >> Since this element is new in servicemix, the handling of this element
>> is
>> >> having some issue when it is used with apache servicemix-web (WAR) in
>> >> Geronimo.
>> >>
>> >> Environment:
>> >> =========
>> >> Operating System – Windows XP SP2
>> >> Servicemix 3.2.1
>> >> Geronimo with tomcat version 2.0.2
>> >> Java 1.5
>> >>
>> >> Steps Performed:
>> >> ============
>> >>
>> >> 1.      Downloaded the "apache-servicemix-web-3.2.1.zip" file from
>> below
>> >> location
>> >> and deployed it on Geronimo.
>> >>        http://servicemix.apache.org/download.html
>> >>
>> >> 2.      Installed servicemix-shared library using the apache
>> >> servicemix-web
>> >> interface's Shared Libraries Menu.
>> >> 3.      Installed and started servicemix-http and servicemix-bean
>> >> component using
>> >> the servicemix-web interface's Components menu.
>> >> 4.      Deployed and started the http-uploader-sa service assembly
>> using
>> >> the same
>> >> interface's Service assemblies menu.
>> >> 5.      Verified that the service is deployed using below url:
>> >>        http://localhost:8080/apache-servicemix-web-3.2.1.zip/jbi/
>> >>
>> >> 6.      I have written a client as per instruction given in the
>> tutorial
>> >> and
>> >> change the  "action" in the HTML form tag  with the following URL:
>> >>       
>> http://localhost:8080/apache-servicemix-web-3.2.1.zip/jbi/upload
>> >> 7.      When, I tried to access the application, nothing got displayed
>> on
>> >> the
>> >> browser. i.e.  no response comes back.
>> >>
>> >> Exception:
>> >> ======
>> >> There is no Exception comes in any log.
>> >>
>> >>
>> >> Please help me in resolving this problem. I am stuck with this problem
>> >> from
>> >> long time and have sent so many mails, but have not got any pointers
>> to
>> >> solve to this problem.
>> >>
>> >> Looking forward for your reply at the earliest..!
>> >>
>> >> Thanks,
>> >> Puneet
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Issue-Bug-with-Servicemix-web-3.2.1-%28WAR%29-tp15532283s12049p15532283.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/Re%3A-Issue-Bug-with-Servicemix-web-3.2.1-%28WAR%29-tp16273957s12049p16274120.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/Re%3A-Issue-Bug-with-Servicemix-web-3.2.1-%28WAR%29-tp16273957s12049p16276727.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Issue/Bug with Servicemix-web 3.2.1 (WAR)

Posted by Guillaume Nodet <gn...@gmail.com>.
I've raised an issue and committed a fix:
   https://issues.apache.org/activemq/browse/SM-1288
Could you build a snapshot version and give it a try ?

On Tue, Mar 25, 2008 at 2:00 PM, Guillaume Nodet <gn...@gmail.com> wrote:

> I've been able to reproduce your problem.  It seems that the code has a
> bug and won't work if the web server is not jetty.   You can easily force
> the use of the embedded jetty server inside the apache-servicemix-web
> application by removing the following line in the WEB-INF/servicemix.xml
> configuration file:
>
>     <sm:listeners>
>       <bean class="org.apache.servicemix.web.http.HttpComponentListener"
> />
>     </sm:listeners>
>
> If you remove it, your application should work.  btw, could you please
> raise a JIRA and I'll commit a fix asap.
>
>
> On Tue, Mar 25, 2008 at 1:07 PM, puneetjain <pu...@wipro.com>
> wrote:
>
> >
> >
> > Hi gnodet,
> >
> > I have already tried this sample with the modified code on Servicemix
> > standalone. It was working perfectly fine. That I u have already
> > mentioned
> > in my mail. The problem is there when I try to run the same service
> > assemply
> > on Geronimo. I have integrated servicemix with geronimo using the
> > Servicemin
> > standard web app distribution.
> > I tried the same on Jboss and tomcat with the same web app distribution.
> > But
> > it was not working.
> >
> > Please give me some pointer to resolve these issues.
> >
> >
> > Thanks,
> > Puneet
> >
> >
> > gnodet wrote:
> > >
> > > I've looked at your code and after having fixed a minor issue in the
> > > HandlerBean (I had a NullPointerException because the content variable
> > was
> > > null because of the File stuff used to retrieve the name of the
> > > attachment;
> > > try fileName = it.next().toString() instead), I've been able to deploy
> > it
> > > on
> > > servicemix standalone and when i have submitted the form, my browser
> > asked
> > > me to save a file (which seems to be the response of the bean).
> > > The console said that  HTTPMarshaler.sendOut() was called.
> > > Don't you see the same behavior ?  I haven't tried yet on tomcat, but
> > it
> > > would be nice to see if you can make it work on ServiceMix standalone
> > > first.
> > >
> > > On Sun, Feb 17, 2008 at 7:55 PM, puneetjain <pu...@wipro.com>
> > > wrote:
> > >
> > >>
> > >> Hi,
> > >>
> > >> I am trying to integrate servicemix with Geronimo.
> > >> I have written the http-uploader sample application given in the
> > tutorial
> > >> of
> > >> servicemix at below location
> > >>
> > >>
> > http://servicemix.apache.org/7-intermediate-writing-a-http-upload-application.html
> > >>
> > >> It runs fine with standalone servicemix.
> > > ============================
> > > But when, I tried to run this
> > >> application with servicemix running in Geronimo, it's not working
> > >> properly.
> > >> When we tried the same on the Servicemix, it shows file save dialog
> > box.
> > >> The
> > >> same is not working, when tried on Geronimo.
> > >>
> > >> Note: No exception is coming
> > >>
> > >> I have put the logging statements in the HttpMarshler and HttpHandler
> > >> Bean
> > >> classes and run it. I have observed that the createMessage() method
> > of
> > >> HttpMarshler is getting called. onMessageExchange() method of
> > HttpHandler
> > >> is
> > >> also called. But the sendOut method of HttpMarshler is not getting
> > >> called.
> > >>
> > >> The example is using the http:consumer element in xbean.xml file:
> > >> <http:consumer   service="ex:httplistener"
> > >>                 endpoint="listenerEndpoint"
> > >>                 locationURI="http://0.0.0.0:8192/upload/"
> > >>                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> > >>                 targetService="ex:httphandler"
> > >>                 marshaler="#marshaler" />
> > >> And This element is existing in ServiceMix version 3.2 and above only
> > (As
> > >> mentioned in the tutorial).
> > >>
> > >> Since this element is new in servicemix, the handling of this element
> > is
> > >> having some issue when it is used with apache servicemix-web (WAR) in
> > >> Geronimo.
> > >>
> > >> Environment:
> > >> =========
> > >> Operating System – Windows XP SP2
> > >> Servicemix 3.2.1
> > >> Geronimo with tomcat version 2.0.2
> > >> Java 1.5
> > >>
> > >> Steps Performed:
> > >> ============
> > >>
> > >> 1.      Downloaded the "apache-servicemix-web-3.2.1.zip" file from
> > below
> > >> location
> > >> and deployed it on Geronimo.
> > >>        http://servicemix.apache.org/download.html
> > >>
> > >> 2.      Installed servicemix-shared library using the apache
> > >> servicemix-web
> > >> interface's Shared Libraries Menu.
> > >> 3.      Installed and started servicemix-http and servicemix-bean
> > >> component using
> > >> the servicemix-web interface's Components menu.
> > >> 4.      Deployed and started the http-uploader-sa service assembly
> > using
> > >> the same
> > >> interface's Service assemblies menu.
> > >> 5.      Verified that the service is deployed using below url:
> > >>        http://localhost:8080/apache-servicemix-web-3.2.1.zip/jbi/
> > >>
> > >> 6.      I have written a client as per instruction given in the
> > tutorial
> > >> and
> > >> change the  "action" in the HTML form tag  with the following URL:
> > >>
> > http://localhost:8080/apache-servicemix-web-3.2.1.zip/jbi/upload
> > >> 7.      When, I tried to access the application, nothing got
> > displayed on
> > >> the
> > >> browser. i.e.  no response comes back.
> > >>
> > >> Exception:
> > >> ======
> > >> There is no Exception comes in any log.
> > >>
> > >>
> > >> Please help me in resolving this problem. I am stuck with this
> > problem
> > >> from
> > >> long time and have sent so many mails, but have not got any pointers
> > to
> > >> solve to this problem.
> > >>
> > >> Looking forward for your reply at the earliest..!
> > >>
> > >> Thanks,
> > >> Puneet
> > >>
> > >> --
> > >> View this message in context:
> > >>
> > http://www.nabble.com/Issue-Bug-with-Servicemix-web-3.2.1-%28WAR%29-tp15532283s12049p15532283.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/Re%3A-Issue-Bug-with-Servicemix-web-3.2.1-%28WAR%29-tp16273957s12049p16274120.html
> > Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >
> >
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
>



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

Re: Issue/Bug with Servicemix-web 3.2.1 (WAR)

Posted by Guillaume Nodet <gn...@gmail.com>.
I've just verified that it works.  The service ends up at the specified
location instead:
  http://localhost:8192/upload/

On Tue, Mar 25, 2008 at 2:00 PM, Guillaume Nodet <gn...@gmail.com> wrote:

> I've been able to reproduce your problem.  It seems that the code has a
> bug and won't work if the web server is not jetty.   You can easily force
> the use of the embedded jetty server inside the apache-servicemix-web
> application by removing the following line in the WEB-INF/servicemix.xml
> configuration file:
>
>     <sm:listeners>
>       <bean class="org.apache.servicemix.web.http.HttpComponentListener"
> />
>     </sm:listeners>
>
> If you remove it, your application should work.  btw, could you please
> raise a JIRA and I'll commit a fix asap.
>
>
> On Tue, Mar 25, 2008 at 1:07 PM, puneetjain <pu...@wipro.com>
> wrote:
>
> >
> >
> > Hi gnodet,
> >
> > I have already tried this sample with the modified code on Servicemix
> > standalone. It was working perfectly fine. That I u have already
> > mentioned
> > in my mail. The problem is there when I try to run the same service
> > assemply
> > on Geronimo. I have integrated servicemix with geronimo using the
> > Servicemin
> > standard web app distribution.
> > I tried the same on Jboss and tomcat with the same web app distribution.
> > But
> > it was not working.
> >
> > Please give me some pointer to resolve these issues.
> >
> >
> > Thanks,
> > Puneet
> >
> >
> > gnodet wrote:
> > >
> > > I've looked at your code and after having fixed a minor issue in the
> > > HandlerBean (I had a NullPointerException because the content variable
> > was
> > > null because of the File stuff used to retrieve the name of the
> > > attachment;
> > > try fileName = it.next().toString() instead), I've been able to deploy
> > it
> > > on
> > > servicemix standalone and when i have submitted the form, my browser
> > asked
> > > me to save a file (which seems to be the response of the bean).
> > > The console said that  HTTPMarshaler.sendOut() was called.
> > > Don't you see the same behavior ?  I haven't tried yet on tomcat, but
> > it
> > > would be nice to see if you can make it work on ServiceMix standalone
> > > first.
> > >
> > > On Sun, Feb 17, 2008 at 7:55 PM, puneetjain <pu...@wipro.com>
> > > wrote:
> > >
> > >>
> > >> Hi,
> > >>
> > >> I am trying to integrate servicemix with Geronimo.
> > >> I have written the http-uploader sample application given in the
> > tutorial
> > >> of
> > >> servicemix at below location
> > >>
> > >>
> > http://servicemix.apache.org/7-intermediate-writing-a-http-upload-application.html
> > >>
> > >> It runs fine with standalone servicemix.
> > > ============================
> > > But when, I tried to run this
> > >> application with servicemix running in Geronimo, it's not working
> > >> properly.
> > >> When we tried the same on the Servicemix, it shows file save dialog
> > box.
> > >> The
> > >> same is not working, when tried on Geronimo.
> > >>
> > >> Note: No exception is coming
> > >>
> > >> I have put the logging statements in the HttpMarshler and HttpHandler
> > >> Bean
> > >> classes and run it. I have observed that the createMessage() method
> > of
> > >> HttpMarshler is getting called. onMessageExchange() method of
> > HttpHandler
> > >> is
> > >> also called. But the sendOut method of HttpMarshler is not getting
> > >> called.
> > >>
> > >> The example is using the http:consumer element in xbean.xml file:
> > >> <http:consumer   service="ex:httplistener"
> > >>                 endpoint="listenerEndpoint"
> > >>                 locationURI="http://0.0.0.0:8192/upload/"
> > >>                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> > >>                 targetService="ex:httphandler"
> > >>                 marshaler="#marshaler" />
> > >> And This element is existing in ServiceMix version 3.2 and above only
> > (As
> > >> mentioned in the tutorial).
> > >>
> > >> Since this element is new in servicemix, the handling of this element
> > is
> > >> having some issue when it is used with apache servicemix-web (WAR) in
> > >> Geronimo.
> > >>
> > >> Environment:
> > >> =========
> > >> Operating System – Windows XP SP2
> > >> Servicemix 3.2.1
> > >> Geronimo with tomcat version 2.0.2
> > >> Java 1.5
> > >>
> > >> Steps Performed:
> > >> ============
> > >>
> > >> 1.      Downloaded the "apache-servicemix-web-3.2.1.zip" file from
> > below
> > >> location
> > >> and deployed it on Geronimo.
> > >>        http://servicemix.apache.org/download.html
> > >>
> > >> 2.      Installed servicemix-shared library using the apache
> > >> servicemix-web
> > >> interface's Shared Libraries Menu.
> > >> 3.      Installed and started servicemix-http and servicemix-bean
> > >> component using
> > >> the servicemix-web interface's Components menu.
> > >> 4.      Deployed and started the http-uploader-sa service assembly
> > using
> > >> the same
> > >> interface's Service assemblies menu.
> > >> 5.      Verified that the service is deployed using below url:
> > >>        http://localhost:8080/apache-servicemix-web-3.2.1.zip/jbi/
> > >>
> > >> 6.      I have written a client as per instruction given in the
> > tutorial
> > >> and
> > >> change the  "action" in the HTML form tag  with the following URL:
> > >>
> > http://localhost:8080/apache-servicemix-web-3.2.1.zip/jbi/upload
> > >> 7.      When, I tried to access the application, nothing got
> > displayed on
> > >> the
> > >> browser. i.e.  no response comes back.
> > >>
> > >> Exception:
> > >> ======
> > >> There is no Exception comes in any log.
> > >>
> > >>
> > >> Please help me in resolving this problem. I am stuck with this
> > problem
> > >> from
> > >> long time and have sent so many mails, but have not got any pointers
> > to
> > >> solve to this problem.
> > >>
> > >> Looking forward for your reply at the earliest..!
> > >>
> > >> Thanks,
> > >> Puneet
> > >>
> > >> --
> > >> View this message in context:
> > >>
> > http://www.nabble.com/Issue-Bug-with-Servicemix-web-3.2.1-%28WAR%29-tp15532283s12049p15532283.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/Re%3A-Issue-Bug-with-Servicemix-web-3.2.1-%28WAR%29-tp16273957s12049p16274120.html
> > Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >
> >
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
>



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

Re: Issue/Bug with Servicemix-web 3.2.1 (WAR)

Posted by Guillaume Nodet <gn...@gmail.com>.
I've been able to reproduce your problem.  It seems that the code has a bug
and won't work if the web server is not jetty.   You can easily force the
use of the embedded jetty server inside the apache-servicemix-web
application by removing the following line in the WEB-INF/servicemix.xml
configuration file:

    <sm:listeners>
      <bean class="org.apache.servicemix.web.http.HttpComponentListener" />
    </sm:listeners>

If you remove it, your application should work.  btw, could you please raise
a JIRA and I'll commit a fix asap.

On Tue, Mar 25, 2008 at 1:07 PM, puneetjain <pu...@wipro.com> wrote:

>
>
> Hi gnodet,
>
> I have already tried this sample with the modified code on Servicemix
> standalone. It was working perfectly fine. That I u have already mentioned
> in my mail. The problem is there when I try to run the same service
> assemply
> on Geronimo. I have integrated servicemix with geronimo using the
> Servicemin
> standard web app distribution.
> I tried the same on Jboss and tomcat with the same web app distribution.
> But
> it was not working.
>
> Please give me some pointer to resolve these issues.
>
>
> Thanks,
> Puneet
>
>
> gnodet wrote:
> >
> > I've looked at your code and after having fixed a minor issue in the
> > HandlerBean (I had a NullPointerException because the content variable
> was
> > null because of the File stuff used to retrieve the name of the
> > attachment;
> > try fileName = it.next().toString() instead), I've been able to deploy
> it
> > on
> > servicemix standalone and when i have submitted the form, my browser
> asked
> > me to save a file (which seems to be the response of the bean).
> > The console said that  HTTPMarshaler.sendOut() was called.
> > Don't you see the same behavior ?  I haven't tried yet on tomcat, but it
> > would be nice to see if you can make it work on ServiceMix standalone
> > first.
> >
> > On Sun, Feb 17, 2008 at 7:55 PM, puneetjain <pu...@wipro.com>
> > wrote:
> >
> >>
> >> Hi,
> >>
> >> I am trying to integrate servicemix with Geronimo.
> >> I have written the http-uploader sample application given in the
> tutorial
> >> of
> >> servicemix at below location
> >>
> >>
> http://servicemix.apache.org/7-intermediate-writing-a-http-upload-application.html
> >>
> >> It runs fine with standalone servicemix.
> > ============================
> > But when, I tried to run this
> >> application with servicemix running in Geronimo, it's not working
> >> properly.
> >> When we tried the same on the Servicemix, it shows file save dialog
> box.
> >> The
> >> same is not working, when tried on Geronimo.
> >>
> >> Note: No exception is coming
> >>
> >> I have put the logging statements in the HttpMarshler and HttpHandler
> >> Bean
> >> classes and run it. I have observed that the createMessage() method of
> >> HttpMarshler is getting called. onMessageExchange() method of
> HttpHandler
> >> is
> >> also called. But the sendOut method of HttpMarshler is not getting
> >> called.
> >>
> >> The example is using the http:consumer element in xbean.xml file:
> >> <http:consumer   service="ex:httplistener"
> >>                 endpoint="listenerEndpoint"
> >>                 locationURI="http://0.0.0.0:8192/upload/"
> >>                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> >>                 targetService="ex:httphandler"
> >>                 marshaler="#marshaler" />
> >> And This element is existing in ServiceMix version 3.2 and above only
> (As
> >> mentioned in the tutorial).
> >>
> >> Since this element is new in servicemix, the handling of this element
> is
> >> having some issue when it is used with apache servicemix-web (WAR) in
> >> Geronimo.
> >>
> >> Environment:
> >> =========
> >> Operating System – Windows XP SP2
> >> Servicemix 3.2.1
> >> Geronimo with tomcat version 2.0.2
> >> Java 1.5
> >>
> >> Steps Performed:
> >> ============
> >>
> >> 1.      Downloaded the "apache-servicemix-web-3.2.1.zip" file from
> below
> >> location
> >> and deployed it on Geronimo.
> >>        http://servicemix.apache.org/download.html
> >>
> >> 2.      Installed servicemix-shared library using the apache
> >> servicemix-web
> >> interface's Shared Libraries Menu.
> >> 3.      Installed and started servicemix-http and servicemix-bean
> >> component using
> >> the servicemix-web interface's Components menu.
> >> 4.      Deployed and started the http-uploader-sa service assembly
> using
> >> the same
> >> interface's Service assemblies menu.
> >> 5.      Verified that the service is deployed using below url:
> >>        http://localhost:8080/apache-servicemix-web-3.2.1.zip/jbi/
> >>
> >> 6.      I have written a client as per instruction given in the
> tutorial
> >> and
> >> change the  "action" in the HTML form tag  with the following URL:
> >>        http://localhost:8080/apache-servicemix-web-3.2.1.zip/jbi/upload
> >> 7.      When, I tried to access the application, nothing got displayed
> on
> >> the
> >> browser. i.e.  no response comes back.
> >>
> >> Exception:
> >> ======
> >> There is no Exception comes in any log.
> >>
> >>
> >> Please help me in resolving this problem. I am stuck with this problem
> >> from
> >> long time and have sent so many mails, but have not got any pointers to
> >> solve to this problem.
> >>
> >> Looking forward for your reply at the earliest..!
> >>
> >> Thanks,
> >> Puneet
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Issue-Bug-with-Servicemix-web-3.2.1-%28WAR%29-tp15532283s12049p15532283.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/Re%3A-Issue-Bug-with-Servicemix-web-3.2.1-%28WAR%29-tp16273957s12049p16274120.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


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

Re: Issue/Bug with Servicemix-web 3.2.1 (WAR)

Posted by puneetjain <pu...@wipro.com>.

Hi gnodet,

I have already tried this sample with the modified code on Servicemix
standalone. It was working perfectly fine. That I u have already mentioned
in my mail. The problem is there when I try to run the same service assemply
on Geronimo. I have integrated servicemix with geronimo using the Servicemin
standard web app distribution.
I tried the same on Jboss and tomcat with the same web app distribution. But
it was not working.

Please give me some pointer to resolve these issues.


Thanks,
Puneet


gnodet wrote:
> 
> I've looked at your code and after having fixed a minor issue in the
> HandlerBean (I had a NullPointerException because the content variable was
> null because of the File stuff used to retrieve the name of the
> attachment;
> try fileName = it.next().toString() instead), I've been able to deploy it
> on
> servicemix standalone and when i have submitted the form, my browser asked
> me to save a file (which seems to be the response of the bean).
> The console said that  HTTPMarshaler.sendOut() was called.
> Don't you see the same behavior ?  I haven't tried yet on tomcat, but it
> would be nice to see if you can make it work on ServiceMix standalone
> first.
> 
> On Sun, Feb 17, 2008 at 7:55 PM, puneetjain <pu...@wipro.com>
> wrote:
> 
>>
>> Hi,
>>
>> I am trying to integrate servicemix with Geronimo.
>> I have written the http-uploader sample application given in the tutorial
>> of
>> servicemix at below location
>>
>> http://servicemix.apache.org/7-intermediate-writing-a-http-upload-application.html
>>
>> It runs fine with standalone servicemix. 
> ============================
> But when, I tried to run this
>> application with servicemix running in Geronimo, it's not working
>> properly.
>> When we tried the same on the Servicemix, it shows file save dialog box.
>> The
>> same is not working, when tried on Geronimo.
>>
>> Note: No exception is coming
>>
>> I have put the logging statements in the HttpMarshler and HttpHandler
>> Bean
>> classes and run it. I have observed that the createMessage() method of
>> HttpMarshler is getting called. onMessageExchange() method of HttpHandler
>> is
>> also called. But the sendOut method of HttpMarshler is not getting
>> called.
>>
>> The example is using the http:consumer element in xbean.xml file:
>> <http:consumer   service="ex:httplistener"
>>                 endpoint="listenerEndpoint"
>>                 locationURI="http://0.0.0.0:8192/upload/"
>>                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>                 targetService="ex:httphandler"
>>                 marshaler="#marshaler" />
>> And This element is existing in ServiceMix version 3.2 and above only (As
>> mentioned in the tutorial).
>>
>> Since this element is new in servicemix, the handling of this element is
>> having some issue when it is used with apache servicemix-web (WAR) in
>> Geronimo.
>>
>> Environment:
>> =========
>> Operating System – Windows XP SP2
>> Servicemix 3.2.1
>> Geronimo with tomcat version 2.0.2
>> Java 1.5
>>
>> Steps Performed:
>> ============
>>
>> 1.      Downloaded the "apache-servicemix-web-3.2.1.zip" file from below
>> location
>> and deployed it on Geronimo.
>>        http://servicemix.apache.org/download.html
>>
>> 2.      Installed servicemix-shared library using the apache
>> servicemix-web
>> interface's Shared Libraries Menu.
>> 3.      Installed and started servicemix-http and servicemix-bean
>> component using
>> the servicemix-web interface's Components menu.
>> 4.      Deployed and started the http-uploader-sa service assembly using
>> the same
>> interface's Service assemblies menu.
>> 5.      Verified that the service is deployed using below url:
>>        http://localhost:8080/apache-servicemix-web-3.2.1.zip/jbi/
>>
>> 6.      I have written a client as per instruction given in the tutorial
>> and
>> change the  "action" in the HTML form tag  with the following URL:
>>        http://localhost:8080/apache-servicemix-web-3.2.1.zip/jbi/upload
>> 7.      When, I tried to access the application, nothing got displayed on
>> the
>> browser. i.e.  no response comes back.
>>
>> Exception:
>> ======
>> There is no Exception comes in any log.
>>
>>
>> Please help me in resolving this problem. I am stuck with this problem
>> from
>> long time and have sent so many mails, but have not got any pointers to
>> solve to this problem.
>>
>> Looking forward for your reply at the earliest..!
>>
>> Thanks,
>> Puneet
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Issue-Bug-with-Servicemix-web-3.2.1-%28WAR%29-tp15532283s12049p15532283.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/Re%3A-Issue-Bug-with-Servicemix-web-3.2.1-%28WAR%29-tp16273957s12049p16274120.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.