Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 6
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2413 times and has 5 replies Next Thread
workvaani
Newbie




Joined: Jun 15, 2011
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
confused 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


Thanks!!,
Vaani
[Jun 16, 2011, 1:37:46 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9420
Status: Offline
Reply to this Post  Reply with Quote 
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
[Jun 16, 2011, 7:10:44 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
workvaani
Newbie




Joined: Jun 15, 2011
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
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
[Jun 16, 2011, 12:50:50 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9420
Status: Offline
Reply to this Post  Reply with Quote 
Re: Deploy extracted sh3d file in web application tomcat

What do you mean by "extracted sh3d"???
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Jun 16, 2011, 1:11:12 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
workvaani
Newbie




Joined: Jun 15, 2011
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
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?.
[Jun 16, 2011, 2:56:36 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9420
Status: Offline
Reply to this Post  Reply with Quote 
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
[Jun 16, 2011, 3:08:17 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved