Hi Kasun, On Mon, Apr 2, 2012 at 1:26 PM, Kasun Perera <kas...@opensource.lk> 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 <praba...@wso2.com>wrote: > >> Hi Kasun, >> >> On Mon, Apr 2, 2012 at 8:35 AM, Kasun Perera <kas...@opensource.lk>wrote: >> >>> >>> >>> >>> >>> On Sun, Apr 1, 2012 at 8:49 AM, Supun Malinga <sup...@wso2.com> wrote: >>> >>>> Hi Kasun, >>>> >>>> On Fri, Mar 30, 2012 at 1:28 PM, Kasun Perera <kas...@opensource.lk>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 <sup...@wso2.com>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.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 < >>>>>>>>> kas...@opensource.lk> 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 >>>>>>>>>> <sup...@wso2.com>wrote: >>>>>>>>>> >>>>>>>>>>> Hi Kasun, >>>>>>>>>>> >>>>>>>>>>> On Thu, Mar 29, 2012 at 4:28 PM, Kasun Perera < >>>>>>>>>>> kas...@opensource.lk> 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 >>>>>>>>>>>> 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 <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 <sup...@wso2.com> >>>>>>>> mobile - 071 56 91 321 >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Supun Malinga, >>>>>>> >>>>>>> Software Engineer, >>>>>>> WSO2 Inc. >>>>>>> http://wso2.com >>>>>>> http://wso2.org >>>>>>> email - sup...@wso2.com <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 <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 >>> >>> >> >> >> -- >> Prabath Abeysekara >> Software Engineer >> WSO2 Inc. >> Email: praba...@wso2.com <harsha...@wso2.com> >> Mobile: +94774171471 >> >> <http://harshana05.blogspot.com/> >> >> > > > -- > Regards > > Kasun Perera > > > _______________________________________________ > 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 <sup...@wso2.com> mobile - 071 56 91 321
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev