[Dev] Error with running web app on Stratos Live

2012-03-29 Thread Kasun Perera
Hi

I have deployed web app on Stratos Live I can run the web app there. But
When I go to a particular a jsp page that calling to external
libraris(Stanforsparser.jar, PdfBox.jar) through servelet, gives me a blank
page.  I can run this webapp in my local Stratoes Application server
and mentioned jsp page appears without any problem

I'm using tomcat 7.0.22 for deploy the web app locally, and .war file is
uploaded to Stratos Live.

I found this error log on the Stratos Live server.

Server Log

[WSO2 Stratos Application Server] [2012-03-28 23:40:48,627] @
karsha.opensource.lk [11051] [WSO2 Stratos Application Server]ERROR
{org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
karsha.opensource.lk/webapps/KarshaMarkUp].[jsp]}
- Servlet.service() for servlet jsp threw exception
{org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
karsha.opensource.lk/webapps/KarshaMarkUp].[jsp
]



I found this log information is not enough to find out what is the error.
Is there a way I can get full error log on Stratos live Server?

Or What would cause this error?
Thanks
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error with running web app on Stratos Live

2012-04-01 Thread Kasun Perera
On Sun, Apr 1, 2012 at 8:49 AM, Supun Malinga  wrote:

> Hi Kasun,
>
> On Fri, Mar 30, 2012 at 1:28 PM, Kasun Perera wrote:
>
>> Hi supun
>>
>> About reading files- I can Access other tables and read data on data
>> servise server?
>> What I'm doing here is read a PDF file that stored as a Blob and extract
>> the phrases from it, I'm not writing anything to the files.
>>
>
>> I can read the PDF file from database and show it on the webpage, Only
>> thing is can't extract the phrases from it.
>>
>
> Can you mention exact steps for extracting phrases in your webapp.. (from
> the webapp UI)
>


when go go to this URL
http://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaMarkUp/login
you can login with usrname-admin paswd-admin

then on leftside menu go to Select Doc submenu
then you can select a document from drop down menu and press Extract phrases.
It will show a blank page but it should show extracted phrses in a table.

The document names for above dropdown List comes from stratos database, if
you go to
http://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaMarkUp/classify
the
content is comming from the database. So i think database connection is
working

>
> Also can you point to the stratos DSS database in your local webapp and
> see if it's working?
>

I havent installed Stratos DSS localy I ll install and try that
or can use jdbc:mysql://
rss1.stratoslive.wso2.com/karshamarkuptool_karsha_opensource_lk URL
to access database direcly from local setup? using this URL directly from
local set up is not working for any functionality

>
>> here is my project folder
>> https://docs.google.com/open?id=0B5A0W5SUykQqbGc0Vlg5UDJSTHFiTzdIV0hGZEZnQQ
>>
>> If you want to run here is the login details on Stratoes Live server
>> username- kas...@karsha.opensource.lk
>> passwd-  Haknrr4k
>>
>> thanks
>>
>>
>>> Hi Supun
>>> I Have attached .war file.  you want the project folder?
>>>  database is at dataservise server.
>>>
>>>
>>>
>>> thanks
>>>
>>>
>>>
 On Fri, Mar 30, 2012 at 12:02 PM, Supun Malinga wrote:

> Hi,
>
> Looks like you have some file conversion there. From where these files
> are being read?. If it needs to access the server file system, security
> manager will block this.
> Are you running your local setup with security manager enabled?
>
> thanks,
>
>
> On Fri, Mar 30, 2012 at 11:50 AM, Kasun Perera 
> wrote:
>
>> Hi Supun
>>
>> I'm getting this error on webpage now when running my web app on
>> StratoesLive App server, but I'm not getting this error on the local App
>> server. A bug? Although I have debugged on my local machine I can't find
>> the error.
>>
>> code- http://paste.org/47396
>>
>> type Exception report
>>
>> message
>>
>> description The server encountered an internal error () that
>> prevented it from fulfilling this request.
>>
>> exception
>>
>> java.lang.NullPointerException
>>  controler.ControlerServelet.pdfDocToSentence(ControlerServelet.java:755)
>>   // I have mentioned thses two lines
>>  controler.ControlerServelet.doPost(ControlerServelet.java:585)
>>//   in
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>>  sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source)
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>  java.lang.reflect.Method.invoke(Method.java:597)
>> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273)
>>
>> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:270)
>> java.security.AccessController.doPrivileged(Native Method)
>>  javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>>
>> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:305)
>>
>> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
>> note The full stack trace of the root cause is available in the
>> Apache Tomcat/7.0.14 logs.
>>
>>
>>
>> On Thu, Mar 29, 2012 at 4:52 PM, Kasun Perera 
>> wrote:
>>
>>> Hi Supun
>>>
>>> Yes I have the external libraries in the META-INF/lib of my
>>> application. I have used the same .war file in locally running App 
>>> server,
>>> There I don't have this problem
>>>
>>>  The log file is attached
>>>
>>> Thanks
>>>
>>>
>>> On Thu, Mar 29, 2012 at 4:39 PM, Supun Malinga wrote:
>>>
 Hi Kasun,

 On Thu, Mar 29, 2012 at 4:28 PM, Kasun Perera >>> > wrote:

> Hi
>
> I have deployed web app on Stratos Live I can run the web app
> there. But When I go to a particular a jsp page that calling to 
> external
> libraris(Stanforsp

Re: [Dev] Error with running web app on Stratos Live

2012-03-29 Thread Supun Malinga
Hi Kasun,

On Thu, Mar 29, 2012 at 4:28 PM, Kasun Perera  wrote:

> Hi
>
> I have deployed web app on Stratos Live I can run the web app there. But
> When I go to a particular a jsp page that calling to external
> libraris(Stanforsparser.jar, PdfBox.jar) through servelet, gives me a blank
> page.  I can run this webapp in my local Stratoes Application server
> and mentioned jsp page appears without any problem
>
Here you need to have the external libraries in the META-INF/lib directory
of your webapp.


>  I'm using tomcat 7.0.22 for deploy the web app locally, and .war file is
> uploaded to Stratos Live.
>
> I found this error log on the Stratos Live server.
>
> Server Log
>
> [WSO2 Stratos Application Server] [2012-03-28 23:40:48,627] @
> karsha.opensource.lk [11051] [WSO2 Stratos Application Server]ERROR
> {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
> karsha.opensource.lk/webapps/KarshaMarkUp].[jsp]}
> - Servlet.service() for servlet jsp threw exception
> {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
> karsha.opensource.lk/webapps/KarshaMarkUp].[jsp
> ]
>
>
>
> I found this log information is not enough to find out what is the error.
> Is there a way I can get full error log on Stratos live Server?
>
You can see the log for your tenant from Monitor > System Logs.

 Or What would cause this error?
>
There could be a permission issue if your webapp tries to modify/access any
files in the system. Other than that it should work. Please send us the
logs you got from the log viewer.

thanks,


> Thanks
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Supun Malinga,

Software Engineer,
WSO2 Inc.
http://wso2.com
http://wso2.org
email - sup...@wso2.com 
mobile - 071 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error with running web app on Stratos Live

