Git-Host / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
0 stars 1 forks source link

Doc - Building/Deploying from a Windows Environment #141

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
---------- Forwarded message ----------
From: gazlet <gazlet@gmail.com>
Date: Sat, Feb 27, 2010 at 12:03 AM
Subject: Re: Error [EnhancerTask cannot be found] while running on
development server
To: Vosao CMS Development <vosao-cms-development@googlegroups.com>

Changes to get vosao building on windows and also to run development
server locally ("ant
runserver" from cmd prompt) :

For Building:

1. install svn, ant, mvn; verify by invoking "svn" "ant" "mvn" on
command line and they execute. (set PATH to include bin folder of
these utils, and JAVA_HOME to JDK path)

2. "gazlet" is my app name, so i invoke svn to get vosao source code
as "svn checkout http://vosao.googlecode.com/svn/trunk/ gazlet" ;
This
creates a new "gazlet" folder with vosao source.

3. download appengine java SDK or if you use eclipse google
plugin(which i do) its already installed; Modify "gazlet/web/
ant.properties" file in the source with appengine SDK path :
appengine.sdk.home=C:\eclipse\plugins
\com.google.appengine.eclipse.sdkbundle.
1.3.1_1.3.1.v201002101412\appengine-java-sdk-1.3.1

4. cd gazlet; and execute "mvn -Dappname=gazlet clean package"; you
should see success (more like 3 success msgs or something) at the end
of build.

5. Now you have a successul vosao build in "gazlet/web/target/
vosaocms" folder (also as a war "gazlet/web/target/vosaocms.war")

6. To deploy to google app engine, modify "java" path in appcfg.cmd
(C:
\eclipse\plugins\com.google.appengine.eclipse.sdkbundle.
1.3.1_1.3.1.v201002101412\appengine-java-sdk-1.3.1\bin\appcfg.cmd)
like below:
"C:\Program Files\Java\jdk1.6.0_18\bin\java" -cp "%~dp0\..\lib
\appengine-tools-api.jar" com.google.appengine.tools.admin.AppCfg %*

7.  Invoke appcfg.cmd to deploy to google (remember u are still in
gazlet folder in cmd prompt);
  cd web
  C:\eclipse\plugins\com.google.appengine.eclipse.sdkbundle.
1.3.1_1.3.1.v201002101412\appengine-java-sdk-1.3.1\bin\appcfg.cmd
update target\vosaocms
you should see successful deployment message

For running devlopment server:
-------------------------------------------

1. I had to manually change web/ant-macros.xml
"appengine.tools.classpath" to hardcoded path of appengine tools api
jar as below  :
<property name="appengine.tools.classpath" location="C:\eclipse\plugins
\com.google.appengine.eclipse.sdkbundle1.3.1_1.3.1.v201002101412\appengine-
java-sdk-1.3.1\lib\appengine-tools-
api.jar"/>

2. Make sure you are in "web" folder in cmd prompt and execute "ant
runserver";

3. You should see successfully startup and your app available
as localhost:9000.

please let me know if you notice any problems on windows vosao build
or deployment

Original issue reported on code.google.com by ted.husted on 3 Mar 2010 at 1:16

GoogleCodeExporter commented 9 years ago
I have followed these steps and successfully build/deployed vosao when current 
vosao 
code was v0.2.  I've downloaded the latest vosao code (rev. 603) and followed 
these 
steps again but failed this time.  To make sure the errors were not caused by 
previous vosao code(svn conflicts), I have also created a new folder ("gazlet" 
above) 
and placed a fresh vosao code from the repo - still experiencing the build 
error.  
Here is the build error by the way.

INFO: Pre-instantiating singletons in 
org.springframework.beans.factory.support.DefaultListableBeanFactory@b90ff7:
defining beans 
[systemService,pluginResourceCache,pluginClassLoaderFactory,entityCache,queryCac
he,ab
stractDao,fileC
hunkDao,fileDao,folderDao,userDao,templateDao,configDao,formDao,formConfigDao,co
mment
Dao,fieldDao,seoUrlDao,languag
eDao,contentDao,messageDao,groupDao,userGroupDao,contentPermissionDao,folderPerm
issio
nDao,structureTemplateDao,plug
inDao,pluginResourceDao,tagDao,pageTagDao,structureDao,pageDao,dao,abstractBusin
ess,t
emplateBusiness,configBusiness
,formBusiness,fileBusiness,fieldBusiness,messageBusiness,userBusiness,structureB
usine
ss,structureTemplateBusiness,c
ontentPermissionBusiness,folderPermissionBusiness,groupBusiness,pluginResourceBu
sines
s,tagBusiness,pluginBusiness,c
ommentBusiness,folderBusiness,pageBusiness,business,searchEngine,setupBean,daoTa
skAda
pter,importExportBusiness,abst
ractService,fileService,commentService,templateService,formService,fieldService,
seoUr
lService,userService,languageS
ervice,messageService,groupService,contentPermissionService,folderPermissionServ
ice,s
tructureService,structureTempl
ateService,pluginService,tagService,configService,folderService,pageService,back
Servi
ce,loginFrontService,formFront
Service,commentFrontService,searchFrontService,frontService,milton.resource.fact
ory,b
asic.auth.handler,auth.service
,milton.response.handler,milton.response.handler.compressing,milton.http.manager
]; 
root of factory hierarchy
Apr 2, 2010 9:02:02 PM org.vosao.global.impl.SystemServiceImpl init
SEVERE: Can't init velocity engine. WEB-INF\velocity.properties (The system 
cannot 
find the file specified)
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.2 sec

Original comment by pepedocs on 2 Apr 2010 at 1:10