vaddi.sudhakar Posted October 17, 2007 Report Share Posted October 17, 2007 Hi, I have one more question. I am using WebLogic server where I need deploy chartfx sample app. When I deploy and run the app, the image will be generated? When I run in Tomcat, it prompts for the directory structure /chartfx62/temp under root directory (not WEB-INF). How do I handle this in WL. Quick response would be appreciated. Thanks in advance ! Thanks Sudhakar Quote Link to comment Share on other sites More sharing options...
GabrielA Posted October 17, 2007 Report Share Posted October 17, 2007 Weblogic has a complete diferent way of handling war file. The easiest way to deply in weblogic is to expand the war file in the file system and deploy the Folder to weblogic. If you rather deploy as a war file, there is a KB article (8101008) in the support site that explains how to do it (http://support.softwarefx.com/ShowArticle.aspx?Type=KB&Product=CfxJava65&Source=http://support.softwarefx.com/kb/810/1/008.htm) Quote Link to comment Share on other sites More sharing options...
vaddi.sudhakar Posted October 18, 2007 Author Report Share Posted October 18, 2007 Hi, I have done all the steps. But still giving some problem.. We have demo tomw. If it works, then we are planning to buy ChartFX. Quick response would be appreciated. <Oct 18, 2007 11:58:48 AM EDT> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@2b2b67 - app Name: '_appsdir_Recovery_App_war', name: 'Recovery_App.war', context-path: '/Recovery_App'] Root cause of ServletExcepti on. java.lang.RuntimeException: java.io.FileNotFoundException: D:\bea\weblogic92\samples\server\examples\build\mainWebApp\Re covery_App\chartfx62\temp\CFT1018_11584835541.png (The system cannot find the path specified) at SoftwareFX.ChartFX.Chart.getHtmlTag(Ljava.lang.Object;Ljava.lang.Object;)Ljava.lang.String;(Unknown Source) at jsp_servlet.__marginal_default_rate._jspService(__marginal_default_rate.java:260) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127) Truncated. see log file for complete stacktrace java.io.FileNotFoundException: D:\bea\weblogic92\samples\server\examples\build\mainWebApp\Recovery_App\chartfx62\temp\CF T1018_11584835541.png (The system cannot find the path specified) at java.io.RandomAccessFile.open(Ljava.lang.String;I)V(Native Method) at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212) at java.io.RandomAccessFile.<init>(RandomAccessFile.java:98) at SfxNET.System.IO.wzvx.<init>(Ljava.lang.String;II)V(Unknown Source) at SfxNET.System.IO.wzvx.<init>(Ljava.lang.String;I)V(Unknown Source) Truncated. see log file for complete stacktrace > Thanks Sudhakar Quote Link to comment Share on other sites More sharing options...
vaddi.sudhakar Posted October 18, 2007 Author Report Share Posted October 18, 2007 I have deployed this as war file. created directory structure as /chartfx62/config/ under this copies lic file. It gives the above problem. -Sudhakar Quote Link to comment Share on other sites More sharing options...
GabrielA Posted October 18, 2007 Report Share Posted October 18, 2007 If you follow the steps from the KB article you should be able to get it working. Anyway, I recomend you to deploy the application as a folder instead, that will solve this issue for the demo. Then contact support@softwarefx.com is you still can't get it to work as a war file. Quote Link to comment Share on other sites More sharing options...
vaddi.sudhakar Posted October 26, 2007 Author Report Share Posted October 26, 2007 Hi, Thanks for the support so far. I have another problem now. I want to eliminate the image generation in temp directory. For this, I tried to execute the below code, it works fine in Tomcat, but it doesnt work in WebLogic. <%@page import="SoftwareFX.ChartFX.*"%> <% ChartServer chart1 = new ChartServer(application,request,response); java.util.Random r = new java.util.Random(1); chart1.setGallery(Gallery.LINES); chart1.setMarkerSize((short) 4); chart1.setLineWidth((short) 1); //Populating the chart with random data chart1.openData(COD.VALUES, 3, 10); for (int j = 0;j<10;j++) { chart1.getValue().setItem(0, j, r.nextDouble() * 50); chart1.getValue().setItem(1, j, (r.nextDouble() * 80) + 50); chart1.getValue().setItem(2, j, (r.nextDouble() * 100) + 100); } chart1.closeData(COD.VALUES); chart1.getHtmlData("450","280","PNG"); %> Please help me on this. Quick response would be appreciated. Thanks Sudhakar Quote Link to comment Share on other sites More sharing options...
vaddi.sudhakar Posted October 26, 2007 Author Report Share Posted October 26, 2007 No thanks. I got it and it works fine. errorchartfx.zip Quote Link to comment Share on other sites More sharing options...
vaddi.sudhakar Posted October 26, 2007 Author Report Share Posted October 26, 2007 Hi, One more question.. The image is getting generated but it has space around the image which is spoiling the look and feel of it. Image looks very small here as it has white space around it ..I want to remove this white space around the image, so that it can occupy the complete dimensions. Please respond. Thanks Sudhakar Quote Link to comment Share on other sites More sharing options...
GabrielA Posted November 1, 2007 Report Share Posted November 1, 2007 I can't see the image, so I don't know what to tell you. Please try exporting the chart as png or jpeg, and attach it to your post. Quote Link to comment Share on other sites More sharing options...
vaddi.sudhakar Posted November 6, 2007 Author Report Share Posted November 6, 2007 Hi, I am using getHtmlData() as below : <%@page import="SoftwareFX.ChartFX.*"%> <% ChartServer chart1 = new ChartServer(application,request,response ); chart1.setGallery(Gallery.LINES); chart1.setMarkerSize((short) 4); chart1.setLineWidth((short) 1); //Populating the chart with random data chart1.openData(COD.VALUES, 3, 10); for (int j = 0;j<10;j++) { chart1.setValue(0, j, java.lang.Math.random() * 50); chart1.setValue(1, j, (java.lang.Math.random() * 80) + 50); chart1.setValue(2, j, (java.lang.Math.random() * 100) + 100); } chart1.closeData(COD.VALUES); chart1.getHtmlData("450","280", "PNG"); %> When I try to access the jsp page, server gets crashed sometimes or unable to stream the graph !! I have increased the VM and PermSize to 128m. Still it gives the problem. This is top priority for me. Please respond quickly. Thanks in advance ! -Sudhakar Quote Link to comment Share on other sites More sharing options...
vaddi.sudhakar Posted November 6, 2007 Author Report Share Posted November 6, 2007 Found some work around ! it works now. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.