confused High priority Deploy extracted sh3d file in web application tomcat

This topic has been viewed 2660 times and has 5 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
workvaani
Posts: 3
Joined: Wed Jun 15, 2011 10:00 pm

Deploy extracted sh3d file in web application tomcat

Post by workvaani »

I have done the following configuration:

1. In sweetHome3d applet html file, set the parameters as below:
var parameters = {java_arguments:"-Xmx512m", readHomeURL:"%s", defaultHome:"demo"};

2. In the web application - extracted folder having contents of a demo.sh3d

When I run the application I get below error - stack trace:
I have tried adding different url's like file:/// [complete path] or http:// [folder] server path but still it is not able to open the extracted home folder. Please guide???

com.eteks.sweethome3d.model.RecorderException: Can't read home from demo
at com.eteks.sweethome3d.applet.HomeAppletRecorder.readHome(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.HomeController$22.call(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.HomeController$22.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.ThreadedTaskController$1.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.<init>(Unknown Source)
at com.eteks.sweethome3d.io.DefaultHomeInputStream$HomeObjectInputStream.<init>(Unknown Source)
at com.eteks.sweethome3d.io.DefaultHomeInputStream.readHome(Unknown Source)
... 12 more


Thanks!!,
Vaani
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Deploy extracted sh3d file in web application tomcat

Post by Puybaret »

If defaultHome is "home", then readHomeURL should be "%s.sh3d", no?
Emmanuel Puybaret, Sweet Home 3D creator
workvaani
Posts: 3
Joined: Wed Jun 15, 2011 10:00 pm

Re: Deploy extracted sh3d file in web application tomcat

Post by workvaani »

Thanks that works - but please confirm is it possible to use an extracted sh3d file and reference the folder name in the value of defaultHome? If yes - what configurations are required?.

Regards,
Vaani
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Deploy extracted sh3d file in web application tomcat

Post by Puybaret »

What do you mean by "extracted sh3d"???
Emmanuel Puybaret, Sweet Home 3D creator
workvaani
Posts: 3
Joined: Wed Jun 15, 2011 10:00 pm

Re: Deploy extracted sh3d file in web application tomcat

Post by workvaani »

I had used 7zip to extract contents of sh3d file to a folder. Could these contents be used instead?.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Deploy extracted sh3d file in web application tomcat

Post by Puybaret »

No. Even if a sh3d file is based on zip format, don't extract the files it contains, it won't work with Sweet Home 3D.
Emmanuel Puybaret, Sweet Home 3D creator
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest