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
Deploy extracted sh3d file in web application tomcat
This topic has been viewed 2660 times and has 5 replies
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
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
Regards,
Vaani
Re: Deploy extracted sh3d file in web application tomcat
What do you mean by "extracted sh3d"???
Emmanuel Puybaret, Sweet Home 3D creator
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?.
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
Who is online
Users browsing this forum: No registered users and 1 guest