User (Legacy) Posted October 15, 2004 Report Share Posted October 15, 2004 Hi. I'm using ChartFX for Java trial version with a JDK 1.4.2_05 with Jakarta Tomcat 5.0.28. And I try the following example: <%@page import="SoftwareFX.ChartFX.*"%><html> <head> <title>Database</title> </head> <body> <% ChartServer chartl = new SoftwareFX.ChartFX.ChartServer(application,request,response); String fichier = request.getParameter("param"); TextProvider txtProvider = new TextProvider("/usr/local/jakarta-tomcat-5.0.28/webapps/chartfx/chartfx6/temp/"+fichier); chartl.setDataSource(txtProvider); chartl.setGallery(Gallery.BAR); %> <%=chartl.getHtmlTag("900","280",".NET")%> <BR> <%=request.getRemoteHost() %> <BR> <%=request.getParameter("param")%> </body> </html> To call this sample, I do in IE (version 6 under Windows XP Pro SP2): http://192.168.0.4/chartfx/ChartFX/samples/database.jsp?param=donnees.txt And the problem is that the graph is not displayed (well, on my machine, which is not 192.168.0.4, it works, but I guess that it is because I've installed ChartFX on it). It's not a problem of file access, because I can see the graph when I change the ".NET" parameter to "PNG". I've correctly updated the file web.xml with the mime-type of DLL file, but it doesn't work anyway. Have I missed something? Please, help meeeeeeeeeeeeeee :-) Thanks in advance! JuJu Link to comment Share on other sites More sharing options...
Software FX Posted October 15, 2004 Report Share Posted October 15, 2004 Hi, do you get an error message or a small red cross? First of all, be sure the .NET settings in the client computer are set to FULL Trust to that Server (or IP in your case). This is more likely the problem. Also, that a look at the sour of the page you get, is will look something like this: <object id="Chart1" classid="/chartfx/chartfx6/download/ChartFX.MainClient.DLL#SoftwareFX.ChartFX.Internet.MainClient" WIDTH="450" HEIGHT="280" > <PARAM NAME="DataPath" VALUE="/chartfx//chartfx6/temp/CFT1015_0858201B4BA.chw"> <PARAM NAME="AssemblyTarget" VALUE="ChartFX.Internet.Client, Version=6.0.1602.26513, Culture=neutral, PublicKeyToken=a1878e2052c08dce" > <PARAM NAME="ClassTarget" VALUE="SoftwareFX.ChartFX.Internet.Client.Chart" > </object> - Check if you can get to the dll by typing in your browser http://192.168.0.4/chartfx/chartfx6/download/ChartFX.MainClient.DLL or http://192.168.0.4/chartfx/chartfx6/download/ChartFX.Internet.Client.DLL. If you can't get it, check that the files exist on the server. - Check if the chart file (.chw) is being generated in the chartfx6/temp folder. - Finally, be sure you have restarted the application after you make changes in your web.xml GA SoftwareFX "JuJu" <jujut@free.fr> wrote in message news:$yib32osEHA.3240@webserver3.softwarefx.com... > Hi. > > I'm using ChartFX for Java trial version with a JDK 1.4.2_05 with Jakarta > Tomcat 5.0.28. > And I try the following example: > > <%@page import="SoftwareFX.ChartFX.*"%><html> > <head> > <title>Database</title> > </head> > > <body> > <% > ChartServer chartl = new > SoftwareFX.ChartFX.ChartServer(application,request,response); > > String fichier = request.getParameter("param"); > > TextProvider txtProvider = new > TextProvider("/usr/local/jakarta-tomcat-5.0.28/webapps/chartfx/chartfx6/temp/"+fichier); > chartl.setDataSource(txtProvider); > chartl.setGallery(Gallery.BAR); > %> > > <%=chartl.getHtmlTag("900","280",".NET")%> > <BR> > <%=request.getRemoteHost() %> > <BR> > <%=request.getParameter("param")%> > </body> > </html> > > > To call this sample, I do in IE (version 6 under Windows XP Pro SP2): > http://192.168.0.4/chartfx/ChartFX/samples/database.jsp?param=donnees.txt > > And the problem is that the graph is not displayed (well, on my > machine, which is not 192.168.0.4, it works, but I guess that it is > because I've installed ChartFX on it). It's not a problem of file access, > because I can see the graph when I change the ".NET" parameter to "PNG". > I've correctly updated the file web.xml with the mime-type of DLL file, > but it doesn't work anyway. > > Have I missed something? > Please, help meeeeeeeeeeeeeee :-) > > Thanks in advance! > > JuJu Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 15, 2004 Author Report Share Posted October 15, 2004 SoftwareFX Support wrote: > Hi, do you get an error message or a small red cross? > > First of all, be sure the .NET settings in the client computer are set to > FULL Trust to that Server (or IP in your case). This is more likely the > problem. > > Also, that a look at the sour of the page you get, is will look something > like this: > > <object id="Chart1" > classid="/chartfx/chartfx6/download/ChartFX.MainClient.DLL#SoftwareFX.ChartFX.Internet.MainClient" > WIDTH="450" HEIGHT="280" > > <PARAM NAME="DataPath" > VALUE="/chartfx//chartfx6/temp/CFT1015_0858201B4BA.chw"> > <PARAM NAME="AssemblyTarget" VALUE="ChartFX.Internet.Client, > Version=6.0.1602.26513, Culture=neutral, PublicKeyToken=a1878e2052c08dce" > > <PARAM NAME="ClassTarget" VALUE="SoftwareFX.ChartFX.Internet.Client.Chart" > > </object> > > - Check if you can get to the dll by typing in your browser > http://192.168.0.4/chartfx/chartfx6/download/ChartFX.MainClient.DLL or > http://192.168.0.4/chartfx/chartfx6/download/ChartFX.Internet.Client.DLL. > If you can't get it, check that the files exist on the server. > > - Check if the chart file (.chw) is being generated in the chartfx6/temp > folder. > > - Finally, be sure you have restarted the application after you make changes > in your web.xml > > GA > SoftwareFX > > > > "JuJu" <jujut@free.fr> wrote in message > news:$yib32osEHA.3240@webserver3.softwarefx.com... > >>Hi. >> >>I'm using ChartFX for Java trial version with a JDK 1.4.2_05 with Jakarta >>Tomcat 5.0.28. >>And I try the following example: >> >><%@page import="SoftwareFX.ChartFX.*"%><html> >><head> >> <title>Database</title> >></head> >> >><body> >><% >>ChartServer chartl = new >>SoftwareFX.ChartFX.ChartServer(application,request,response); >> >>String fichier = request.getParameter("param"); >> >>TextProvider txtProvider = new >>TextProvider("/usr/local/jakarta-tomcat-5.0.28/webapps/chartfx/chartfx6/temp/"+fichier); >>chartl.setDataSource(txtProvider); >>chartl.setGallery(Gallery.BAR); >>%> >> >><%=chartl.getHtmlTag("900","280",".NET")%> >><BR> >><%=request.getRemoteHost() %> >><BR> >><%=request.getParameter("param")%> >></body> >></html> >> >> >>To call this sample, I do in IE (version 6 under Windows XP Pro SP2): >>http://192.168.0.4/chartfx/ChartFX/samples/database.jsp?param=donnees.txt >> >>And the problem is that the graph is not displayed (well, on my >>machine, which is not 192.168.0.4, it works, but I guess that it is >>because I've installed ChartFX on it). It's not a problem of file access, >>because I can see the graph when I change the ".NET" parameter to "PNG". >>I've correctly updated the file web.xml with the mime-type of DLL file, >>but it doesn't work anyway. >> >>Have I missed something? >>Please, help meeeeeeeeeeeeeee :-) >> >>Thanks in advance! >> >>JuJu > > > Ok, first I have a red cross and no error warning. Everything is fine, except the point dealing with the .NET settings. I don't know at all how to set them Can you explain me what to do or give me an url with a tutorial explaining this? Thanks in advance, your tool is very great! Link to comment Share on other sites More sharing options...
Software FX Posted October 15, 2004 Report Share Posted October 15, 2004 - Control Panel / Administrative Tools / .NET Wizards / Adjust .NET Security - Select "Make changes for this computer" and Click Next - Set Full Trust to "Local Intranet" and "Internet" GA SoftwareFX "JuJu" <jujut@free.fr> wrote in message news:ir5sDqssEHA.3240@webserver3.softwarefx.com... > SoftwareFX Support wrote: >> Hi, do you get an error message or a small red cross? >> >> First of all, be sure the .NET settings in the client computer are set to >> FULL Trust to that Server (or IP in your case). This is more likely the >> problem. >> >> Also, that a look at the sour of the page you get, is will look something >> like this: >> >> <object id="Chart1" >> classid="/chartfx/chartfx6/download/ChartFX.MainClient.DLL#SoftwareFX.ChartFX.Internet.MainClient" >> WIDTH="450" HEIGHT="280" > >> <PARAM NAME="DataPath" >> VALUE="/chartfx//chartfx6/temp/CFT1015_0858201B4BA.chw"> >> <PARAM NAME="AssemblyTarget" VALUE="ChartFX.Internet.Client, >> Version=6.0.1602.26513, Culture=neutral, PublicKeyToken=a1878e2052c08dce" >> > >> <PARAM NAME="ClassTarget" >> VALUE="SoftwareFX.ChartFX.Internet.Client.Chart" > >> </object> >> >> - Check if you can get to the dll by typing in your browser >> http://192.168.0.4/chartfx/chartfx6/download/ChartFX.MainClient.DLL or >> http://192.168.0.4/chartfx/chartfx6/download/ChartFX.Internet.Client.DLL. >> If you can't get it, check that the files exist on the server. >> >> - Check if the chart file (.chw) is being generated in the chartfx6/temp >> folder. >> >> - Finally, be sure you have restarted the application after you make >> changes in your web.xml >> >> GA >> SoftwareFX >> >> >> >> "JuJu" <jujut@free.fr> wrote in message >> news:$yib32osEHA.3240@webserver3.softwarefx.com... >> >>>Hi. >>> >>>I'm using ChartFX for Java trial version with a JDK 1.4.2_05 with Jakarta >>>Tomcat 5.0.28. >>>And I try the following example: >>> >>><%@page import="SoftwareFX.ChartFX.*"%><html> >>><head> >>> <title>Database</title> >>></head> >>> >>><body> >>><% >>>ChartServer chartl = new >>>SoftwareFX.ChartFX.ChartServer(application,request,response); >>> >>>String fichier = request.getParameter("param"); >>> >>>TextProvider txtProvider = new >>>TextProvider("/usr/local/jakarta-tomcat-5.0.28/webapps/chartfx/chartfx6/temp/"+fichier); >>>chartl.setDataSource(txtProvider); >>>chartl.setGallery(Gallery.BAR); >>>%> >>> >>><%=chartl.getHtmlTag("900","280",".NET")%> >>><BR> >>><%=request.getRemoteHost() %> >>><BR> >>><%=request.getParameter("param")%> >>></body> >>></html> >>> >>> >>>To call this sample, I do in IE (version 6 under Windows XP Pro SP2): >>>http://192.168.0.4/chartfx/ChartFX/samples/database.jsp?param=donnees.txt >>> >>>And the problem is that the graph is not displayed (well, on my >>>machine, which is not 192.168.0.4, it works, but I guess that it is >>>because I've installed ChartFX on it). It's not a problem of file access, >>>because I can see the graph when I change the ".NET" parameter to "PNG". >>>I've correctly updated the file web.xml with the mime-type of DLL file, >>>but it doesn't work anyway. >>> >>>Have I missed something? >>>Please, help meeeeeeeeeeeeeee :-) >>> >>>Thanks in advance! >>> >>>JuJu >> >> >> > Ok, first I have a red cross and no error warning. > > Everything is fine, except the point dealing with the .NET settings. I > don't know at all how to set them > Can you explain me what to do or give me an url with a tutorial explaining > this? > > Thanks in advance, your tool is very great! Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 15, 2004 Author Report Share Posted October 15, 2004 Back again. I've changed all these settings as you said, but I still have the red cross. I've looked at the source file generated, it's this: <object id="Chart1" classid="/chartfx/chartfx6/download/ChartFX.MainClient.DLL#SoftwareFX.ChartFX.Internet.MainClient" WIDTH="400" HEIGHT="280" > <PARAM NAME="DataPath" VALUE="/chartfx/chartfx6/temp/CFT1015_0417351D7B9.chw"> <PARAM NAME="AssemblyTarget" VALUE="ChartFX.Internet.Client, Version=6.0.1602.26513, Culture=neutral, PublicKeyToken=a1878e2052c08dce" > <PARAM NAME="ClassTarget" VALUE="SoftwareFX.ChartFX.Internet.Client.Chart" > </object> I can download the dll by typing their address in IE. The chw file is well generated. And I've restarted my Tomcat server (by the way, don't know if it is important but there's a '-' in my domain name (for example frt-fr.domain.com). Thank you for your help. SoftwareFX Support wrote: > - Control Panel / Administrative Tools / .NET Wizards / Adjust .NET Security > - Select "Make changes for this computer" and Click Next > - Set Full Trust to "Local Intranet" and "Internet" > > GA > SoftwareFX > > > "JuJu" <jujut@free.fr> wrote in message > news:ir5sDqssEHA.3240@webserver3.softwarefx.com... > >>SoftwareFX Support wrote: >> >>>Hi, do you get an error message or a small red cross? >>> >>>First of all, be sure the .NET settings in the client computer are set to >>>FULL Trust to that Server (or IP in your case). This is more likely the >>>problem. >>> >>>Also, that a look at the sour of the page you get, is will look something >>>like this: >>> >>><object id="Chart1" >>>classid="/chartfx/chartfx6/download/ChartFX.MainClient.DLL#SoftwareFX.ChartFX.Internet.MainClient" >>>WIDTH="450" HEIGHT="280" > >>><PARAM NAME="DataPath" >>>VALUE="/chartfx//chartfx6/temp/CFT1015_0858201B4BA.chw"> >>><PARAM NAME="AssemblyTarget" VALUE="ChartFX.Internet.Client, >>>Version=6.0.1602.26513, Culture=neutral, PublicKeyToken=a1878e2052c08dce" >>> > >>><PARAM NAME="ClassTarget" >>>VALUE="SoftwareFX.ChartFX.Internet.Client.Chart" > >>></object> >>> >>>- Check if you can get to the dll by typing in your browser >>>http://192.168.0.4/chartfx/chartfx6/download/ChartFX.MainClient.DLL or >>>http://192.168.0.4/chartfx/chartfx6/download/ChartFX.Internet.Client.DLL. >>>If you can't get it, check that the files exist on the server. >>> >>>- Check if the chart file (.chw) is being generated in the chartfx6/temp >>>folder. >>> >>>- Finally, be sure you have restarted the application after you make >>>changes in your web.xml >>> >>>GA >>>SoftwareFX >>> >>> >>> >>>"JuJu" <jujut@free.fr> wrote in message >>>news:$yib32osEHA.3240@webserver3.softwarefx.com... >>> >>> >>>>Hi. >>>> >>>>I'm using ChartFX for Java trial version with a JDK 1.4.2_05 with Jakarta >>>>Tomcat 5.0.28. >>>>And I try the following example: >>>> >>>><%@page import="SoftwareFX.ChartFX.*"%><html> >>>><head> >>>> <title>Database</title> >>>></head> >>>> >>>><body> >>>><% >>>>ChartServer chartl = new >>>>SoftwareFX.ChartFX.ChartServer(application,request,response); >>>> >>>>String fichier = request.getParameter("param"); >>>> >>>>TextProvider txtProvider = new >>>>TextProvider("/usr/local/jakarta-tomcat-5.0.28/webapps/chartfx/chartfx6/temp/"+fichier); >>>>chartl.setDataSource(txtProvider); >>>>chartl.setGallery(Gallery.BAR); >>>>%> >>>> >>>><%=chartl.getHtmlTag("900","280",".NET")%> >>>><BR> >>>><%=request.getRemoteHost() %> >>>><BR> >>>><%=request.getParameter("param")%> >>>></body> >>>></html> >>>> >>>> >>>>To call this sample, I do in IE (version 6 under Windows XP Pro SP2): >>>>http://192.168.0.4/chartfx/ChartFX/samples/database.jsp?param=donnees.txt >>>> >>>>And the problem is that the graph is not displayed (well, on my >>>>machine, which is not 192.168.0.4, it works, but I guess that it is >>>>because I've installed ChartFX on it). It's not a problem of file access, >>>>because I can see the graph when I change the ".NET" parameter to "PNG". >>>>I've correctly updated the file web.xml with the mime-type of DLL file, >>>>but it doesn't work anyway. >>>> >>>>Have I missed something? >>>>Please, help meeeeeeeeeeeeeee :-) >>>> >>>>Thanks in advance! >>>> >>>>JuJu >>> >>> >>> >>Ok, first I have a red cross and no error warning. >> >>Everything is fine, except the point dealing with the .NET settings. I >>don't know at all how to set them >>Can you explain me what to do or give me an url with a tutorial explaining >>this? >> >>Thanks in advance, your tool is very great! > > > Link to comment Share on other sites More sharing options...
Software FX Posted October 15, 2004 Report Share Posted October 15, 2004 Dear JuJu, Just a thought and not to step on GA's feet but... If you hit this website do you get a request to download a chw file? http://<localhost>/chartfx/chartfx6/temp/CFT1015_0417351D7B9.chw We just use the object tag to associate the object with its data path. Secondly, goto the command prompt from the machine where you are trying to view the .net control and type this gacutil /ldl It SHOULD list you a bunch of dlls downloaded. Something like this Microsoft ® .NET Global Assembly Cache Utility. Version 1.1.4322.573 Copyright © Microsoft Corporation 1998-2002. All rights reserved. The cache of downloaded files contains the following entries: ChartFX.Internet.Base, Version=6.0.*.*, Culture=neutral, PublicKeyToken=null, Custom=null ChartFX.Internet.Client, Version=6.0*.*, Culture=neutral, PublicKeyToken=null, Custom=null ChartFX.Main.Client, Version=6.0*.*, Culture=neutral, PublicKeyToken=null, Custom=null Number of items = 2 If you see something looks like it is from SoftwareFX then you know that your browser is downloading the .net Client part. What do you see? -charles Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 18, 2004 Author Report Share Posted October 18, 2004 Software FX Support wrote: > Dear JuJu, > Just a thought and not to step on GA's feet but... > If you hit this website do you get a request to download a chw file? > http://<localhost>/chartfx/chartfx6/temp/CFT1015_0417351D7B9.chw > We just use the object tag to associate the object with its data path. > > Secondly, goto the command prompt from the machine where you are trying to > view the .net control and type this > gacutil /ldl > It SHOULD list you a bunch of dlls downloaded. > Something like this > > Microsoft ® .NET Global Assembly Cache Utility. Version 1.1.4322.573 > Copyright © Microsoft Corporation 1998-2002. All rights reserved. > > The cache of downloaded files contains the following entries: > ChartFX.Internet.Base, Version=6.0.*.*, Culture=neutral, > PublicKeyToken=null, Custom=null > ChartFX.Internet.Client, Version=6.0*.*, Culture=neutral, > PublicKeyToken=null, Custom=null > ChartFX.Main.Client, Version=6.0*.*, Culture=neutral, > PublicKeyToken=null, Custom=null > Number of items = 2 > > If you see something looks like it is from SoftwareFX then you know that > your browser is downloading the .net Client part. > What do you see? > > -charles > > Hello Charles. Thank you for your answer. So, when I hit my website, I don't have any request to download the file, but instead, my IE displays the content of the file (beginning with "CFX6...". And I've used the gacutil.exe software, that has displayed: Microsoft ® .NET Global Assembly Cache Utility. Version 1.1.4318.0 Copyright © Microsoft Corporation 1998-2002. All rights reserved. The cache of downloaded files contains the following entries: ChartFX.Internet.Base, Version=6.0.1602.26463, Culture=neutral, PublicKeyToken=a1878e2052c08dce, Custom=null ChartFX.Internet.Client, Version=6.0.1602.26513, Culture=neutral, PublicKeyToken=a1878e2052c08dce, Custom=null ChartFX.Internet.Client, Version=6.0.1602.26513, Culture=neutral, PublicKeyToken=a1878e2052c08dce, Custom=null ChartFX.MainClient, Version=6.0.1201.29676, Culture=neutral, PublicKeyToken=a1878e2052c08dce, Custom=null ChartFX.MainClient, Version=6.0.1201.29676, Culture=neutral, PublicKeyToken=a1878e2052c08dce, Custom=null ChartFX.Internet.Client, Version=6.0.1602.26513, Culture=neutral, PublicKeyToken=a1878e2052c08dce, Custom=null Number of items = 6 Thank you for your help. JuJu Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 18, 2004 Author Report Share Posted October 18, 2004 JuJu wrote: > Software FX Support wrote: > >> Dear JuJu, >> Just a thought and not to step on GA's feet but... >> If you hit this website do you get a request to download a chw file? >> http://<localhost>/chartfx/chartfx6/temp/CFT1015_0417351D7B9.chw >> We just use the object tag to associate the object with its data path. >> >> Secondly, goto the command prompt from the machine where you are >> trying to view the .net control and type this >> gacutil /ldl >> It SHOULD list you a bunch of dlls downloaded. >> Something like this >> >> Microsoft ® .NET Global Assembly Cache Utility. Version 1.1.4322.573 >> Copyright © Microsoft Corporation 1998-2002. All rights reserved. >> >> The cache of downloaded files contains the following entries: >> ChartFX.Internet.Base, Version=6.0.*.*, Culture=neutral, >> PublicKeyToken=null, Custom=null >> ChartFX.Internet.Client, Version=6.0*.*, Culture=neutral, >> PublicKeyToken=null, Custom=null >> ChartFX.Main.Client, Version=6.0*.*, Culture=neutral, >> PublicKeyToken=null, Custom=null >> Number of items = 2 >> >> If you see something looks like it is from SoftwareFX then you know >> that your browser is downloading the .net Client part. >> What do you see? >> >> -charles >> >> > Hello Charles. > > Thank you for your answer. > So, when I hit my website, I don't have any request to download the > file, but instead, my IE displays the content of the file (beginning > with "CFX6...". > > And I've used the gacutil.exe software, that has displayed: > Microsoft ® .NET Global Assembly Cache Utility. Version 1.1.4318.0 > Copyright © Microsoft Corporation 1998-2002. All rights reserved. > > > The cache of downloaded files contains the following entries: > ChartFX.Internet.Base, Version=6.0.1602.26463, Culture=neutral, > PublicKeyToken=a1878e2052c08dce, Custom=null > ChartFX.Internet.Client, Version=6.0.1602.26513, > Culture=neutral, PublicKeyToken=a1878e2052c08dce, Custom=null > ChartFX.Internet.Client, Version=6.0.1602.26513, > Culture=neutral, PublicKeyToken=a1878e2052c08dce, Custom=null > ChartFX.MainClient, Version=6.0.1201.29676, Culture=neutral, > PublicKeyToken=a1878e2052c08dce, Custom=null > ChartFX.MainClient, Version=6.0.1201.29676, Culture=neutral, > PublicKeyToken=a1878e2052c08dce, Custom=null > ChartFX.Internet.Client, Version=6.0.1602.26513, > Culture=neutral, PublicKeyToken=a1878e2052c08dce, Custom=null > > Number of items = 6 > > Thank you for your help. > JuJu Hmmmmmmm, in order to test if the DLL were correctly downloaded, I've deleted the content of the download cache, and after seeing the page containing the ActiveChart graph, I've typed gacutil /ldl and the displays was: Microsoft ® .NET Global Assembly Cache Utility. Version 1.1.4318.0 Copyright © Microsoft Corporation 1998-2002. All rights reserved. The cache of downloaded files contains the following entries: Number of items = 0 It is very strange... JuJu. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.