Hi, Pradeep Here jaggery branch[1] I tired, Here Again I build it and test and attaching jar Jira[2] contains patch as well.
Console logs
JAVA_HOME environment variable is set to F:\Program Files\Java\jdk1.6.0_45
CARBON_HOME environment variable is set to
F:\WSO2\git\jaggery\jaggery\server\DISTRI~1\target\JAGGER~1.WSO\JAGGER~1.WSO\carbon\bin\..
[2014-01-14 18:50:01,279] INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} - Starting WSO2
Carbon...
[2014-01-14 18:50:01,282] INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} - Operating System :
Windows 7 6.1, amd64
[2014-01-14 18:50:01,282] INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Home :
F:\Program Files\Java\jdk1.6.0_45\jre
[2014-01-14 18:50:01,282] INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Version :
1.6.0_45
[2014-01-14 18:50:01,282] INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM :
Java HotSpot(TM) 64-Bit Server VM 20.45-b01,Sun Microsystems Inc.
[2014-01-14 18:50:01,283] INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} - Carbon Home :
F:\WSO2\git\jaggery\jaggery\server\DISTRI~1\target\JAGGER~1.WSO\JAGGER~1.WSO\carbon\bin\..
[2014-01-14 18:50:01,283] INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Temp Dir :
F:\WSO2\git\jaggery\jaggery\server\DISTRI~1\target\JAGGER~1.WSO\JAGGER~1.WSO\carbon\bin\..\tmp
[2014-01-14 18:50:01,283] INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} - User :
madhuka, en-US, Asia/Colombo
[2014-01-14 18:50:01,344] WARN
{org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} - The
default keystore (wso2carbon.jks) is currently being used. To maximize
security when deployi
ng to a production environment, configure a new keystore with a unique
password in the production server profile.
[2014-01-14 18:50:02,385] INFO
{org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Configured
Registry in 87ms
[2014-01-14 18:50:02,640] INFO
{org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -
Registry Mode : READ-WRITE
[2014-01-14 18:50:02,878] INFO
{org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} - Carbon
UserStoreMgtDSComponent activated successfully.
[2014-01-14 18:50:07,707] INFO
{org.wso2.carbon.core.CarbonAxisConfigurator} - No modules directory was
found under
F:\WSO2\git\jaggery\jaggery\server\distribution\target\jaggery-0.9.0.ALPHA4.wso2v1
\jaggery-0.9.0.ALPHA4.wso2v1.
[2014-01-14 18:50:08,239] INFO
{org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Deployed
webapp:
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/coffeeshop].File[F:\W
SO2\git\jaggery\jaggery\server\DISTRI~1\target\JAGGER~1.WSO\JAGGER~1.WSO\bin\..\apps\coffeeshop]
[2014-01-14 18:50:08,275] INFO
{org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Deployed
webapp:
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/freshometer].File[F:\
WSO2\git\jaggery\jaggery\server\DISTRI~1\target\JAGGER~1.WSO\JAGGER~1.WSO\bin\..\apps\freshometer]
[2014-01-14 18:50:08,307] INFO
{org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Deployed
webapp:
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/].File[F:\WSO2\git\ja
ggery\jaggery\server\DISTRI~1\target\JAGGER~1.WSO\JAGGER~1.WSO\bin\..\apps\ROOT]
[2014-01-14 18:50:08,344] INFO {JAGGERY.init:js} - Initializing sample
Jaggery app
[2014-01-14 18:50:08,345] INFO
{org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Deployed
webapp:
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/sample].File[F:\WSO2\
git\jaggery\jaggery\server\DISTRI~1\target\JAGGER~1.WSO\JAGGER~1.WSO\bin\..\apps\sample]
[2014-01-14 18:50:08,377] INFO
{org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Deployed
webapp:
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/shout].File[F:\WSO2\g
it\jaggery\jaggery\server\DISTRI~1\target\JAGGER~1.WSO\JAGGER~1.WSO\bin\..\apps\shout]
[2014-01-14 18:50:08,409] INFO
{org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Deployed
webapp:
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/taskmaster].File[F:\W
SO2\git\jaggery\jaggery\server\DISTRI~1\target\JAGGER~1.WSO\JAGGER~1.WSO\bin\..\apps\taskmaster]
[2014-01-14 18:50:08,439] INFO
{org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Deployed
webapp:
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test1].File[F:\WSO2\g
it\jaggery\jaggery\server\DISTRI~1\target\JAGGER~1.WSO\JAGGER~1.WSO\bin\..\apps\test1]
[2014-01-14 18:50:09,124] INFO
{org.wso2.carbon.core.init.CarbonServerManager} - Repository :
F:\WSO2\git\jaggery\jaggery\server\DISTRI~1\target\JAGGER~1.WSO\JAGGER~1.WSO\bin\../
[2014-01-14 18:50:09,145] INFO
{org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -
Permission cache updated for tenant -1234
[2014-01-14 18:50:09,179] INFO
{org.wso2.carbon.core.transports.http.HttpsTransportListener} - HTTPS port
: 9443
[2014-01-14 18:50:09,180] INFO
{org.wso2.carbon.core.transports.http.HttpTransportListener} - HTTP port
: 9763
[2014-01-14 18:50:09,553] INFO
{org.wso2.carbon.core.init.JMXServerManager} - JMX Service URL :
service:jmx:rmi://localhost:11111/jndi/rmi://localhost:9999/jmxrmi
[2014-01-14 18:50:09,554] INFO
{org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - Server
: Jaggery Runtime-0.9.0.ALPHA4.wso2v1
[2014-01-14 18:50:09,554] INFO
{org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - WSO2
Carbon started in 10 sec
[2014-01-14 18:50:09,699] INFO
{org.wso2.carbon.ui.internal.CarbonUIServiceComponent} - Mgt Console URL
: https://10.227.55.140:9443/admin/carbon/
[2014-01-14 18:51:42,826] INFO
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
'[email protected] [-1234]' logged in at [2014-01-14 18:51:42,825+0530]
from IP address 10.227.55.140
[1] https://github.com/wso2/jaggery/tree/0.9.0.ALPHA4.wso2v1
[2] https://wso2.org/jira/browse/JAGGERY-359
On Tue, Jan 14, 2014 at 5:28 PM, Pradeep Fernando <[email protected]> wrote:
> [2014-01-14 17:08:44,299] ERROR
> {org.jaggeryjs.jaggery.core.manager.ModuleManager} - Error while adding
> HostObject : XMLHttpRequest
> org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject
>
> java.lang.ClassNotFoundException:
> org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
>
>
> On Tue, Jan 14, 2014 at 5:14 PM, Pradeep Fernando <[email protected]>wrote:
>
>> Hi madhuka,
>>
>> Little problem. The server doesnt even starts with the patch.. :) may be
>> a version issue. (?)
>>
>> java.lang.ClassNotFoundException:
>> org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>> at java.lang.Class.forName0(Native Method)
>> at java.lang.Class.forName(Class.java:169)
>>
>>
>> On Tue, Jan 14, 2014 at 9:30 AM, Madhuka Udantha <[email protected]>wrote:
>>
>>> Hi Pradeep,
>>>
>>> Your issue is fixed my last sending patched(Attaching here as well),
>>> here I am sending sample app (json type) that matches for your requirement.
>>>
>>> The type, which the response is expected. Allowed types are json, xml
>>> or text[1].
>>>
>>> [1] http://jaggeryjs.org/apidocs/post.jag
>>>
>>>
>>> On Mon, Jan 13, 2014 at 10:42 AM, Madhuka Udantha <[email protected]>wrote:
>>>
>>>> Hi Pradeep,
>>>>
>>>> Can you check provided patched, with sample jag file(app).
>>>>
>>>>
>>>> On Mon, Jan 13, 2014 at 9:44 AM, Pradeep Fernando <[email protected]>wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Observed the $subject. (NPE) Madhuka is working on it to fix it. Hope
>>>>> this is not a spec violation. The same thing worked fine with
>>>>> curl/google-rest client.
>>>>>
>>>>> --Pradeep
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Madhuka* Udantha
>>>> Senior Software Engineer
>>>> Development Technologies
>>>> WSO2 Inc. : http://wso2.com
>>>>
>>>> *Mobile*: +94774066336
>>>> *Blog*: http://madhukaudantha.blogspot.com/
>>>>
>>>
>>>
>>>
>>> --
>>> *Madhuka* Udantha
>>> Senior Software Engineer
>>> Development Technologies
>>> WSO2 Inc. : http://wso2.com
>>>
>>> *Mobile*: +94774066336
>>> *Blog*: http://madhukaudantha.blogspot.com/
>>>
>>
>>
>>
>> --
>> *Pradeep Fernando*
>> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>>
>> blog: http://pradeepfernando.blogspot.com
>> m: +94776603662
>>
>
>
>
> --
> *Pradeep Fernando*
> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>
> blog: http://pradeepfernando.blogspot.com
> m: +94776603662
>
--
*Madhuka* Udantha
Senior Software Engineer
Development Technologies
WSO2 Inc. : http://wso2.com
*Mobile*: +94774066336
*Blog*: http://madhukaudantha.blogspot.com/
org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar
Description: application/java-archive
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
