Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Custom sharp can not show on iis7 in JavaApplet (Read 5117 times)
ksbing2002
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Oct 27th, 2009
Custom sharp can not show on iis7 in JavaApplet
Oct 27th, 2009 at 4:05am
Print Post  
Dear Sir:

I want to test the feature of Custom Sharp in JavaApplet mode.

I found and download the example as below:

This example loads a shape library by setting ShapeLibraryLocation:
https://mindfusion.eu/_samples/ShapelibTest.zip

It work on vs2008 development environment, custom sharp can display, save and load everything is fine.

However, we deploy to iis7 on vs2008 server, create a web site and run on ie8/firefox3.5. The custom sharp can not display.

Could you please help us? Thanks in advance!

I am sorry for my poorly english.

ps. I downloaded and installed v 3.02.

Best Regards
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom sharp can not show on iis7 in JavaApple
Reply #1 - Oct 27th, 2009 at 6:31am
Print Post  
Hi,

If you enable IIS logging for the site, what http result code do you see logged for the GET request for the shape library file? Can you see any exceptions displayed in the Java console?

Best Regards,
Stoyan
  
Back to top
 
IP Logged
 
ksbing2002
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Oct 27th, 2009
Re: Custom sharp can not show on iis7 in JavaApple
Reply #2 - Oct 27th, 2009 at 7:13am
Print Post  
Dear Stoyo:

Thanks for your reply. I past part of log information. Thanks.


Code
Select All
Reading certificates from 11 http://localhost/JDiagram.jar | C:\Users\RC\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\26\4928115a-67dd1ac3.idx
CreateGUI didn't complete successfully.
java.io.FileNotFoundException: http://localhost/test.shl
java.lang.RuntimeException: java.io.FileNotFoundException: http://localhost/test.shl

at com.mindfusion.diagramming.ShapeLibrary.loadFrom(Unknown Source)

at com.mindfusion.diagramming.ShapeListBoxApplet.init(Unknown Source)

at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: http://localhost/test.shl

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)

... 4 more
CreateGUI didn't complete successfully.
 



Code
Select All
#Software: Microsoft Internet Information Services 7.5
#Version: 1.0
#Date: 2009-10-27 07:03:25
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
2009-10-27 07:03:25 ::1 GET /default.aspx - 80 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+Media+Center+PC+6.0;+InfoPath.2;+msn+OptimizedIE8;ENUS) 200 0 0 1197
2009-10-27 07:03:25 127.0.0.1 GET /META-INF/services/javax.xml.parsers.DocumentBuilderFactory - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 0 2 0
2009-10-27 07:03:25 127.0.0.1 GET /META-INF/services/javax.xml.parsers.DocumentBuilderFactory - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 0 2 0
2009-10-27 07:03:25 127.0.0.1 GET /all_shapes.shl - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 3 50 0
2009-10-27 07:03:25 127.0.0.1 GET /test.shl - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 3 50 0
2009-10-27 07:03:28 127.0.0.1 GET /META-INF/services/javax.xml.parsers.DocumentBuilderFactory - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 0 2 0
2009-10-27 07:03:28 127.0.0.1 GET /META-INF/services/javax.xml.transform.TransformerFactory - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 0 2 0
2009-10-27 07:03:28 127.0.0.1 GET /META-INF/services/com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 0 2 0
2009-10-27 07:03:28 ::1 POST /default.aspx - 80 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+Media+Center+PC+6.0;+InfoPath.2;+msn+OptimizedIE8;ENUS) 200 0 0 82
2009-10-27 07:03:28 127.0.0.1 GET /META-INF/services/javax.xml.parsers.DocumentBuilderFactory - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 0 2 0
2009-10-27 07:03:28 127.0.0.1 GET /all_shapes.shl - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 3 50 15
2009-10-27 07:03:28 127.0.0.1 GET /META-INF/services/javax.xml.parsers.DocumentBuilderFactory - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 0 2 15
2009-10-27 07:03:28 127.0.0.1 GET /test.shl - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 3 50 0
2009-10-27 07:03:31 127.0.0.1 GET /META-INF/services/javax.xml.parsers.DocumentBuilderFactory - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 0 2 0
2009-10-27 07:03:31 127.0.0.1 GET /META-INF/services/javax.xml.transform.TransformerFactory - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 0 2 0
2009-10-27 07:03:31 127.0.0.1 GET /META-INF/services/com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 0 2 0
2009-10-27 07:03:31 ::1 POST /default.aspx - 80 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+Media+Center+PC+6.0;+InfoPath.2;+msn+OptimizedIE8;ENUS) 200 0 0 15
2009-10-27 07:03:31 127.0.0.1 GET /META-INF/services/javax.xml.parsers.DocumentBuilderFactory - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 0 2 0
2009-10-27 07:03:31 127.0.0.1 GET /all_shapes.shl - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 3 50 0
2009-10-27 07:03:31 127.0.0.1 GET /META-INF/services/javax.xml.parsers.DocumentBuilderFactory - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 0 2 0
2009-10-27 07:03:31 127.0.0.1 GET /test2.shl - 80 - 127.0.0.1 Mozilla/4.0+(Windows+7+6.1)+Java/1.6.0_16 404 3 50 0
 



Best Regards.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom sharp can not show on iis7 in JavaApple
Reply #3 - Oct 27th, 2009 at 7:23am
Print Post  
Note the 404s on the log lines for the .shl files, that's a "not found" error. Have you copied the shape library files to the IIS-published site folder?

Stoyan
  
Back to top
 
IP Logged
 
ksbing2002
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Oct 27th, 2009
Re: Custom sharp can not show on iis7 in JavaApple
Reply #4 - Oct 27th, 2009 at 7:45am
Print Post  
Dear Stoyo:

Yes, I have copied .shl to the IIS-published side folder.
I soloved this problem by add the "mimeMap" in web.config see below. Thanks for your help.

Code
Select All
<system.webServer>
<staticContent>
            <mimeMap fileExtension=".shl" mimeType="text/xml" />
        </staticContent>
</system.webServer>
 



Do you think is it a good solution? Thanks.

Best Regards.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom sharp can not show on iis7 in JavaApple
Reply #5 - Oct 27th, 2009 at 8:37am
Print Post  
Do you mean iis7 serves only files with some specified filename extensions? I suppose in such case adding the extension to the mimeMap is a good solution 8)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint