| Author |
Message |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 30/08/2010 07:07:27
|
batzo
Joined: 30/08/2010 06:31:16
Messages: 6
Offline
|
Hello
I am using Tomcat on windows. I followed the Installing Standalone Weceem applications in http://www.weceem.org/weceem/documentation/Installation.
1. I created a file named weceem.properties in c:\weceem.
2. I created the folder named search-indexes in c:\weceem.
3. I added the system environment variable named weceem.config.location(weceem.config.location=c:\weceem\weceem.properties).
4. I launched tomcat. But, it occured the exception (FileNotFoundException .\weceem.properties).
5. I also tried to calling startup.bat with following argument: -Dweceem.config.location=file:/c:/weceem/weceem.properties(startup -Dweceem.config.location=file:/c:/weceem/weceem.properties). But, it occured same error.
6. I also tried to locate weceem.properties in %tomcat_home%\webapps\weceem-0.9.1\WEB-INF\classes. But it is same as above mentioned.
What is wrong I did? Please, help me.
This message was edited 1 time. Last update was at 30/08/2010 07:12:26
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 31/08/2010 18:47:59
|
marcpalmer
Joined: 04/06/2009 13:36:35
Messages: 286
Location: UK
Offline
|
Hi batzo,
Sorry you're having trouble getting it going.
However from your post it seems quite clear that the problem is it can't find your weceem.properties, although you have tried most things!
First - it weceem.config.location is not an environment variable, that will not work.
Second - file URLs usually need file:// at the start, so you could try the -D arg with file:///c:/weceem/ ..... if you do this, what is the exact output of the exception line? This will tell us what it is looking for when you give it that URL.
Third - putting it in WEB-INF/classes should have worked, but maybe Tomcat re-expanded your war and deleted the file?
If you can give us some more output we may be able to help. Also, as you're on windows, maybe the / needs to be \ for it to work?
|
- -
Twitter: wangjammer5
Blog: http://www.anyware.co.uk
Grails plugins: http://www.grailsrocks.com
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 01/09/2010 00:50:04
|
batzo
Joined: 30/08/2010 06:31:16
Messages: 6
Offline
|
Hi marcpalmer
I tried to put weceem-0.9.1.war in webapps directory of the tomcat and
execute following command:
startup.bat -Dweceem.config.location=file:///c:/weceem/weceem.properties
This is error message on tomcat's console.
java.io.FileNotFoundException: .\weceem.properties (指定されたファイルが見つかり
ません。)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at Config$_run_closure2_closure7_closure10.doCall(Config.groovy:116)
at Config$_run_closure2_closure7.doCall(Config.groovy:112)
at Config$_run_closure2_closure7.doCall(Config.groovy)
at Config$_run_closure2.doCall(Config.groovy:82)
at Config$_run_closure2.doCall(Config.groovy)
at Config.run(Config.groovy:52)
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 01/09/2010 01:08:31
|
batzo
Joined: 30/08/2010 06:31:16
Messages: 6
Offline
|
supplemet:
I also tried such as following:
startup.bat -Dweceem.config.location=file:///c:\weceem\weceem.properties
But, result is same.
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 01/09/2010 08:39:07
|
marcpalmer
Joined: 04/06/2009 13:36:35
Messages: 286
Location: UK
Offline
|
Hi again,
It looks like startup.bat is not passing through -D Java VM options. It is showing you that it is trying to load it from ./weceem.properties which is the default location if it finds nothing in the VM properties.
I think Tomcat usually uses an env var JAVA_OPTS to pass such options to the VM. So try setting your env var JAVAOPTS="-Dweceem.config.location=file:.............."
If its like the unix startup.sh, it just calls into the catalina script, which pulls in JAVA_OPTS.
Good luck!
|
- -
Twitter: wangjammer5
Blog: http://www.anyware.co.uk
Grails plugins: http://www.grailsrocks.com
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 02/09/2010 00:42:49
|
batzo
Joined: 30/08/2010 06:31:16
Messages: 6
Offline
|
Hi marcpalmer
I have installed successfully by your advice.
I edited JAVA_OPTS of catalina.bat.
Thank you very much, marcpalmer!
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 02/09/2010 01:12:43
|
batzo
Joined: 30/08/2010 06:31:16
Messages: 6
Offline
|
Hi marcpalmer
I have installed successfully, but it has runtime error (java.lang.OutOfMemoryError).
Please see below:
Grails Runtime Exception
Error Details
Message: There is an error in widget at [widgets/common-head], please see the logs. Error was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.weceem.tags.WeceemTagLib': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.weceem.tags.WeceemTagLib]: Constructor threw exception; nested exception is java.lang.OutOfMemoryError: PermGen space at WcmContent_templates_default-template:4
Caused by: There is an error in widget at [widgets/common-head], please see the logs. Error was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.weceem.tags.WeceemTagLib': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.weceem.tags.WeceemTagLib]: Constructor threw exception; nested exception is java.lang.OutOfMemoryError: PermGen space at WcmContent_templates_default-template:4
Class: WcmContentController
At Line: [4]
Code Snippet:
Stack Trace
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: There is an error in widget at [widgets/common-head], please see the logs. Error was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.weceem.tags.WeceemTagLib': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.weceem.tags.WeceemTagLib]: Constructor threw exception; nested exception is java.lang.OutOfMemoryError: PermGen space at WcmContent_templates_default-template:4 at WcmContent_templates_default_template$_run_closure1.doCall(WcmContent_templates_default_template:20) at WcmContent_templates_default_template$_run_closure1.doCall(WcmContent_templates_default_template) at WcmContent_templates_default_template.run(WcmContent_templates_default_template:23) at org.weceem.controllers.WcmContentController.renderGSPContent(WcmContentController.groovy:260) at org.weceem.controllers.WcmContentController$renderGSPContent.call(Unknown Source) at org.weceem.controllers.WcmContentController.renderGSPContent(WcmContentController.groovy:190) at org.weceem.controllers.WcmContentController.renderGSPContent(WcmContentController.groovy) at org.weceem.html.WcmHTMLContent$__clinit__closure3.doCall(WcmHTMLContent.groovy:72) at org.weceem.controllers.WcmContentController$_closure1.doCall(WcmContentController.groovy:106) at org.weceem.controllers.WcmContentController$_closure1.doCall(WcmContentController.groovy) at java.lang.Thread.run(Thread.java:619)
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 02/09/2010 01:23:34
|
batzo
Joined: 30/08/2010 06:31:16
Messages: 6
Offline
|
Hi marcpalmer
I am sorry. After I have deleted weceem and reinstall, it is allright.
Now, it is ok.
|
|
|
 |
|
|