2012-03-29 Thread Kasun Perera
Hi Supun

I'm getting this error on webpage now when running my web app on
StratoesLive App server, but I'm not getting this error on the local App
server. A bug? Although I have debugged on my local machine I can't find
the error.

code- http://paste.org/47396

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

java.lang.NullPointerException
 controler.ControlerServelet.pdfDocToSentence(ControlerServelet.java:755)
// I have mentioned thses two lines
 controler.ControlerServelet.doPost(ControlerServelet.java:585)
   //   in
 javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 java.lang.reflect.Method.invoke(Method.java:597)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273)
 org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:270)
java.security.AccessController.doPrivileged(Native Method)
 javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:305)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
note The full stack trace of the root cause is available in the Apache
Tomcat/7.0.14 logs.



On Thu, Mar 29, 2012 at 4:52 PM, Kasun Perera  wrote:

> Hi Supun
>
> Yes I have the external libraries in the META-INF/lib of my application. I
> have used the same .war file in locally running App server, There I don't
> have this problem
>
> The log file is attached
>
> Thanks
>
>
> On Thu, Mar 29, 2012 at 4:39 PM, Supun Malinga  wrote:
>
>> Hi Kasun,
>>
>> On Thu, Mar 29, 2012 at 4:28 PM, Kasun Perera wrote:
>>
>>> Hi
>>>
>>> I have deployed web app on Stratos Live I can run the web app there. But
>>> When I go to a particular a jsp page that calling to external
>>> libraris(Stanforsparser.jar, PdfBox.jar) through servelet, gives me a blank
>>> page.  I can run this webapp in my local Stratoes Application server
>>> and mentioned jsp page appears without any problem
>>>
>> Here you need to have the external libraries in the META-INF/lib
>> directory of your webapp.
>>
>>
>>>  I'm using tomcat 7.0.22 for deploy the web app locally, and .war file
>>> is uploaded to Stratos Live.
>>>
>>> I found this error log on the Stratos Live server.
>>>
>>> Server Log
>>>
>>> [WSO2 Stratos Application Server] [2012-03-28 23:40:48,627] @
>>> karsha.opensource.lk [11051] [WSO2 Stratos Application Server]ERROR
>>> {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
>>> karsha.opensource.lk/webapps/KarshaMarkUp].[jsp]}
>>> - Servlet.service() for servlet jsp threw exception
>>> {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
>>> karsha.opensource.lk/webapps/KarshaMarkUp].[jsp
>>> ]
>>>
>>>
>>>
>>> I found this log information is not enough to find out what is the
>>> error. Is there a way I can get full error log on Stratos live Server?
>>>
>> You can see the log for your tenant from Monitor > System Logs.
>>
>>  Or What would cause this error?
>>>
>> There could be a permission issue if your webapp tries to modify/access
>> any files in the system. Other than that it should work. Please send us the
>> logs you got from the log viewer.
>>
>> thanks,
>>
>>
>>> Thanks
>>>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> http://wso2.org
>> email - sup...@wso2.com 
>> mobile - 071 56 91 321
>>
>>
>
>
> --
> Regards
>
> Kasun Perera
>
>


-- 
Regards

Kasun Perera
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error with running web app on Stratos Live

2012-03-29 Thread Supun Malinga
Hi,

Looks like you have some file conversion there. From where these files are
being read?. If it needs to access the server file system, security manager
will block this.
Are you running your local setup with security manager enabled?

thanks,

On Fri, Mar 30, 2012 at 11:50 AM, Kasun Perera  wrote:

> Hi Supun
>
> I'm getting this error on webpage now when running my web app on
> StratoesLive App server, but I'm not getting this error on the local App
> server. A bug? Although I have debugged on my local machine I can't find
> the error.
>
> code- http://paste.org/47396
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> java.lang.NullPointerException
>  controler.ControlerServelet.pdfDocToSentence(ControlerServelet.java:755)
>   // I have mentioned thses two lines
>  controler.ControlerServelet.doPost(ControlerServelet.java:585)
>  //   in
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>  sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source)
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  java.lang.reflect.Method.invoke(Method.java:597)
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273)
>  org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:270)
> java.security.AccessController.doPrivileged(Native Method)
>  javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:305)
>
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
> note The full stack trace of the root cause is available in the Apache
> Tomcat/7.0.14 logs.
>
>
>
> On Thu, Mar 29, 2012 at 4:52 PM, Kasun Perera wrote:
>
>> Hi Supun
>>
>> Yes I have the external libraries in the META-INF/lib of my application.
>> I have used the same .war file in locally running App server, There I don't
>> have this problem
>>
>>  The log file is attached
>>
>> Thanks
>>
>>
>> On Thu, Mar 29, 2012 at 4:39 PM, Supun Malinga  wrote:
>>
>>> Hi Kasun,
>>>
>>> On Thu, Mar 29, 2012 at 4:28 PM, Kasun Perera wrote:
>>>
 Hi

 I have deployed web app on Stratos Live I can run the web app there.
 But When I go to a particular a jsp page that calling to external
 libraris(Stanforsparser.jar, PdfBox.jar) through servelet, gives me a blank
 page.  I can run this webapp in my local Stratoes Application server
 and mentioned jsp page appears without any problem

>>> Here you need to have the external libraries in the META-INF/lib
>>> directory of your webapp.
>>>
>>>
  I'm using tomcat 7.0.22 for deploy the web app locally, and .war file
 is uploaded to Stratos Live.

 I found this error log on the Stratos Live server.

 Server Log

 [WSO2 Stratos Application Server] [2012-03-28 23:40:48,627] @
 karsha.opensource.lk [11051] [WSO2 Stratos Application Server]ERROR
 {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
 karsha.opensource.lk/webapps/KarshaMarkUp].[jsp]}
 - Servlet.service() for servlet jsp threw exception
 {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
 karsha.opensource.lk/webapps/KarshaMarkUp].[jsp
 ]



 I found this log information is not enough to find out what is the
 error. Is there a way I can get full error log on Stratos live Server?

>>> You can see the log for your tenant from Monitor > System Logs.
>>>
>>>  Or What would cause this error?

>>> There could be a permission issue if your webapp tries to modify/access
>>> any files in the system. Other than that it should work. Please send us the
>>> logs you got from the log viewer.
>>>
>>> thanks,
>>>
>>>
 Thanks




 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>> email - sup...@wso2.com 
>>> mobile - 071 56 91 321
>>>
>>>
>>
>>
>> --
>> Regards
>>
>> Kasun Perera
>>
>>
>
>
> --
> Regards
>
> Kasun Perera
>
>


-- 
Supun Malinga,

Software Engineer,
WSO2 Inc.
http://wso2.com
http://wso2.org
email - sup...@wso2.com 
mobile - 071 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error with running web app on Stratos Live

2012-03-29 Thread Supun Malinga
Please attach the webapp if possible.

thanks,

On Fri, Mar 30, 2012 at 12:02 PM, Supun Malinga  wrote:

