[1.2.4] How to properly deploy onto Tomcat?>

35 views
Skip to first unread message

E Marshall

unread,
Oct 27, 2015, 2:50:44 PM10/27/15
to play-framework
We have this legacy project that someone had setup a few years ago and they have since long gone from the company.
We have no information on what they did nor how they did.
I have managed to get a project in Eclipse based on the folder structure they have doing the following steps.

Create a new Play project
play new myProject
play eclipsify myProject

Created 2 new projects in Eclipse
myProject which is to the above step
play project which points to the play_1.2.4 directory

Not much else I can figure out what to do with this project in Eclipse.

Anyhow, I can run the following Play commands
play dependencies myProject
play precompile myProject

Now in the myProject/precompile folder I can see all of the directories and .class files.

The issue from here is that I'm not clear on how to put this into tomcat with its conf, precompile, template folders and all.
Can anyone point me to something that just tells me what to do.
The last thing I want to do is spend time on a Framework I don't want to use.
We need to get this up and running just for legacy support now until we redo the project without Play.

Appreciate any guidance on this. I've wasted the past week trying to figure out what I've gotten so far.

Nicolas Leroux

unread,
Oct 27, 2015, 2:53:01 PM10/27/15
to play-fr...@googlegroups.com
Just use the play war command in your project directory.

Nicolas

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/4c893dcf-fde1-4c3f-9d4f-ab15303b3db7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

E Marshall

unread,
Oct 27, 2015, 3:44:27 PM10/27/15
to play-framework
Ok so I ran the war command but it seems like I've got way too many files in the war folder now, especially since it contains the source (java) files and duplicates for the generated class files in the folders. Such as in the controllers & models folder.

Which of the folders MUST stay and which CAN go?

Folder PATH listing
C
:\LOCAL\SERVERS\APACHE-TOMCAT-7.0.37\WEBAPPS\myProject
|   web.xml
|  
+---application
|   +---app
|   |   +---controllers
|   |   |     ....java files
|   |   +---helpers
|   |   |     ....java files
|   |   +---jobs
|   |   |     ....java files
|   |   +---models
|   |   |     ....java files
|   |   +---notifiers
|   |   |     ....java files
|   |   \---views
|   |   |     ....java files
|   +---bin
|   |   +---controllers
|   |   |       ....class files
|   |   |      
|   |   +---helpers
|   |   |       ....class files
|   |   |      
|   |   +---jobs
|   |   |       ....class files
|   |   |      
|   |   +---models
|   |   |       ....class files
|   |   |      
|   |   +---notifiers
|   |   |       ....class files
|   |   |      
|   |   \---views
|   +---conf
|   |       application.conf
|   |       dependencies.yml
|   |       fieldmapping
|   |       log4j.properties
|   |       messages
|   |       routes
|   +---eclipse
|   |       Connect JPDA to myProject.launch
|   |       myProject.launch
|   |       Test myProject.launch
|   |      
|   +---lib
|   |       jar files
|   +---modules
|   |   +---cas-3.1
|   |   +---crud-1.2.4
|   |   +---pdf-1.0
|   |   \---secure-1.2.4
|   +---precompiled
|   |   +---java
|   |   |   +---controllers
|   |   |   |   |   ...class files
|   |   |   |   \---modules
|   |   |   |       \---cas
|   |   |   +---helpers
|   |   |   |       ...class files
|   |   |   |       CheatSheetHelper$3.class
|   |   |   +---jobs
|   |   |   |       ...class files
|   |   |   |      
|   |   |   +---models
|   |   |   |       ...class files
|   |   |   |      
|   |   |   \---notifiers
|   |   |           ...class
|   |   |          
|   |   \---templates
|   |                          
|   +---public
|   |   |   V3_Seeker_Query_Syntax_Document_04FEB2013.pdf
|   |   |  
|   |   +---css  
|   |   +---images
|   |   +---javascripts
|   |   +---stylesheets
|   |   \---xsl
|   \---test
|           Application.test.html
|           ApplicationTest.java
|           BasicTest.java
|           data.yml
|          
+---classes
|       application.conf
|       dependencies.yml
|       fieldmapping
|       log4j.properties
|       messages
|       routes
|      
+---framework
|   \---templates
|       +---errors
|       |       403.html
|       |       404.html
|       |       404.json
|       |       404.txt
|       |       404.xml
|       |       500.html
|       |       500.json
|       |       500.txt
|       |       500.xml
|       |      
|       \---tags
|               404.html
|               500.html
|               errors.tag
|               fixture.tag
|               i18n.tag
|               script.tag
|               select.tag
|               selenium.html
|               stylesheet.tag
|               welcome.html
|              
+---lib
|       jar files ...
\---resources
        messages
       



Reply all
Reply to author
Forward
0 new messages