|
Sweet Home 3D Forum » List all forums » » Forum: Features use and tips » » » Thread: Deploy extracted sh3d file in web application tomcat |
|
| Print at Dec 15, 2025, 11:32:02 PM | View all posts in this thread on one page |
| Posted by workvaani at Jun 16, 2011, 3:37:46 AM |
Deploy extracted sh3d file in web application tomcatI 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 |
| Posted by Puybaret at Jun 16, 2011, 9:10:44 AM |
|
Re: Deploy extracted sh3d file in web application tomcat If defaultHome is "home", then readHomeURL should be "%s.sh3d", no? ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by workvaani at Jun 16, 2011, 2:50:50 PM |
|
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?. Regards, Vaani |
| Posted by Puybaret at Jun 16, 2011, 3:11:12 PM |
|
Re: Deploy extracted sh3d file in web application tomcat What do you mean by "extracted sh3d"??? ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by workvaani at Jun 16, 2011, 4:56:36 PM |
|
Re: Deploy extracted sh3d file in web application tomcat I had used 7zip to extract contents of sh3d file to a folder. Could these contents be used instead?. |
| Posted by Puybaret at Jun 16, 2011, 5:08:17 PM |
|
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 |
|
|
Current timezone is GMT Dec 15, 2025, 11:32:02 PM |