> Hi,
>
> Looks like you have some file conversion there. From where these files are
> being read?. If it needs to access the server file system, security manager
> will block this.
> Are you running your local setup with security manager enabled?
>
> thanks,
>
>
> On Fri, Mar 30, 2012 at 11:50 AM, Kasun Perera wrote:
>
>> Hi Supun
>>
>> I'm getting this error on webpage now when running my web app on
>> StratoesLive App server, but I'm not getting this error on the local App
>> server. A bug? Although I have debugged on my local machine I can't find
>> the error.
>>
>> code- http://paste.org/47396
>>
>> type Exception report
>>
>> message
>>
>> description The server encountered an internal error () that prevented it
>> from fulfilling this request.
>>
>> exception
>>
>> java.lang.NullPointerException
>>  controler.ControlerServelet.pdfDocToSentence(ControlerServelet.java:755)
>>   // I have mentioned thses two lines
>>  controler.ControlerServelet.doPost(ControlerServelet.java:585)
>>//   in
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>>  sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source)
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>  java.lang.reflect.Method.invoke(Method.java:597)
>> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273)
>>  org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:270)
>> java.security.AccessController.doPrivileged(Native Method)
>>  javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:305)
>>
>> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
>> note The full stack trace of the root cause is available in the Apache
>> Tomcat/7.0.14 logs.
>>
>>
>>
>> On Thu, Mar 29, 2012 at 4:52 PM, Kasun Perera wrote:
>>
>>> Hi Supun
>>>
>>> Yes I have the external libraries in the META-INF/lib of my application.
>>> I have used the same .war file in locally running App server, There I don't
>>> have this problem
>>>
>>>  The log file is attached
>>>
>>> Thanks
>>>
>>>
>>> On Thu, Mar 29, 2012 at 4:39 PM, Supun Malinga  wrote:
>>>
 Hi Kasun,

 On Thu, Mar 29, 2012 at 4:28 PM, Kasun Perera wrote:

> Hi
>
> I have deployed web app on Stratos Live I can run the web app there.
> But When I go to a particular a jsp page that calling to external
> libraris(Stanforsparser.jar, PdfBox.jar) through servelet, gives me a 
> blank
> page.  I can run this webapp in my local Stratoes Application server
> and mentioned jsp page appears without any problem
>
 Here you need to have the external libraries in the META-INF/lib
 directory of your webapp.


>  I'm using tomcat 7.0.22 for deploy the web app locally, and .war
> file is uploaded to Stratos Live.
>
> I found this error log on the Stratos Live server.
>
> Server Log
>
> [WSO2 Stratos Application Server] [2012-03-28 23:40:48,627] @
> karsha.opensource.lk [11051] [WSO2 Stratos Application Server]ERROR
> {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
> karsha.opensource.lk/webapps/KarshaMarkUp].[jsp]}
> - Servlet.service() for servlet jsp threw exception
> {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
> karsha.opensource.lk/webapps/KarshaMarkUp].[jsp
> ]
>
>
>
> I found this log information is not enough to find out what is the
> error. Is there a way I can get full error log on Stratos live Server?
>
 You can see the log for your tenant from Monitor > System Logs.

  Or What would cause this error?
>
 There could be a permission issue if your webapp tries to modify/access
 any files in the system. Other than that it should work. Please send us the
 logs you got from the log viewer.

 thanks,


> Thanks
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Supun Malinga,

 Software Engineer,
 WSO2 Inc.
 http://wso2.com
 http://wso2.org
 email - sup...@wso2.com 
 mobile - 071 56 91 321


>>>
>>>
>>> --
>>> Regards
>>>
>>> Kasun Perera
>>>
>>>
>>
>>
>> --
>> Regards
>>
>> Kasun Perera
>>
>>
>
>
> --
> Supun Malinga,
>
> Software Engineer,
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
> email - sup...@wso2.com 
> mobile - 071 56 91 321
>
>


-- 
Supun Malinga,

Software Engineer,
WSO2 Inc.
http://wso2.com
http://wso2.

Re: [Dev] Error with running web app on Stratos Live

2012-03-29 Thread Kasun Perera
On Fri, Mar 30, 2012 at 12:02 PM, Supun Malinga  wrote:

> Hi,
>
> Looks like you have some file conversion there. From where these files are
> being read?. If it needs to access the server file system, security manager
> will block this.
> Are you running your local setup with security manager enabled?
>
> thanks,
>
>
Hi Supun

The files are Stored in Dataservise Server as BLOB. I'm accessing these
files from dataservise database. Locally I have setup MySql database to
read files.
this is how I read them. http://paste.org/47398

Im getting the files from database, will security manager block this? then
How to read files from database.
Where I can find this security manager enable/disable function on local
setup?

Thanks


> On Fri, Mar 30, 2012 at 11:50 AM, Kasun Perera wrote:
>
>> Hi Supun
>>
>> I'm getting this error on webpage now when running my web app on
>> StratoesLive App server, but I'm not getting this error on the local App
>> server. A bug? Although I have debugged on my local machine I can't find
>> the error.
>>
>> code- http://paste.org/47396
>>
>> type Exception report
>>
>> message
>>
>> description The server encountered an internal error () that prevented it
>> from fulfilling this request.
>>
>> exception
>>
>> java.lang.NullPointerException
>>  controler.ControlerServelet.pdfDocToSentence(ControlerServelet.java:755)
>>   // I have mentioned thses two lines
>>  controler.ControlerServelet.doPost(ControlerServelet.java:585)
>>//   in
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>>  sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source)
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>  java.lang.reflect.Method.invoke(Method.java:597)
>> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273)
>>  org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:270)
>> java.security.AccessController.doPrivileged(Native Method)
>>  javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:305)
>>
>> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
>> note The full stack trace of the root cause is available in the Apache
>> Tomcat/7.0.14 logs.
>>
>>
>>
>> On Thu, Mar 29, 2012 at 4:52 PM, Kasun Perera wrote:
>>
>>> Hi Supun
>>>
>>> Yes I have the external libraries in the META-INF/lib of my application.
>>> I have used the same .war file in locally running App server, There I don't
>>> have this problem
>>>
>>>  The log file is attached
>>>
>>> Thanks
>>>
>>>
>>> On Thu, Mar 29, 2012 at 4:39 PM, Supun Malinga  wrote:
>>>
 Hi Kasun,

 On Thu, Mar 29, 2012 at 4:28 PM, Kasun Perera wrote:

> Hi
>
> I have deployed web app on Stratos Live I can run the web app there.
> But When I go to a particular a jsp page that calling to external
> libraris(Stanforsparser.jar, PdfBox.jar) through servelet, gives me a 
> blank
> page.  I can run this webapp in my local Stratoes Application server
> and mentioned jsp page appears without any problem
>
 Here you need to have the external libraries in the META-INF/lib
 directory of your webapp.


