Activities

September 14
Nathan Shaw updated LPS-73582.
2:04 PM
July 17
Nathan Shaw updated LPS-73228.
June 30
Nathan Shaw commented on LPS-73197.
June 29
Nathan Shaw commented on LPS-73197.
June 27
Nathan Shaw commented on LPS-73197.
11:46 AM Hey, [~carlos.sierra]. I'm not sure if what I'm seeing is expected behavior or not.  Here are the steps I followed. 1. Deploy DXP SP1 and apply FP21 using the patching-tool 2. Deploy a web service bundle.  I've attached the one I'm using, based on a couple I've seen floating around. 3. The bundle fails to start: {code:java} Logs: 18:37:20,569 INFO [fileinstall-C:/Users/Nathan/deployment/liferay-dxp-hql/osgi/modules][BundleStartStopLogger:38] STOPPED com.nps.activator.jaxws_1.0.0 [532] Gogo: g! dm wtf No missing dependencies found. Please note that the following bundles are in the RESOLVED state: * [532] com.nps.activator.jaxws g! b 532 com.nps.activator.jaxws_1.0.0 [532] Id=532, Status=RESOLVED Data Root=C:\Users\Nathan\deployment\liferay-dxp-hql\osgi\state\org.eclipse.osgi\532\data "No registered services." No services in use. No exported packages Imported packages javax.jws; version="0.0.0" <org.eclipse.osgi_3.10.200.v20150831-0856 [0]> javax.xml.ws; version="0.0.0" <org.eclipse.osgi_3.10.200.v20150831-0856 [0]> org.osgi.framework; version="1.8.0" <org.eclipse.osgi_3.10.200.v20150831-0856 [0]> No fragment bundles No required bundles {code} 4, If I hit /o/soap/calculator?wsdl I see one of two behaviors. Either I get redirected to the home page of the default site, or I get directed to the System Settings -> CXF Endpoints configuration page.  The latter is pretty nice actually but I don't know why it doesn't always happen. I was logged in as omniadmin initially. 5. Add a Systems Settings -> CXF Endpoint with path = /soap. 6. Try starting the bundle again: {code:java} g! start 532 org.osgi.framework.BundleException: Exception in com.nps.activator.jaxws.Activator.start() of bundle com.nps.activator.jaxws. at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:795) at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:724) at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:951) at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:328) at org.eclipse.osgi.container.Module.doStart(Module.java:566) at org.eclipse.osgi.container.Module.start(Module.java:434) at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402) at org.apache.felix.gogo.command.Basic.start(Basic.java:729) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) <snip> Caused by: java.lang.NullPointerException at com.liferay.jaxws.osgi.bridge.Provider.createAndPublishEndpoint(Provider.java:58) at javax.xml.ws.Endpoint.publish(Endpoint.java:240) at com.nps.activator.jaxws.Activator.start(Activator.java:25) at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:774) at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:767) ... 35 more {code} 7. Access /o/soap/calculator?wsdl.  The browser displays "No service was found."  There are no errors in the logs. 8. Add a System Settings - JAX-WS API config with context path = /soap. 9. Now start the bundle. 10. Access /o/soap/calculator?wsdl.  Now the basic wsdl for the service is shown.  There is some documentation on dev.liferay.com about setting this up but it seems like clearer logging in the application would be really useful. [https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/jax-ws-and-jax-rs] Thanks, Nathan
Nathan Shaw updated LPS-73197.
June 21
Pradip A Bhatt and Nathan Shaw are now friends.
9:12 AM
Sushil Patidar and Nathan Shaw are now friends.
9:12 AM
Tim Telcik and Nathan Shaw are now friends.
9:12 AM
Nathan Shaw commented on LPS-73197.
Subscribe to Nathan Shaw's activities. (Opens New Window)