On Sun, Apr 1, 2012 at 8:49 AM, Supun Malinga <[email protected]> wrote:
> Hi Kasun, > > On Fri, Mar 30, 2012 at 1:28 PM, Kasun Perera <[email protected]>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- [email protected] >> 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 <[email protected]>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 >>>>> <[email protected]>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 >>>>>> <[email protected]>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 <[email protected]>wrote: >>>>>>> >>>>>>>> Hi Kasun, >>>>>>>> >>>>>>>> On Thu, Mar 29, 2012 at 4:28 PM, Kasun Perera <[email protected] >>>>>>>> > 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<http://karsha.opensource.lk/webapps/KarshaMarkUp%5D.%5Bjsp>]} >>>>>>>>> - Servlet.service() for servlet jsp threw exception >>>>>>>>> {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/ >>>>>>>>> karsha.opensource.lk/webapps/KarshaMarkUp].[jsp<http://karsha.opensource.lk/webapps/KarshaMarkUp%5D.%5Bjsp> >>>>>>>>> ] >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> 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 >>>>>>>>> [email protected] >>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Supun Malinga, >>>>>>>> >>>>>>>> Software Engineer, >>>>>>>> WSO2 Inc. >>>>>>>> http://wso2.com >>>>>>>> http://wso2.org >>>>>>>> email - [email protected] <[email protected]> >>>>>>>> mobile - 071 56 91 321 >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Regards >>>>>>> >>>>>>> Kasun Perera >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Regards >>>>>> >>>>>> Kasun Perera >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Supun Malinga, >>>>> >>>>> Software Engineer, >>>>> WSO2 Inc. >>>>> http://wso2.com >>>>> http://wso2.org >>>>> email - [email protected] <[email protected]> >>>>> mobile - 071 56 91 321 >>>>> >>>>> >>>> >>>> >>>> -- >>>> Supun Malinga, >>>> >>>> Software Engineer, >>>> WSO2 Inc. >>>> http://wso2.com >>>> http://wso2.org >>>> email - [email protected] <[email protected]> >>>> mobile - 071 56 91 321 >>>> >>>> >>> >>> >>> -- >>> Regards >>> >>> Kasun Perera >>> >>> >> >> >> -- >> Regards >> >> Kasun Perera >> >> > > > -- > Supun Malinga, > > Software Engineer, > WSO2 Inc. > http://wso2.com > http://wso2.org > email - [email protected] <[email protected]> > mobile - 071 56 91 321 > > -- Regards Kasun Perera -- Regards Kasun Perera
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