>  I'm using tomcat 7.0.22 for deploy the web app locally, and .war
> file is uploaded to Stratos Live.
>
> I found this error log on the Stratos Live server.
>
> Server Log
>
> [WSO2 Stratos Application Server] [2012-03-28 23:40:48,627] @
> karsha.opensource.lk [11051] [WSO2 Stratos Application Server]ERROR
> {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
> karsha.opensource.lk/webapps/KarshaMarkUp].[jsp]}
> - Servlet.service() for servlet jsp threw exception
> {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
> karsha.opensource.lk/webapps/KarshaMarkUp].[jsp
> ]
>
>
>
> I found this log information is not enough to find out what is the
> error. Is there a way I can get full error log on Stratos live Server?
>
 You can see the log for your tenant from Monitor > System Logs.

  Or What would cause this error?
>
 There could be a permission issue if your webapp tries to modify/access
 any files in the system. Other than that it should work. Please send us the
 logs you got from the log viewer.

 thanks,


> Thanks
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Supun Malinga,

 Software Engineer,
 WSO2 Inc.
 http://wso2.com
 http://wso2.org
 email - sup...@wso2.com 
 mobil

Re: [Dev] Error with running web app on Stratos Live

2012-03-30 Thread Kasun Perera
Hi supun

About reading files- I can Access other tables and read data on data
servise server?
What I'm doing here is read a PDF file that stored as a Blob and extract
the phrases from it, I'm not writing anything to the files.

I can read the PDF file from database and show it on the webpage, Only
thing is can't extract the phrases from it.

here is my project folder
https://docs.google.com/open?id=0B5A0W5SUykQqbGc0Vlg5UDJSTHFiTzdIV0hGZEZnQQ

If you want to run here is the login details on Stratoes Live server
username- kas...@karsha.opensource.lk
passwd-  Haknrr4k

thanks


> Hi Supun
> I Have attached .war file.  you want the project folder?
>  database is at dataservise server.
>
>
>
> thanks
>
>
>
>> On Fri, Mar 30, 2012 at 12:02 PM, Supun Malinga  wrote:
>>
>>> Hi,
>>>
>>> Looks like you have some file conversion there. From where these files
>>> are being read?. If it needs to access the server file system, security
>>> manager will block this.
>>> Are you running your local setup with security manager enabled?
>>>
>>> thanks,
>>>
>>>
>>> On Fri, Mar 30, 2012 at 11:50 AM, Kasun Perera wrote:
>>>
 Hi Supun

 I'm getting this error on webpage now when running my web app on
 StratoesLive App server, but I'm not getting this error on the local App
 server. A bug? Although I have debugged on my local machine I can't find
 the error.

 code- http://paste.org/47396

 type Exception report

 message

 description The server encountered an internal error () that prevented
 it from fulfilling this request.

 exception

 java.lang.NullPointerException
  controler.ControlerServelet.pdfDocToSentence(ControlerServelet.java:755)
   // I have mentioned thses two lines
  controler.ControlerServelet.doPost(ControlerServelet.java:585)
  //   in
  javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
  sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source)

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  java.lang.reflect.Method.invoke(Method.java:597)
 org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273)
  org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:270)
 java.security.AccessController.doPrivileged(Native Method)
  javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
 org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:305)

 org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
 note The full stack trace of the root cause is available in the Apache
 Tomcat/7.0.14 logs.



 On Thu, Mar 29, 2012 at 4:52 PM, Kasun Perera wrote:

> Hi Supun
>
> Yes I have the external libraries in the META-INF/lib of my
> application. I have used the same .war file in locally running App server,
> There I don't have this problem
>
>  The log file is attached
>
> Thanks
>
>
> On Thu, Mar 29, 2012 at 4:39 PM, Supun Malinga wrote:
>
>> Hi Kasun,
>>
>> On Thu, Mar 29, 2012 at 4:28 PM, Kasun Perera 
>> wrote:
>>
>>> Hi
>>>
>>> I have deployed web app on Stratos Live I can run the web app there.
>>> But When I go to a particular a jsp page that calling to external
>>> libraris(Stanforsparser.jar, PdfBox.jar) through servelet, gives me a 
>>> blank
>>> page.  I can run this webapp in my local Stratoes Application server
>>> and mentioned jsp page appears without any problem
>>>
>> Here you need to have the external libraries in the META-INF/lib
>> directory of your webapp.
>>
>>
>>>  I'm using tomcat 7.0.22 for deploy the web app locally, and .war
>>> file is uploaded to Stratos Live.
>>>
>>> I found this error log on the Stratos Live server.
>>>
>>> Server Log
>>>
>>> [WSO2 Stratos Application Server] [2012-03-28 23:40:48,627] @
>>> karsha.opensource.lk [11051] [WSO2 Stratos Application Server]ERROR
>>> {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
>>> karsha.opensource.lk/webapps/KarshaMarkUp].[jsp]}
>>> - Servlet.service() for servlet jsp threw exception
>>> {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
>>> karsha.opensource.lk/webapps/KarshaMarkUp].[jsp
>>> ]
>>>
>>>
>>>
>>> I found this log information is not enough to find out what is the
>>> error. Is there a way I can get full error log on Stratos live Server?
>>>
>> You can see the log for your tenant from Monitor > System Logs.
>>
>>  Or What would cause this error?
>>>
>> There could be a permission issue if your we

Re: [Dev] Error with running web app on Stratos Live

2012-03-30 Thread Supun Malinga
Hi,

I will have a look tonight.
please don't share the pw publicly!. :)

thanks,

On Fri, Mar 30, 2012 at 1:28 PM, Kasun Perera  wrote:

> Hi supun
>
> About reading files- I can Access other tables and read data on data
> servise server?
> What I'm doing here is read a PDF file that stored as a Blob and extract
> the phrases from it, I'm not writing anything to the files.
>
> I can read the PDF file from database and show it on the webpage, Only
> thing is can't extract the phrases from it.
>
> here is my project folder
> https://docs.google.com/open?id=0B5A0W5SUykQqbGc0Vlg5UDJSTHFiTzdIV0hGZEZnQQ
>
> If you want to run here is the login details on Stratoes Live server
> username- kas...@karsha.opensource.lk
> passwd-  Haknrr4k
>
> thanks
>
>
>> Hi Supun
>> I Have attached .war file.  you want the project folder?
>>  database is at dataservise server.
>>
>>
>>
>> thanks
>>
>>
>>
>>> On Fri, Mar 30, 2012 at 12:02 PM, Supun Malinga  wrote:
>>>
 Hi,

 Looks like you have some file conversion there. From where these files
 are being read?. If it needs to access the server file system, security
 manager will block this.
 Are you running your local setup with security manager enabled?

 thanks,


 On Fri, Mar 30, 2012 at 11:50 AM, Kasun Perera wrote:

> Hi Supun
>
> I'm getting this error on webpage now when running my web app on
> StratoesLive App server, but I'm not getting this error on the local App
> server. A bug? Although I have debugged on my local machine I can't find
> the error.
>
> code- http://paste.org/47396
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
> java.lang.NullPointerException
>  controler.ControlerServelet.pdfDocToSentence(ControlerServelet.java:755)
>   // I have mentioned thses two lines
>  controler.ControlerServelet.doPost(ControlerServelet.java:585)
>  //   in
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>  sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source)
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  java.lang.reflect.Method.invoke(Method.java:597)
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273)
>
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:270)
> java.security.AccessController.doPrivileged(Native Method)
>  javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:305)
>
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
> note The full stack trace of the root cause is available in the Apache
> Tomcat/7.0.14 logs.
>
>
>
> On Thu, Mar 29, 2012 at 4:52 PM, Kasun Perera wrote:
>
>> Hi Supun
>>
>> Yes I have the external libraries in the META-INF/lib of my
>> application. I have used the same .war file in locally running App 
>> server,
>> There I don't have this problem
>>
>>  The log file is attached
>>
>> Thanks
>>
>>
>> On Thu, Mar 29, 2012 at 4:39 PM, Supun Malinga wrote:
>>
>>> Hi Kasun,
>>>
>>> On Thu, Mar 29, 2012 at 4:28 PM, Kasun Perera 
>>> wrote:
>>>
 Hi

 I have deployed web app on Stratos Live I can run the web app
 there. But When I go to a particular a jsp page that calling to 
 external
 libraris(Stanforsparser.jar, PdfBox.jar) through servelet, gives me a 
 blank
 page.  I can run this webapp in my local Stratoes Application server
 and mentioned jsp page appears without any problem

>>> Here you need to have the external libraries in the META-INF/lib
>>> directory of your webapp.
>>>
>>>
  I'm using tomcat 7.0.22 for deploy the web app locally, and .war
 file is uploaded to Stratos Live.

 I found this error log on the Stratos Live server.

 Server Log

 [WSO2 Stratos Application Server] [2012-03-28 23:40:48,627] @
 karsha.opensource.lk [11051] [WSO2 Stratos Application
 Server]ERROR
 {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
 karsha.opensource.lk/webapps/KarshaMarkUp].[jsp]}
 - Servlet.service() for servlet jsp threw exception
 {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
 karsha.opensource.lk/webapps/KarshaMarkUp].[jsp
 ]



 I fou

Re: [Dev] Error with running web app on Stratos Live

2012-03-31 Thread Supun Malinga
Hi Kasun,

On Fri, Mar 30, 2012 at 1:28 PM, Kasun Perera  wrote:

> Hi supun
>
> About reading files- I can Access other tables and read data on data
> servise server?
> What I'm doing here is read a PDF file that stored as a Blob and extract
> the phrases from it, I'm not writing anything to the files.
>

> I can read the PDF file from database and show it on the webpage, Only
> thing is can't extract the phrases from it.
>

Can you mention exact steps for extracting phrases in your webapp.. (from
the webapp UI)

Also can you point to the stratos DSS database in your local webapp and see
if it's working?

>
> here is my project folder
> https://docs.google.com/open?id=0B5A0W5SUykQqbGc0Vlg5UDJSTHFiTzdIV0hGZEZnQQ
>
> If you want to run here is the login details on Stratoes Live server
> username- kas...@karsha.opensource.lk
> passwd-  Haknrr4k
>
> thanks
>
>
>> Hi Supun
>> I Have attached .war file.  you want the project folder?
>>  database is at dataservise server.
>>
>>
>>
>> thanks
>>
>>
>>
>>> On Fri, Mar 30, 2012 at 12:02 PM, Supun Malinga  wrote:
>>>
 Hi,

 Looks like you have some file conversion there. From where these files
 are being read?. If it needs to access the server file system, security
 manager will block this.
 Are you running your local setup with security manager enabled?

 thanks,


 On Fri, Mar 30, 2012 at 11:50 AM, Kasun Perera wrote:

> Hi Supun
>
> I'm getting this error on webpage now when running my web app on
> StratoesLive App server, but I'm not getting this error on the local App
> server. A bug? Although I have debugged on my local machine I can't find
> the error.
>
> code- http://paste.org/47396
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
> java.lang.NullPointerException
>  controler.ControlerServelet.pdfDocToSentence(ControlerServelet.java:755)
>   // I have mentioned thses two lines
>  controler.ControlerServelet.doPost(ControlerServelet.java:585)
>  //   in
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>  sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source)
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  java.lang.reflect.Method.invoke(Method.java:597)
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273)
>
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:270)
> java.security.AccessController.doPrivileged(Native Method)
>  javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:305)
>
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
> note The full stack trace of the root cause is available in the Apache
> Tomcat/7.0.14 logs.
>
>
>
> On Thu, Mar 29, 2012 at 4:52 PM, Kasun Perera wrote:
>
>> Hi Supun
>>
>> Yes I have the external libraries in the META-INF/lib of my
>> application. I have used the same .war file in locally running App 
>> server,
>> There I don't have this problem
>>
>>  The log file is attached
>>
>> Thanks
>>
>>
>> On Thu, Mar 29, 2012 at 4:39 PM, Supun Malinga wrote:
>>
>>> Hi Kasun,
>>>
>>> On Thu, Mar 29, 2012 at 4:28 PM, Kasun Perera 
>>> wrote:
>>>
 Hi

 I have deployed web app on Stratos Live I can run the web app
 there. But When I go to a particular a jsp page that calling to 
 external
 libraris(Stanforsparser.jar, PdfBox.jar) through servelet, gives me a 
 blank
 page.  I can run this webapp in my local Stratoes Application server
 and mentioned jsp page appears without any problem

