• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOApplet (close to success...)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOApplet (close to success...)


  • Subject: Re: WOApplet (close to success...)
  • From: Erwin <email@hidden>
  • Date: Fri, 14 Jan 2005 11:46:36 +0100

OK I can see the output :

---------------
<main> Waiting for requests...
<WorkerThread0> [AppletPTViewer:WOApplet] width <== (class java.lang.Integer: 320)
<WorkerThread0> [AppletPTViewer:WOApplet] height <== (class java.lang.Integer: 200)
<WorkerThread0> [AppletPTViewer:WOApplet] code <== (class java.lang.String: "ptviewer.class")
<WorkerThread0> [AppletPTViewer:WOApplet] file <== (com.webobjects.appserver._private.WOKeyValueAssociation: "/Users/erwin/Sites/onvisite/pictures/anon/pano/image.jpg")
<WorkerThread0> [AppletPTViewer:WOApplet] codebase <== (class java.lang.String: "/WebObjects/java/ptviewer")
<WorkerThread0> [AppletPTViewer:WOApplet] archive <== (class java.lang.String: "ptviewer.jar")
---------------


WT0 get the bindings correctly....
but then , PTViewer try to get a PTDefault.html file (empty or additional param) I put it in /WebObjects/java/ptviewer/ no success,
PTViewer doc states that it should be placed in the same directory with with the applet/jar files ....
but it seems not to be finding it.....


---------------
[2005-01-14 11:31:06 CET] <WorkerThread1> <com.webobjects.appserver._private.WOStaticResourceRequestHandler> Unable to get contents of file for uri. file: /Library/WebServer/Documents/cgi-bin/WebObjects/PTDefault.html; uri: /cgi-bin/WebObjects/PTDefault.html
[2005-01-14 11:31:05 CET] <WorkerThread1> java.io.FileNotFoundException: /Library/WebServer/Documents/cgi-bin/WebObjects/PTDefault.html (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at com.webobjects.appserver._private.WOStaticResourceRequestHandler.handleR equest(WOStaticResourceRequestHandler.java:76)
at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.jav a:1306)
at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread. java:173)
at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java :254)
at java.lang.Thread.run(Thread.java:552)
............




Le Jan 13, 2005, à 7:25 PM, Chuck Hill a écrit :

Add this to the bindings:
WODebug = true;
And see what the convertedFilePath is returning. Might be a WOResourceMangler URL that is getting requested twice. The second time will fail. Or you might have set it up wrong and the returned URL is wrong / an error URL.


Chuck


On Jan 13, 2005, at 10:17 AM, Erwin wrote:

I have an applet reading a picture and displaying it in VR-panoramic format
The applet is running well but loading the picture ONLY when I defined the component as 'static'
and pass one parameter... (file = value)
(file = "/pictures/myPicture" .... in Library/WebServer/Documents)


I need to make this WOApplet Dynamic and give it a dynamic file path, so I defined the WOApplet like that :

Applet1: WOApplet {
	archive = "ptviewer.jar";
	code = "ptviewer.class";
	codebase = "/WebObjects/java";
	file = convertedFilePath;
	height = 200;
	width = 320;
}

the Applet starts but no image is loaded....
how can I do that nicely ?

thanks

Erwin _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net


This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: WOApplet (close to success...)
      • From: Chuck Hill <email@hidden>
References: 
 >WOApplet (close to success...) (From: Erwin <email@hidden>)
 >Re: WOApplet (close to success...) (From: Chuck Hill <email@hidden>)

  • Prev by Date: changing font details for a WOBatchNavigationBar
  • Next by Date: Re: changing font details for a WOBatchNavigationBar
  • Previous by thread: Re: WOApplet (close to success...)
  • Next by thread: Re: WOApplet (close to success...)
  • Index(es):
    • Date
    • Thread