Joined: Jun 15, 2011
Post Count: 3
Status:
Offline
Deploy extracted sh3d file in web application tomcat
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
Joined: Jun 15, 2011
Post Count: 3
Status:
Offline
Re: Deploy extracted sh3d file in web application tomcat
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?.
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
Re: Deploy extracted sh3d file in web application tomcat
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