>>> Here you need to have the external libraries in the META-INF/lib
>>> directory of your webapp.
>>>
>>>
  I'm using tomcat 7.0.22 for deploy the web app locally, and .war
 file is uploaded to Stratos Live.

 I found this error log on the Stratos Live server.

 Server Log

 [WSO2 Stratos Application Server] [2012-03-28 23:40:48,627] @
 karsha.opensource.lk [11051] [WSO2 Stratos Application
 Server]ERROR
 {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
 karsha.opensource.lk/webapps/KarshaMarkUp].[jsp]}
 - Servlet.service() for servlet jsp threw exception
 {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
 karsha.opensource.lk/webapps/KarshaMarkUp].[

Re: [Dev] Error with running web app on Stratos Live

2012-04-02 Thread Prabath Abeysekera
Hi Kasun,

On Mon, Apr 2, 2012 at 8:35 AM, Kasun Perera  wrote:

>
>
>
>
> On Sun, Apr 1, 2012 at 8:49 AM, Supun Malinga  wrote:
>
>> Hi Kasun,
>>
>> On Fri, Mar 30, 2012 at 1:28 PM, Kasun Perera wrote:
>>
>>> Hi supun
>>>
>>> About reading files- I can Access other tables and read data on data
>>> servise server?
>>> What I'm doing here is read a PDF file that stored as a Blob and extract
>>> the phrases from it, I'm not writing anything to the files.
>>>
>>
>>> I can read the PDF file from database and show it on the webpage, Only
>>> thing is can't extract the phrases from it.
>>>
>>
>> Can you mention exact steps for extracting phrases in your webapp.. (from
>> the webapp UI)
>>
>
>
> when go go to this URL
> http://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaMarkUp/login
> you can login with usrname-admin paswd-admin
>
> then on leftside menu go to Select Doc submenu
> then you can select a document from drop down menu and press Extract
> phrases. It will show a blank page but it should show extracted phrses in
> a table.
>
> The document names for above dropdown List comes from stratos database, if
> you go to
> http://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaMarkUp/classify
>  the
> content is comming from the database. So i think database connection is
> working
>
>>
>> Also can you point to the stratos DSS database in your local webapp and
>> see if it's working?
>>
>
> I havent installed Stratos DSS localy I ll install and try that
> or can use jdbc:mysql://
> rss1.stratoslive.wso2.com/karshamarkuptool_karsha_opensource_lk URL
> to access database direcly from local setup? using this URL directly from
> local set up is not working for any functionality
>

You should be able to access the databases created via the RSS Manager of
SLive DSS from your local setup as well. Can you please elaborate more on
the issues you experienced while trying to access the aforementioned
database?



>
>>> here is my project folder
>>> https://docs.google.com/open?id=0B5A0W5SUykQqbGc0Vlg5UDJSTHFiTzdIV0hGZEZnQQ
>>>
>>> If you want to run here is the login details on Stratoes Live server
>>> username- kas...@karsha.opensource.lk
>>> passwd-  Haknrr4k
>>>
>>> thanks
>>>
>>>
 Hi Supun
 I Have attached .war file.  you want the project folder?
  database is at dataservise server.



 thanks



> On Fri, Mar 30, 2012 at 12:02 PM, Supun Malinga wrote:
>
>> Hi,
>>
>> Looks like you have some file conversion there. From where these
>> files are being read?. If it needs to access the server file system,
>> security manager will block this.
>> Are you running your local setup with security manager enabled?
>>
>> thanks,
>>
>>
>> On Fri, Mar 30, 2012 at 11:50 AM, Kasun Perera 
>> wrote:
>>
>>> Hi Supun
>>>
>>> I'm getting this error on webpage now when running my web app on
>>> StratoesLive App server, but I'm not getting this error on the local App
>>> server. A bug? Although I have debugged on my local machine I can't find
>>> the error.
>>>
>>> code- http://paste.org/47396
>>>
>>> type Exception report
>>>
>>> message
>>>
>>> description The server encountered an internal error () that
>>> prevented it from fulfilling this request.
>>>
>>> exception
>>>
>>> java.lang.NullPointerException
>>>  
>>> controler.ControlerServelet.pdfDocToSentence(ControlerServelet.java:755)
>>>   // I have mentioned thses two lines
>>>  controler.ControlerServelet.doPost(ControlerServelet.java:585)
>>>//   in
>>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>>>  sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source)
>>>
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>  java.lang.reflect.Method.invoke(Method.java:597)
>>>
>>> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273)
>>>
>>> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:270)
>>> java.security.AccessController.doPrivileged(Native Method)
>>>  javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>>>
>>> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:305)
>>>
>>> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
>>> note The full stack trace of the root cause is available in the
>>> Apache Tomcat/7.0.14 logs.
>>>
>>>
>>>
>>> On Thu, Mar 29, 2012 at 4:52 PM, Kasun Perera 
>>> wrote:
>>>
 Hi Supun

 Yes I have the external libraries in the META-INF/lib of my
 application. I have used the same .war file in locally running App 
 server,
 There I don't have this problem

Re: [Dev] Error with running web app on Stratos Live

2012-04-02 Thread Kasun Perera
Hi Prabath

Yes, I can access SLive DSS from my local Stratos app server and all
the functionalities are working as required, I'm not sure why it didn't
worked for me yesterday night.
So that means there is no problem with DB connection. The reason may be to
getting a blank page on the jsp page where I use external jar file, is
Security manager dosen't allow to run extrenal jar files on Straos Live app
server?.

but I have already singed my extrenal jar files with this from my local
Stratos 1.5.2 appserver
jarsigner -keystore repository/resources/security/wso2carbon.jks -storepass
wso2carbon location_of_jarfile wso2carbon

do I need to get signed my external jar files from Stratoes Live app
server?

On Mon, Apr 2, 2012 at 12:47 PM, Prabath Abeysekera wrote:

> Hi Kasun,
>
> On Mon, Apr 2, 2012 at 8:35 AM, Kasun Perera  wrote:
>
>>
>>
>>
>>
>> On Sun, Apr 1, 2012 at 8:49 AM, Supun Malinga  wrote:
>>
>>> Hi Kasun,
>>>
>>> On Fri, Mar 30, 2012 at 1:28 PM, Kasun Perera wrote:
>>>
 Hi supun

 About reading files- I can Access other tables and read data on data
 servise server?
 What I'm doing here is read a PDF file that stored as a Blob and
 extract the phrases from it, I'm not writing anything to the files.

>>>
 I can read the PDF file from database and show it on the webpage, Only
 thing is can't extract the phrases from it.

>>>
>>> Can you mention exact steps for extracting phrases in your webapp..
>>> (from the webapp UI)
>>>
>>
>>
>> when go go to this URL
>> http://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaMarkUp/login
>> you can login with usrname-admin paswd-admin
>>
>> then on leftside menu go to Select Doc submenu
>> then you can select a document from drop down menu and press Extract
>> phrases. It will show a blank page but it should show extracted phrses
>> in a table.
>>
>> The document names for above dropdown List comes from stratos database,
>> if you go to
>> http://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaMarkUp/classify
>>  the
>> content is comming from the database. So i think database connection is
>> working
>>
>>>
>>> Also can you point to the stratos DSS database in your local webapp and
>>> see if it's working?
>>>
>>
>> I havent installed Stratos DSS localy I ll install and try that
>> or can use jdbc:mysql://
>> rss1.stratoslive.wso2.com/karshamarkuptool_karsha_opensource_lk URL
>> to access database direcly from local setup? using this URL directly
>> from local set up is not working for any functionality
>>
>
> You should be able to access the databases created via the RSS Manager of
> SLive DSS from your local setup as well. Can you please elaborate more on
> the issues you experienced while trying to access the aforementioned
> database?
>
>
>
>>
 here is my project folder
 https://docs.google.com/open?id=0B5A0W5SUykQqbGc0Vlg5UDJSTHFiTzdIV0hGZEZnQQ

 If you want to run here is the login details on Stratoes Live server
 username- kas...@karsha.opensource.lk
 passwd-  Haknrr4k

 thanks


> Hi Supun
> I Have attached .war file.  you want the project folder?
>  database is at dataservise server.
>
>
>
> thanks
>
>
>
>> On Fri, Mar 30, 2012 at 12:02 PM, Supun Malinga wrote:
>>
>>> Hi,
>>>
>>> Looks like you have some file conversion there. From where these
>>> files are being read?. If it needs to access the server file system,
>>> security manager will block this.
>>> Are you running your local setup with security manager enabled?
>>>
>>> thanks,
>>>
>>>
>>> On Fri, Mar 30, 2012 at 11:50 AM, Kasun Perera >> > wrote:
>>>
 Hi Supun

 I'm getting this error on webpage now when running my web app on
 StratoesLive App server, but I'm not getting this error on the local 
 App
 server. A bug? Although I have debugged on my local machine I can't 
 find
 the error.

 code- http://paste.org/47396

 type Exception report

 message

 description The server encountered an internal error () that
 prevented it from fulfilling this request.

 exception

 java.lang.NullPointerException
  
 controler.ControlerServelet.pdfDocToSentence(ControlerServelet.java:755)
   // I have mentioned thses two lines
  controler.ControlerServelet.doPost(ControlerServelet.java:585)
  //   in
  javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
  sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source)

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  java.lang.reflect.Method.invoke(Method.java:597)
>

