airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chathuri Wimalasena (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRAVATA-898) [GSoC-2013] New Message Builder and Formatter for Staxon JSON messages
Date Mon, 12 Aug 2013 21:10:49 GMT

    [ https://issues.apache.org/jira/browse/AIRAVATA-898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13737359#comment-13737359
] 

Chathuri Wimalasena commented on AIRAVATA-898:
----------------------------------------------

Hi Shameera,

After applying your patch, I'm getting following error in airavata start up. You need to add
the json dependency in the pom file of server distribution pom as well. 

[INFO] Clustering has been disabled
[ERROR] A ClassNotFoundException error occurred while validating the message builder org.apache.airavata.json.StaxonJSONBuilder
org.apache.axis2.deployment.DeploymentException: A ClassNotFoundException error occurred while
validating the message builder org.apache.airavata.json.StaxonJSONBuilder
	at org.apache.axis2.deployment.DescriptionBuilder$2.run(DescriptionBuilder.java:306)
	at org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:132)
	at org.apache.axis2.deployment.DescriptionBuilder.findAndValidateSelectorClass(DescriptionBuilder.java:291)
	at org.apache.axis2.deployment.DescriptionBuilder.processMessageBuilders(DescriptionBuilder.java:228)
	at org.apache.axis2.deployment.AxisConfigBuilder.processMessageBuilders(AxisConfigBuilder.java:754)
	at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:218)
	at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:703)
	at org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:157)
	at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
	at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1228)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1147)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1043)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4957)
	at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5284)
	at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5279)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
	at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ClassNotFoundException: org.apache.airavata.json.StaxonJSONBuilder
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:171)
	at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
	at org.apache.axis2.util.Loader.loadClass(Loader.java:229)
	at org.apache.axis2.deployment.DescriptionBuilder$2.run(DescriptionBuilder.java:298)
	... 20 more

After adding that you will not get the above error. But you will get the below error. 

[ERROR] de/odysseus/staxon/json/stream/JsonStreamFactory
org.apache.axis2.deployment.DeploymentException: de/odysseus/staxon/json/stream/JsonStreamFactory
	at org.apache.axis2.deployment.AxisConfigBuilder.processMessageFormatters(AxisConfigBuilder.java:742)
	at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:249)
	at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:703)
	at org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:157)
	at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
	at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1228)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1147)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1043)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4957)
	at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5284)
	at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5279)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
	at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NoClassDefFoundError: de/odysseus/staxon/json/stream/JsonStreamFactory
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2398)
	at java.lang.Class.getConstructor0(Class.java:2708)
	at java.lang.Class.newInstance0(Class.java:328)
	at java.lang.Class.newInstance(Class.java:310)
	at org.apache.axis2.deployment.DescriptionBuilder.processMessageFormatters(DescriptionBuilder.java:269)
	at org.apache.axis2.deployment.AxisConfigBuilder.processMessageFormatters(AxisConfigBuilder.java:739)
	... 16 more
Caused by: java.lang.ClassNotFoundException: de.odysseus.staxon.json.stream.JsonStreamFactory
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	... 23 more
[INFO] org.apache.axis2.deployment.DeploymentException: de/odysseus/staxon/json/stream/JsonStreamFactory
Aug 12, 2013 5:05:14 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /axis2 threw load() exception
java.lang.ClassNotFoundException: de.odysseus.staxon.json.stream.JsonStreamFactory
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2398)
	at java.lang.Class.getConstructor0(Class.java:2708)
	at java.lang.Class.newInstance0(Class.java:328)
	at java.lang.Class.newInstance(Class.java:310)
	at org.apache.axis2.deployment.DescriptionBuilder.processMessageFormatters(DescriptionBuilder.java:269)
	at org.apache.axis2.deployment.AxisConfigBuilder.processMessageFormatters(AxisConfigBuilder.java:739)
	at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:249)
	at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:703)
	at org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:157)
	at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
	at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1228)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1147)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1043)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4957)
	at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5284)
	at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5279)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
	at java.lang.Thread.run(Thread.java:680)
Aug 12, 2013 5:05:14 PM org.apache.coyote.AbstractProtocol start

Can you have a look. 
                
> [GSoC-2013] New Message Builder and Formatter for Staxon JSON messages  
> ------------------------------------------------------------------------
>
>                 Key: AIRAVATA-898
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-898
>             Project: Airavata
>          Issue Type: New Feature
>            Reporter: Shameera Rathnayaka
>         Attachments: StaxonJsonBuilder_Formatter_AIRAVATA-898.patch
>
>
> New Message Builder and Formatter to convert incoming and outgoing JSON messages which
is in Staxon standard, to XML and from XML. Builder get the incoming JSON and use Staxon to
build the SOAP envelop. and Formatter convert outgoing OMElement message to JSON using Staxon.

> With this implementation JS clients be able to send and receive JSON message to and from
Airavata Workflow interpreter.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message