Jump to content
Software FX Community

Deployment in WebLogic 9.2 Server


vaddi.sudhakar
 Share

Recommended Posts

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
Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

 

marginal_default_rate_thumbnail.jsp

 

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...