Re: [Dev] Error with running web app on Stratos Live

2012-04-02 Thread Supun Malinga
Hi Kasun,

On Mon, Apr 2, 2012 at 1:26 PM, Kasun Perera  wrote:

> Hi Prabath
>
> Yes, I can access SLive DSS from my local Stratos app server and all
> the functionalities are working as required, I'm not sure why it didn't
> worked for me yesterday night.
> So that means there is no problem with DB connection. The reason may be to
> getting a blank page on the jsp page where I use external jar file, is
> Security manager dosen't allow to run extrenal jar files on Straos Live app
> server?.
>
> but I have already singed my extrenal jar files with this from my local
> Stratos 1.5.2 appserver
> jarsigner -keystore repository/resources/security/wso2carbon.jks
> -storepass wso2carbon location_of_jarfile wso2carbon
>
> do I need to get signed my external jar files from Stratoes Live app
> server?
>
No you don't have to. You are having them inside the webapp .war right?
FYI : Only if you are to copy a jar into a lib directory you have to sign
it.

Your issue couldn't be related to security manager, as you are using
database to store all your data/files.

btw, I couldn't login to the webapp with the given credentials.

thanks,

>
>
> On Mon, Apr 2, 2012 at 12:47 PM, Prabath Abeysekera wrote:
>
>> Hi Kasun,
>>
>> On Mon, Apr 2, 2012 at 8:35 AM, Kasun Perera wrote:
>>
>>>
>>>
>>>
>>>
>>> On Sun, Apr 1, 2012 at 8:49 AM, Supun Malinga  wrote:
>>>
 Hi Kasun,

 On Fri, Mar 30, 2012 at 1:28 PM, Kasun Perera wrote:

> Hi supun
>
> About reading files- I can Access other tables and read data on data
> servise server?
> What I'm doing here is read a PDF file that stored as a Blob and
> extract the phrases from it, I'm not writing anything to the files.
>

> I can read the PDF file from database and show it on the webpage, Only
> thing is can't extract the phrases from it.
>

 Can you mention exact steps for extracting phrases in your webapp..
 (from the webapp UI)

>>>
>>>
>>> when go go to this URL
>>> http://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaMarkUp/login
>>> you can login with usrname-admin paswd-admin
>>>
>>> then on leftside menu go to Select Doc submenu
>>> then you can select a document from drop down menu and press Extract
>>> phrases. It will show a blank page but it should show extracted phrses
>>> in a table.
>>>
>>> The document names for above dropdown List comes from stratos database,
>>> if you go to
>>> http://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaMarkUp/classify
>>>  the
>>> content is comming from the database. So i think database connection is
>>> working
>>>

 Also can you point to the stratos DSS database in your local webapp and
 see if it's working?

>>>
>>> I havent installed Stratos DSS localy I ll install and try that
>>> or can use jdbc:mysql://
>>> rss1.stratoslive.wso2.com/karshamarkuptool_karsha_opensource_lk URL
>>> to access database direcly from local setup? using this URL directly
>>> from local set up is not working for any functionality
>>>
>>
>> You should be able to access the databases created via the RSS Manager of
>> SLive DSS from your local setup as well. Can you please elaborate more on
>> the issues you experienced while trying to access the aforementioned
>> database?
>>
>>
>>
>>>
> here is my project folder
> https://docs.google.com/open?id=0B5A0W5SUykQqbGc0Vlg5UDJSTHFiTzdIV0hGZEZnQQ
>
> If you want to run here is the login details on Stratoes Live server
> username- kas...@karsha.opensource.lk
> passwd-  Haknrr4k
>
> thanks
>
>
>> Hi Supun
>> I Have attached .war file.  you want the project folder?
>>  database is at dataservise server.
>>
>>
>>
>> thanks
>>
>>
>>
>>> On Fri, Mar 30, 2012 at 12:02 PM, Supun Malinga wrote:
>>>
 Hi,

 Looks like you have some file conversion there. From where these
 files are being read?. If it needs to access the server file system,
 security manager will block this.
 Are you running your local setup with security manager enabled?

 thanks,


 On Fri, Mar 30, 2012 at 11:50 AM, Kasun Perera <
 kas...@opensource.lk> wrote:

> Hi Supun
>
> I'm getting this error on webpage now when running my web app on
> StratoesLive App server, but I'm not getting this error on the local 
> App
> server. A bug? Although I have debugged on my local machine I can't 
> find
> the error.
>
> code- http://paste.org/47396
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that
> prevented it from fulfilling this request.
>
> exception
>
> java.lang.NullPointerException
>  
> controler.ControlerServe

Re: [Dev] Error with running web app on Stratos Live

2012-04-02 Thread Kasun Perera
Hi Supun

Yes, Jar files are inside .war file

this is the link
http://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaMarkUp/login

username-kasun
paswd-kasunp

go to Select Doc, select a document type by pressing Get Documents, It will
list documents
Select a document and press next
It should list all the phrases from that document in a table, but getting a
blank page.

Thanks

On Mon, Apr 2, 2012 at 2:12 PM, Supun Malinga  wrote:

> Hi Kasun,
>
> On Mon, Apr 2, 2012 at 1:26 PM, Kasun Perera  wrote:
>
>> Hi Prabath
>>
>> Yes, I can access SLive DSS from my local Stratos app server and all
>> the functionalities are working as required, I'm not sure why it didn't
>> worked for me yesterday night.
>> So that means there is no problem with DB connection. The reason may be
>> to getting a blank page on the jsp page where I use external jar file, is
>> Security manager dosen't allow to run extrenal jar files on Straos Live app
>> server?.
>>
>> but I have already singed my extrenal jar files with this from my local
>> Stratos 1.5.2 appserver
>> jarsigner -keystore repository/resources/security/wso2carbon.jks
>> -storepass wso2carbon location_of_jarfile wso2carbon
>>
>> do I need to get signed my external jar files from Stratoes Live app
>> server?
>>
> No you don't have to. You are having them inside the webapp .war right?
> FYI : Only if you are to copy a jar into a lib directory you have to sign
> it.
>
> Your issue couldn't be related to security manager, as you are using
> database to store all your data/files.
>
> btw, I couldn't login to the webapp with the given credentials.
>
> thanks,
>
>>
>>
>> On Mon, Apr 2, 2012 at 12:47 PM, Prabath Abeysekera wrote:
>>
>>> Hi Kasun,
>>>
>>> On Mon, Apr 2, 2012 at 8:35 AM, Kasun Perera wrote:
>>>




 On Sun, Apr 1, 2012 at 8:49 AM, Supun Malinga  wrote:

