|
Sweet Home 3D Forum » List all forums » » Forum: Installation » » » Thread: Need to deploy on Tomcat serer |
|
| Print at Dec 20, 2025, 10:13:06 AM | |
| Posted by prabath at Dec 24, 2014, 6:33:15 AM |
|
Need to deploy on Tomcat serer Hi I want to deploy sweethome3d jar on a server. Please tell me how to do that |
| Posted by Puybaret at Dec 25, 2014, 7:57:32 PM |
|
Re: Need to deploy on Tomcat serer What do you mean by deploying sweethome3d jar on a server? You want to try to deploy the online version on a web server? If it's the case, the source code and the search engine of the forum will give you many hints. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by prabath at Dec 29, 2014, 6:17:38 AM |
|
Re: Need to deploy on Tomcat serer Thank you for your reply. yes of Course. I want to deploy the online version and want to access through a browser. (like - http://www.sweethome3d.com/SweetHome3DOnline.jsp). Please help me to deploy this. Thank you |
| Posted by prabath at Dec 29, 2014, 11:42:10 AM |
|
Re: Need to deploy on Tomcat serer Thanks for your Hint. I was able to set it up. When I set it up as a desktop application, application doen't allow me to save the designed floor plan. It says "Can't check if home exists". Please help me. |
| Posted by prabath at Dec 30, 2014, 11:26:10 AM |
|
Re: Need to deploy on Tomcat serer Appreciate your reply... |
| Posted by Puybaret at Dec 30, 2014, 2:59:24 PM |
|
Re: Need to deploy on Tomcat serer Look at the javadoc and how it's deployed on sweethome3d.com. The following threads might help you too: http://www.sweethome3d.com/support/forum/viewthread_thread,1113 http://www.sweethome3d.com/support/forum/viewthread_thread,1454 http://www.sweethome3d.com/support/forum/viewthread_thread,1435 http://www.sweethome3d.com/support/forum/viewthread_thread,2608 There's no other documentation about this subject, but feel free to write one if you want. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by prabath at Jan 9, 2015, 8:24:13 AM |
|
Re: Need to deploy on Tomcat serer Thanks Putybert. |
| Posted by prabath at Jan 9, 2015, 10:07:20 AM |
|
Re: Need to deploy on Tomcat serer Hi Mr Puybaret I want to load the Floor Plan directly. All Parameters should be set internally. Please tell me how to do it. Thank YOu |
| Posted by prabath at Jan 12, 2015, 12:12:29 PM |
|
Re: Need to deploy on Tomcat serer Appreciate your reply... |
| Posted by Puybaret at Jan 12, 2015, 1:30:16 PM |
|
Re: Need to deploy on Tomcat serer You should set the floor plan you want in the applet parameter named defaultHome. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by prabath at Jan 13, 2015, 5:02:41 AM |
|
Re: Need to deploy on Tomcat serer Thanks for your reply |
| Posted by prabath at Jan 16, 2015, 3:58:31 AM |
|
Re: Need to deploy on Tomcat serer I changed the source code to auto load the Floor Plan to the grid. It was successful when I ran the system as a Applet Application. But when I tried to Run as a web application, it doesn't work. Please help to sort out this issue. |
| Posted by Puybaret at Jan 16, 2015, 7:50:58 AM |
|
Re: Need to deploy on Tomcat serer How could I guess what you programmed??? Why not trying the defaultHome applet parameter? ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by charles0215 at Jan 23, 2015, 3:04:30 AM |
|
Re: Need to deploy on Tomcat serer Thanks for these infos !!! |
| Posted by prabath at Jan 27, 2015, 11:47:37 AM |
|
Re: Need to deploy on Tomcat serer Hi Puybaret I went through the code you written. It's amazing work u have done. I want to do 1 more thing just to hide the 3D view. Can you pls tell me how to do that |
| Posted by Puybaret at Jan 27, 2015, 5:38:17 PM |
|
Re: Need to deploy on Tomcat serer In a subclass of AppletApplication, you should override getViewFactory method to return a view factory (for example an instance of a subclass of SwingViewFactory) with a createView3D method that will return null. Then, in a subclass of SweetHome3DApplet, override the method getApplicationClassName to return the name of the subclass of AppletApplication you programmed. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by prabath at Jan 28, 2015, 4:56:47 AM |
|
Re: Need to deploy on Tomcat serer Thank You Puybaret.. |
| Posted by prabath at Jan 29, 2015, 7:18:52 PM |
|
Re: Need to deploy on Tomcat serer Hi Puybaret.. I want to add a button next to ZOOM OUT buttons. Please tell me how to add button. I found below link. Some method do not exist in that class. http://www.sweethome3d.com/support/forum/view...F1D4E82105E7F6C79DF1A2202 Thank You |
| Posted by Puybaret at Jan 29, 2015, 8:40:29 PM |
|
Re: Need to deploy on Tomcat serer Prabath, you request a lot of information but don't give any info to the community about the project you work on. It would be nice to present what you want to achieve, no? ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by prabath at Jan 30, 2015, 12:36:59 AM |
|
Re: Need to deploy on Tomcat serer :) I'm very sorry Puybaret. I'll explain. I'm developing a online System for the Electricians to design Lights, Sockets and A/C systems for a selected Floor Plan. The application reads the PDF files and can detect the Floor Plans. Floor Plans are loaded with fixed scale. 3D view is not available. It is going to be handled by a separate button. So I struggled to add a new Button but failed. |
| Posted by okh at Jan 30, 2015, 7:34:27 AM |
|
Re: Need to deploy on Tomcat serer .. online System for the Electricians to design Lights, Sockets and A/C systems for a selected Floor Plan. The application reads the PDF files and can detect the Floor Plans. Sounds interesting. You have probably noticed that the question of electric symbols appear from time to time: e.g. 5531: 2D Symbols and the 5416: Schneider project. If your work results in something of interest, it would be great if you would post something about it. And good luck. ok |
| Posted by prabath at Feb 2, 2015, 3:40:43 AM |
|
Re: Need to deploy on Tomcat serer Ys of Course. I'm really interesting. I'll look in to that |
| Posted by prabath at Feb 2, 2015, 10:49:19 AM |
|
Re: Need to deploy on Tomcat serer Hi Puybaret Can you pls help to add a button as requested above? |
| Posted by Puybaret at Feb 2, 2015, 2:44:27 PM |
|
Re: Need to deploy on Tomcat serer Thanks for giving details about your goals. ![]() If you want to add a button to the applet toolbar, you should override createHomeController method in the subclass of AppletApplication you started before. Once you retrieved super implementation, inspire yourself of the (not so cleaned) existing implementation to retrieve the toolbar and add a button to it. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by prabath at Feb 3, 2015, 6:12:51 AM |
|
Re: Need to deploy on Tomcat serer Thank You Puybaret..... |
| Posted by prabath at Feb 3, 2015, 5:48:03 PM |
|
Re: Need to deploy on Tomcat serer Hi Pyubaret I enhanced my application to detect the lines of the Floor plan which is in the grid. I used Boof CV(http://boofcv.org/index.php?title=Main_Page) libraries to do that. For the moment, it doesn't support all the floor plans. I'm improving the my line detecting algorithm. But when I deployed the application on server(as a web application) with new feature, it says BoofCV libraries can't be found. I added BoofCV libraries under "otherLibraries" Tag in build.xml file. It compiles perfectly, but when it runs as a web application , it can't load added Boof CV libs. I would be thankful , if you tell me if there is another way to add libraries. Thank You.. |
| Posted by prabath at Feb 4, 2015, 5:32:35 PM |
|
Re: Need to deploy on Tomcat serer Hi Pyubaret ... I think you will help me on this. I'm bit stuck on this Thank You |
| Posted by Puybaret at Feb 4, 2015, 7:07:30 PM |
|
Re: Need to deploy on Tomcat serer Manage the new library as the other ones of Sweet Home 3D. Llook how batik-svgpathparser-1.7.jar is handled for example, and keep in mind that in applets environment you'll have to update JNLP file as well as applet HTML code. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by prabath at Feb 5, 2015, 3:16:34 AM |
|
Re: Need to deploy on Tomcat serer Thank..... You Puybaret ......., It's working |
| Posted by prabath at Feb 5, 2015, 9:54:53 AM |
|
Re: Need to deploy on Tomcat serer Hi Puybaret.... If you allow me , I would like to answer the questions which are publish in this forum and help the others.. Please let me know your decision.... |
| Posted by prabath at Feb 8, 2015, 1:27:08 PM |
|
Re: Need to deploy on Tomcat serer Hi Puybaret.... I'm bit stuck with one more thing. I was able to Add a button on tool bar as you said. I want to implement 3D view on/off function to that. `Code in Applet Application toolBar.addSeparator(); addActionToToolBar(homeView, HomeView.ActionType.TEST_BUTTON, toolBar); Code in HomePane createAction(ActionType.TEST_BUTTON, preferences, controller, "testMethod"); And Create a method in HomeControler public void testMethod() { System.out.println("Hi there.. I am the test method.. "); is3DViewClicked = true; View view = getHomeController3D().getView(); } Once I press the button, the method is called. But I can't see the 3D view. Could you tell me how to view 3D panel ? Thank You.. |
| Posted by Puybaret at Feb 9, 2015, 3:28:06 PM |
|
Re: Need to deploy on Tomcat serer If you didn't create the 3D view as requested previously, don't be astonished that you can't manage it later! ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by prabath at Feb 10, 2015, 2:56:19 AM |
|
Re: Need to deploy on Tomcat serer The application which I developed using Sweet Home, is capable of detecting floor plan and drawing walls automatically. So If 3D view is enabled, system becomes slow. Therefore I removed 3D view functionality and wanted to add a button to add 3D view functionality. |
| Posted by Puybaret at Feb 10, 2015, 10:19:48 AM |
|
Re: Need to deploy on Tomcat serer If you want to show/hide the 3D view, don't implement an other view factory to avoid its creation. Just make it invisible in the createHomeController method you overrode, and manage the divider of the JSplitPane grand parent of the 3D view when you show/hide the 3D view. If you allow me , I would like to answer the questions which are publish in this forum and help the others. Feel free to help other users! All help is welcomed. ![]() ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by prabath at Feb 10, 2015, 1:33:39 PM |
|
Re: Need to deploy on Tomcat serer That's my issue. I couldn't find how to show/hide 3D pannel. |
| Posted by Puybaret at Feb 10, 2015, 1:59:54 PM |
|
Re: Need to deploy on Tomcat serer What about calling setVisible? ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by prabath at Feb 12, 2015, 6:48:36 AM |
|
Re: Need to deploy on Tomcat serer Hi Puybaret.. Can you pls explain bit more about the solution..? |
| Posted by Puybaret at Feb 12, 2015, 7:52:16 AM |
|
Re: Need to deploy on Tomcat serer In the current version, all classes that implement com.eteks.sweethome3d.viewcontroller.View interface are subclasses of javax.swing.JComponent. So cast 3D view to JComponent to be able to call its setVisible method. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by prabath at Mar 10, 2015, 3:32:41 AM |
|
Re: Need to deploy on Tomcat serer Hi Puybaret.. I tried to fix my requirement as you said. Actually it is not clear to me. Anyway I found a solution to do that and mentioned below the code. Initially I set the 3D pane as 0. HomePane - createMainPane Method else { final JSplitPane mainPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, catalogFurniturePane, planView3DPane); // Set default divider location mainPane.setDividerLocation(0); configureSplitPane(mainPane, home, MAIN_PANE_DIVIDER_LOCATION_VISUAL_PROPERTY, 0.3, true, controller); return mainPane; } Code for Button - Methods in HomeController.java public void enable3DView() { View vv = getHomeController3D().getView(); attachView(vv); show3DView(vv); } /*------3D View-----------------*/ private void show3DView(final View view) { JComponent jc = (JComponent)view; Container parent = jc.getParent(); // dummyComponent.getParent(); if (parent instanceof JSplitPane) { JSplitPane splitPane = (JSplitPane)parent; int loc = splitPane.getDividerLocation(); int min = splitPane.getMinimumDividerLocation(); int max = splitPane.getMaximumDividerLocation(); if(is3DViewClicked){ splitPane.setDividerLocation(0.0); is3DViewClicked = false; } else { splitPane.setDividerLocation(1.0); is3DViewClicked = true; } } Thnak You |
| Posted by prabath at Mar 12, 2015, 5:14:29 AM |
|
Re: Need to deploy on Tomcat serer Hi Puybaret.. In my application , I retrieve the Floor Plan from the server. (Not from the Client side). When I try to save the Floor Plan, It gives a NotSerializableException. Because I load the Floor Plan image through a URL eg : Content c = new URLContent(new URL(AppletApplication.URL_PREFIX + "/restAPI/plan/" + AppletApplication.SELECTED_PLAN_ID +"/image")); I would be thankful, If you are able to give me a solution for this. Thank You........... |
| Posted by Puybaret at Mar 13, 2015, 7:42:37 AM |
|
Re: Need to deploy on Tomcat serer I don't think that a NotSerializableException is due to an issue in the URL or a network error. This exception is probably due to additional classes that you use in your saved homes that are not marked as Serializable. Don't forget to add a serialVersionUID field to your class(es) if you want to keep its compatibility when you'll add new fields and methods to it. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by prabath at Mar 13, 2015, 9:14:55 AM |
|
Re: Need to deploy on Tomcat serer Thank You Puybaret for your Early reply... |
|
|
Current timezone is GMT Dec 20, 2025, 10:13:06 AM |