-
1. Re: Example cxf-wsdl-first don't work
ffang Nov 16, 2010 6:13 AM (in response to stephane_stephane.pain)Hi,
Could you please use the latest released 4.3.0-fuse-02-00.
There's a known issue for 4.3.0-fuse-00-00, please see the discussion[1] to get more details.
http://fusesource.com/forums/thread.jspa?messageID=7579ᶛ
Freeman
-
2. Re: Example cxf-wsdl-first don't work
stephane_stephane.pain Nov 16, 2010 7:45 AM (in response to stephane_stephane.pain)Hi
Thank you for your answer. I have downlaoded the latest release version but when I made a mvn install for the example, Maven can't find the good pom.
I use the repository http://repo.open.iona.com/maven2/org/apache/servicemix/features/features/ where the version 4.3.0-fuse-02-00 is not present.
Which maven repository should I used ?
Thank you
-
3. Re: Example cxf-wsdl-first don't work
ffang Nov 16, 2010 8:06 AM (in response to stephane_stephane.pain)Hi,
You encounter another known issue, see the discussion details and workaround from
http://fusesource.com/forums/thread.jspa?messageID=8284⁜
Freeman
-
4. Re: Example cxf-wsdl-first don't work
stephane_stephane.pain Nov 16, 2010 9:06 AM (in response to ffang)After install the cxf-wsdl-first example with Fuse ESB version 4.3.0-fuse-02-00, the problem is the same.
The osgi:install works but when I try to access to the wsdl by the url http://localhost:8092/PersonService?wsdl, IE says it can't display the page.
-
5. Re: Example cxf-wsdl-first don't work
ffang Nov 16, 2010 9:31 AM (in response to stephane_stephane.pain)Hi,
I just test it from my side, it works.
How about you try
http://your_machine_ip:8092/PersonService/?wsdl
but not
http://localhost:8092/PersonService?wsdl
from your browser to see if it helps
Also, could you run the java code client described in the README.txt to see if it's successful.
When you do
osgi:install -s mvn:org.apache.servicemix.examples.cxf-wsdl-first/wsdl-first-cxf-sa/4.3.0-fuse-02-00/zip
and then use osgi:list
you should see something like at the end of the output.
mvn:org.apache.servicemix.examples.cxf-wsdl-first/wsdl-first-cxf-sa/4.3.0-fuse-02-00/zip
Could you check $SMX_HOME/data/log/servicemix.log to see if there's any exceptions?
Freeman
-
6. Re: Example cxf-wsdl-first don't work
stephane_stephane.pain Nov 16, 2010 10:02 AM (in response to ffang)Hi,
I don't understand why it doesn't work.
The 2 urls don't work.
after the osgi:install if I use osgi:list the last line is :
mvn:org.apache.servicemix.examples.cxf-wsdl-first/wsdl-first-cxf-sa/4.3.0-fuse-02-00/zip
I attach the log file but there is no exceptions.
If I run the java code client with mvn compile exec:java, I have
Building ServiceMix :: Samples :: WSDL first :: Client
task-segment: compile, exec:java
dependency:copy {execution: copy-legal}
Configured Artifact: org.apache.servicemix.legal:legal:1.0:xml
org.apache.servicemix.legal:legal:1.0:xml already exists in C:\Program Files\apache-servicemix-4.3.0-fuse-02-00\examples\cxf-wsdl-first\client\target\legal
Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
Setting property: velocimacro.messages.on => 'false'.
Setting property: resource.loader => 'classpath'.
Setting property: resource.manager.logwhenfound => 'false'.
remote-resources:process {execution: default}
resources:resources {execution: default-resources}
Using 'UTF-8' encoding to copy filtered resources.
compiler:compile {execution: default-compile}
Nothing to compile - all classes are up to date
No goals needed for project - skipping
exec:java {execution: default-cli}
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:832)
at org.apache.servicemix.samples.wsdl_first.Client.sendRequest(Client.java:41)
at org.apache.servicemix.samples.wsdl_first.Client.main(Client.java:30)
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.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:283)
at java.lang.Thread.run(Thread.java:619)
Finished at: Tue Nov 16 15:59:53 CET 2010
I think, this is wired because after the osgi:install, the port 8092 is not use on my computer (I use the netstat command) and I think, normaly, a java.exe must be listening on this port.
-
7. Re: Example cxf-wsdl-first don't work
stephane_stephane.pain Nov 16, 2010 10:02 AM (in response to stephane_stephane.pain)Thank you for your help
-
8. Re: Example cxf-wsdl-first don't work
ffang Nov 16, 2010 10:18 AM (in response to stephane_stephane.pain)Hi,
port 8092 not start listening means the sa not installed correctly.
I believe you can find some exception in data/log/servicemix.log, could you append it?
Freeman
-
9. Re: Example cxf-wsdl-first don't work
ffang Nov 16, 2010 10:22 AM (in response to ffang)Also I notice from
38 Active 60 mvn:org.apache.servicemix.examples.cxf-wsdl-first/wsdl-first-cxf-sa/4.3.0-fuse-02-00/zip
that the SA bundle is 38, this isn't correct, by default 4.3.0-fuse-02-00 should install 178 bundles when start it, so the wsdl-first-cxf-sa id should be 179.
Did you change the default configuration?
Freeman
-
10. Re: Example cxf-wsdl-first don't work
stephane_stephane.pain Nov 16, 2010 10:23 AM (in response to ffang)Hi,
This is the logs during the osgi:install, osgi:list and the acces to the url.
16 nov. 2010 15:51:29 org.apache.karaf.main.SimpleFileLock lock
INFO: locking
15:51:29,355 | DEBUG | Event Dispatcher | configadmin | ? ? | 5 - org.apache.felix.configadmin - 1.2.4 | BundleEvent STARTED
15:51:29,980 | WARN | rint Extender: 2 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.features.core is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0))
15:51:29,996 | WARN | rint Extender: 3 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.admin.core is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0))
15:51:29,996 | WARN | rint Extender: 2 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.shell.osgi is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))
15:51:30,012 | WARN | rint Extender: 2 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.admin.command is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))
15:51:30,027 | WARN | rint Extender: 2 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.shell.log is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0)), (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))
15:51:30,262 | WARN | rint Extender: 3 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.management is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0)), (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0))
15:51:30,277 | WARN | rint Extender: 3 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.shell.console is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0))
15:51:30,277 | WARN | rint Extender: 3 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.jaas.modules is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0)), (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/jaas/v1.0.0))
15:51:30,340 | WARN | rint Extender: 2 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.shell.dev is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))
15:51:30,355 | WARN | rint Extender: 2 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.shell.packages is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))
15:51:30,371 | INFO | Event Dispatcher | jmx | ? ? | 26 - org.apache.aries.jmx - 0.2.0.incubating | Starting JMX OSGi agent
15:51:30,449 | WARN | rint Extender: 2 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.shell.ssh is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0)), (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0)), (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))
15:51:30,465 | INFO | Event Dispatcher | jmx | ? ? | 26 - org.apache.aries.jmx - 0.2.0.incubating | Registering MBean with ObjectName osgi.core:service=permissionadmin,version=1.2 for service with service.id
15:51:30,480 | INFO | Event Dispatcher | jmx | ? ? | 26 - org.apache.aries.jmx - 0.2.0.incubating | Registering MBean with ObjectName osgi.compendium:service=cm,version=1.3 for service with service.id
15:51:30,496 | WARN | rint Extender: 2 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.jaas.modules is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0))
15:51:30,605 | WARN | rint Extender: 2 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.shell.commands is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))
15:51:30,605 | WARN | rint Extender: 2 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.shell.log is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))
15:51:30,605 | WARN | rint Extender: 2 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.management is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0))
15:51:30,605 | WARN | rint Extender: 2 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.shell.ssh is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0)), (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))
15:51:30,621 | WARN | rint Extender: 3 | BlueprintContainerImpl | container.BlueprintContainerImpl 252 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle org.apache.karaf.features.command is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))
15:51:31,808 | INFO | rint Extender: 3 | SecurityUtils | e.sshd.common.util.SecurityUtils 80 | 29 - sshd-core - 0.4.0 | BouncyCastle not registered, using the default JCE provider
15:51:32,121 | INFO | JMX OSGi Agent | jmx | ? ? | 26 - org.apache.aries.jmx - 0.2.0.incubating | Registering org.osgi.jmx.framework.FrameworkMBean to MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@c5c3ac with name osgi.core:type=framework,version=1.5
15:51:32,121 | INFO | JMX OSGi Agent | jmx | ? ? | 26 - org.apache.aries.jmx - 0.2.0.incubating | Registering org.osgi.jmx.framework.BundleStateMBean to MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@c5c3ac with name osgi.core:type=bundleState,version=1.5
15:51:32,121 | INFO | JMX OSGi Agent | jmx | ? ? | 26 - org.apache.aries.jmx - 0.2.0.incubating | Registering org.osgi.jmx.framework.PackageStateMBean to MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@c5c3ac with name osgi.core:type=packageState,version=1.5
15:51:32,121 | INFO | JMX OSGi Agent | jmx | ? ? | 26 - org.apache.aries.jmx - 0.2.0.incubating | Registering org.osgi.jmx.framework.ServiceStateMBean to MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@c5c3ac with name osgi.core:type=serviceState,version=1.5
15:51:32,121 | INFO | JMX OSGi Agent | jmx | ? ? | 26 - org.apache.aries.jmx - 0.2.0.incubating | Registering org.osgi.jmx.service.cm.ConfigurationAdminMBean to MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@c5c3ac with name osgi.compendium:service=cm,version=1.3
15:51:32,121 | INFO | JMX OSGi Agent | jmx | ? ? | 26 - org.apache.aries.jmx - 0.2.0.incubating | Registering org.osgi.jmx.service.permissionadmin.PermissionAdminMBean to MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@c5c3ac with name osgi.core:service=permissionadmin,version=1.2
We see no exception but I see nothing about wsdl or cxf
-
11. Re: Example cxf-wsdl-first don't work
ffang Nov 16, 2010 10:30 AM (in response to stephane_stephane.pain)Hi,
Did you change any configuration from the kit or are you using a brand new 4.3.0-fuse-02-00?
I can't see any JBI component related bundles get installed, this can absolutely cause cxf-wsdl-first example doesn't work
Could you post all output for
osgi:list ?
Freeman
-
12. Re: Example cxf-wsdl-first don't work
stephane_stephane.pain Nov 16, 2010 10:33 AM (in response to ffang)Hi,
No, I downloaded the zip and unzip it. After, I try to install the example.
This is the result for th osgi:list
START LEVEL 100
ID State Blueprint Level Name
OSGi System Bundle (3.6.0.v20100517)
OPS4J Pax Logging - API (1.5.3)
OPS4J Pax Logging - Service (1.5.3)
Apache Felix Configuration Admin Service (1.2.4)
Apache Felix File Install (3.0.2)
Apache Aries Blueprint Bundle (0.2.0.incubating)
Apache Karaf :: Features Core (2.0.0.fuse-01-00)
Apache Karaf :: Admin Core (2.0.0.fuse-01-00)
Apache Karaf :: Shell OSGi Commands (2.0.0.fuse-01-00)
Apache Karaf :: Management (2.0.0.fuse-01-00)
Apache Karaf :: Admin Command (2.0.0.fuse-01-00)
Apache Karaf :: Shell Log Commands (2.0.0.fuse-01-00)
Apache Aries JMX Blueprint Bundle (0.2.0.incubating)
Apache Karaf :: Admin Management (2.0.0.fuse-01-00)
Apache Karaf :: Shell Console (2.0.0.fuse-01-00)
Apache Karaf :: JAAS Modules (2.0.0.fuse-01-00)
Apache Karaf :: Blueprint Deployer (2.0.0.fuse-01-00)
Apache Karaf :: Shell Development Commands (2.0.0.fuse-01-00)
Apache Karaf :: Features Management (2.0.0.fuse-01-00)
Apache Felix Gogo Shell Runtime (0.4.0)
Apache Karaf :: Shell PackageAdmin Commands (2.0.0.fuse-01-00)
Apache Karaf :: Shell SSH (2.0.0.fuse-01-00)
Apache Karaf :: JAAS Config (2.0.0.fuse-01-00)
Apache Karaf :: Spring Deployer (2.0.0.fuse-01-00)
Apache Aries JMX Bundle (0.2.0.incubating)
Apache Karaf :: Shell Various Commands (2.0.0.fuse-01-00)
Apache Mina SSHD :: Core (0.4.0)
Apache Karaf :: Features Command (2.0.0.fuse-01-00)
Apache Karaf :: Features Deployer (2.0.0.fuse-01-00)
Apache ServiceMix NMR Example:: Exchange Listener (1.3.0.fuse-01-00)
Apache ServiceMix NMR Example:: Endpoint Listener (1.3.0.fuse-01-00)
mvn:org.apache.servicemix.examples.cxf-wsdl-first/wsdl-first-cxf-sa/4.3.0-fuse-02-00/zip
-
13. Re: Example cxf-wsdl-first don't work
ffang Nov 16, 2010 10:38 AM (in response to stephane_stephane.pain)Hi,
Ok the osgi:list output verified what I guess, all JBI component not installed, this cause cxf-wsdl-fist example doesn't work.
Btw, where you download 4.3.0-fuse-02-00 kit? what's your platform and jdk version?
Freeman
-
14. Re: Example cxf-wsdl-first don't work
stephane_stephane.pain Nov 16, 2010 10:44 AM (in response to ffang)Hi,
I downlaod it from http://fusesource.com/product_download/fuse-esb-apache-servicemix/4-3-0-fuse-02-00/windows/ but it seems that the url sometimes don't work.
I am on Windows XP with a JDK 1.6