> Hi Kasun,
>
> On Fri, Mar 30, 2012 at 1:28 PM, Kasun Perera wrote:
>
>> Hi supun
>>
>> About reading files- I can Access other tables and read data on data
>> servise server?
>> What I'm doing here is read a PDF file that stored as a Blob and
>> extract the phrases from it, I'm not writing anything to the files.
>>
>
>> I can read the PDF file from database and show it on the webpage,
>> Only thing is can't extract the phrases from it.
>>
>
> Can you mention exact steps for extracting phrases in your webapp..
> (from the webapp UI)
>


 when go go to this URL
 http://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaMarkUp/login
 you can login with usrname-admin paswd-admin

 then on leftside menu go to Select Doc submenu
 then you can select a document from drop down menu and press Extract
 phrases. It will show a blank page but it should show extracted phrses
 in a table.

 The document names for above dropdown List comes from stratos database,
 if you go to
 http://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaMarkUp/classify
  the
 content is comming from the database. So i think database connection is
 working

>
> Also can you point to the stratos DSS database in your local webapp
> and see if it's working?
>

 I havent installed Stratos DSS localy I ll install and try that
 or can use jdbc:mysql://
 rss1.stratoslive.wso2.com/karshamarkuptool_karsha_opensource_lk URL
 to access database direcly from local setup? using this URL directly
 from local set up is not working for any functionality

>>>
>>> You should be able to access the databases created via the RSS Manager
>>> of SLive DSS from your local setup as well. Can you please elaborate more
>>> on the issues you experienced while trying to access the aforementioned
>>> database?
>>>
>>>
>>>

>> here is my project folder
>> https://docs.google.com/open?id=0B5A0W5SUykQqbGc0Vlg5UDJSTHFiTzdIV0hGZEZnQQ
>>
>> If you want to run here is the login details on Stratoes Live server
>> username- kas...@karsha.opensource.lk
>> passwd-  Haknrr4k
>>
>> thanks
>>
>>
>>> Hi Supun
>>> I Have attached .war file.  you want the project folder?
>>>  database is at dataservise server.
>>>
>>>
>>>
>>> thanks
>>>
>>>
>>>
 On Fri, Mar 30, 2012 at 12:02 PM, Supun Malinga wrote:

> Hi,
>
> Looks like you have some file conversion there. From where these
> files are being read?. If it needs to access the server file system,
> security manager will block this.
> Are you running your local setup with security manager enabled?
>
> thanks,
>
>
> On Fri, Mar 30, 2012 at 11:50 AM, Kasun Perera <
> kas...@opensource.lk> wrote:
>
>> Hi Supun
>>
>> I'm getting this error on webpage now when ru

Re: [Dev] Error with running web app on Stratos Live

2012-04-02 Thread Kasun Perera
Hi Azeez

Yes I'm only reading & writing to the DB.
This is the scenario that having a problem on Live appserver. I'm reading a
PDF file stored as, blob from database and call the
pdfDocToSentence(byte[] buff) method in this class http://paste.org/47512 ,
with the byte array returned from database. and it will convert PDF to text
and, phrases will be extracted from this text.
This is the class that uses external libraries and this is the
only place that I'm having problems with Live app server.

Thanks



On Mon, Apr 2, 2012 at 2:37 PM, Afkham Azeez  wrote:

> Sorry for asking these questions again.
>
> 1. Is you webapp doing restricted operations like writing to file system?
> 2. Is the app only reading & writing to DB from the data access side.
>
> Signing with wso2carbon.jks will not solve your issue because on
> StratosLive we don't use the private key in that keystore for obvious
> reasons (if that was the case, there is no point in signing our jars at all
> since wso2carbon.jks is public and people can use that to sign malicious
> code and attack StratosLive)
>
> If you are doing restricted operations, you will not deploy such code on
> StratosLive at the moment. In the future, we will be providing a mechanism
> to run clusters dedicated to a tenant, and in that case, there will be less
> security restrictions & file system access will be permitted.
>
> Thanks
> Azeez
>
>
> On Mon, Apr 2, 2012 at 2:25 PM, Kasun Perera  wrote:
>
>> Hi Supun
>>
>> Yes, Jar files are inside .war file
>>
>> this is the link
>>
>> http://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaMarkUp/login
>>
>> username-kasun
>> paswd-kasunp
>>
>> go to Select Doc, select a document type by pressing Get Documents, It
>> will list documents
>> Select a document and press next
>> It should list all the phrases from that document in a table, but getting
>> a blank page.
>>
>> Thanks
>>
>>
>> On Mon, Apr 2, 2012 at 2:12 PM, Supun Malinga  wrote:
>>
>>> Hi Kasun,
>>>
>>> On Mon, Apr 2, 2012 at 1:26 PM, Kasun Perera wrote:
>>>
 Hi Prabath

 Yes, I can access SLive DSS from my local Stratos app server and all
 the functionalities are working as required, I'm not sure why it didn't
 worked for me yesterday night.
 So that means there is no problem with DB connection. The reason may be
 to getting a blank page on the jsp page where I use external jar file, is
 Security manager dosen't allow to run extrenal jar files on Straos Live app
 server?.

 but I have already singed my extrenal jar files with this from my local
 Stratos 1.5.2 appserver
 jarsigner -keystore repository/resources/security/wso2carbon.jks
 -storepass wso2carbon location_of_jarfile wso2carbon

 do I need to get signed my external jar files from Stratoes Live app
 server?

>>> No you don't have to. You are having them inside the webapp .war right?
>>> FYI : Only if you are to copy a jar into a lib directory you have to
>>> sign it.
>>>
>>> Your issue couldn't be related to security manager, as you are using
>>> database to store all your data/files.
>>>
>>> btw, I couldn't login to the webapp with the given credentials.
>>>
>>> thanks,
>>>


 On Mon, Apr 2, 2012 at 12:47 PM, Prabath Abeysekera 
 wrote:

> Hi Kasun,
>
> On Mon, Apr 2, 2012 at 8:35 AM, Kasun Perera wrote:
>
>>
>>
>>
>>
>> On Sun, Apr 1, 2012 at 8:49 AM, Supun Malinga wrote:
>>
>>> Hi Kasun,
>>>
>>> On Fri, Mar 30, 2012 at 1:28 PM, Kasun Perera 
>>> wrote:
>>>
 Hi supun

 About reading files- I can Access other tables and read data on
 data servise server?
 What I'm doing here is read a PDF file that stored as a Blob and
 extract the phrases from it, I'm not writing anything to the files.

>>>
 I can read the PDF file from database and show it on the webpage,
 Only thing is can't extract the phrases from it.

>>>
>>> Can you mention exact steps for extracting phrases in your webapp..
>>> (from the webapp UI)
>>>
>>
>>
>> when go go to this URL
>> http://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaMarkUp/login
>> you can login with usrname-admin paswd-admin
>>
>> then on leftside menu go to Select Doc submenu
>> then you can select a document from drop down menu and press Extract
>> phrases. It will show a blank page but it should show extracted
>> phrses in a table.
>>
>> The document names for above dropdown List comes from stratos
>> database, if you go to
>> http://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaMarkUp/classify
>>  the
>> content is comming from the database. So i think database connection is
>> working
>>
>>>
>>> Also can you point to the stratos DSS database in your local webapp
>>> and see if i