0

WebManager <init>:112 and parseConfigXml:158 error

asked 2011-04-12 13:51:06 +0800

dark1sun gravatar image dark1sun
30
http://www.aqlinux.ir/

updated 2011-04-12 14:32:47 +0800

I've tried to make this link with db4o.

"catlina.out" shows:

Apr 13, 2011 12:00:51 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive zkDB_final.war
Apr 13, 2011 12:00:54 AM org.zkoss.zk.ui.http.WebManager <init>:112
INFO: Starting ZK 5.0.6 CE (build: 2011022418)
Apr 13, 2011 12:00:54 AM org.zkoss.zk.ui.sys.ConfigParser parseConfigXml:158
INFO: Loading system default
Apr 13, 2011 12:00:54 AM org.zkoss.zk.ui.sys.ConfigParser parse:273
INFO: Parsing jndi:/localhost/zkDB_final/WEB-INF/zk.xml

here's my sources

and i even added "zk.xml" to "WEB-INF" folder with these contents:

<?xml version="1.0" encoding="UTF-8"?>

<!--
	Created by ZK Studio
-->

<zk>
		
</zk>

delete flag offensive retag edit

6 Replies

Sort by ยป oldest newest

answered 2011-04-12 15:16:57 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

Can you post the full log or stacktrace? In your uploaded sources.zip there's no zk.xml contained (only a web.xml), if you don't need a zk.xml, don't drop it into WEB-INF.

Cheers, Maik

link publish delete flag offensive edit

answered 2011-04-13 01:19:27 +0800

dark1sun gravatar image dark1sun
30
http://www.aqlinux.ir/

updated 2011-04-13 01:46:53 +0800

thank god you're here.
here's a full log of "catlina.out" from tomcat startup to deploying app.

INFO: Server startup in 23631 ms
Apr 13, 2011 10:36:51 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive zkDB_final_.war
Apr 13, 2011 10:36:53 AM org.zkoss.zk.ui.http.WebManager <init>:112
INFO: Starting ZK 5.0.6 CE (build: 2011022418)
Apr 13, 2011 10:36:54 AM org.zkoss.zk.ui.sys.ConfigParser parseConfigXml:158
INFO: Loading system default
Apr 13, 2011 10:36:54 AM org.zkoss.zk.ui.sys.ConfigParser parse:273
INFO: Parsing jndi:/localhost/zkDB_final_/WEB-INF/zk.xml

I have no idea what "zk.xml" does, but when I remove it. the log file shows:

Apr 13, 2011 10:42:23 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive zkDB_final_noZk-xml.war
Apr 13, 2011 10:42:24 AM org.zkoss.zk.ui.http.WebManager <init>:112
INFO: Starting ZK 5.0.6 CE (build: 2011022418)
Apr 13, 2011 10:42:24 AM org.zkoss.zk.ui.sys.ConfigParser parseConfigXml:158
INFO: Loading system default

and I think there's clue, when I "undeploy" my app, and click "Find leaks" it shows

The following web applications were stopped (reloaded, undeployed), but their
classes from previous runs are still loaded in memory, thus causing a memory
leak (use a profiler to confirm):
/zkDB_final_noZk-xml

and "catlina.out" says:

Apr 13, 2011 10:44:28 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application  created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@6221a86a]) and a value of type [com.db4o.internal.ObjectContainerSession] (value [com.db4o.internal.ObjectContainerSession@fb7f97b]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 
Apr 13, 2011 10:44:29 AM org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context 

by the way, I'm using "db4o-8.0.184.15484-all-java5.jar"

link publish delete flag offensive edit

answered 2011-04-13 03:50:57 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

Sorry, but I don't get your problem... at least I see no errors in the logs. Are you worried about the possible leak?

Cheers, Maik

link publish delete flag offensive edit

answered 2011-04-13 08:50:48 +0800

dark1sun gravatar image dark1sun
30
http://www.aqlinux.ir/

updated 2011-04-13 08:58:09 +0800

yes it leaks, and the gui does not work properly.
I just find out that the database file is created and it grows in size after I add an event.

i made everything according to the wiki, except db4o side.

I have a theory, maybe there's a conflict or something between :
> org.zkoss.zk.ui.http.HttpSessionListener
and my "Db4oServletContextListener" servlet which implements "javax.servlet.ServletContextListener",
Cause i tried to make a log text using "ServletContextEvent" but i didn't get anything.

I even removed attributes of <web-app> tag hoping to make any difference. but nothing happend.

oh God, it's more than a week I'm dealing with this issue, and still no result.

link publish delete flag offensive edit

answered 2011-04-13 13:27:29 +0800

dark1sun gravatar image dark1sun
30
http://www.aqlinux.ir/

you guys here's my final war file inside this zip file. size=4.8 mb.
sources and libraries included, even buid.xml is included.
sources
now the application does not run! it shows a complicated error page:
http://pastebin.com/pkVKuZ4i

catlina.out looks ok :

Apr 13, 2011 10:49:44 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 7294 ms
Apr 13, 2011 10:50:53 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive zkDB_final-gong.war

but localhost.2011-01-27.log is full of details:
http://pastebin.com/Sd5d0C7C

link publish delete flag offensive edit

answered 2011-04-14 01:46:01 +0800

dark1sun gravatar image dark1sun
30
http://www.aqlinux.ir/

heh, this shit happened because I forgot to put all zk libraries there!
:)
now it's working.
I'm just wondering how can I change the status of this topic to "solved".

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-04-12 13:51:06 +0800

Seen: 292 times

Last updated: Apr 14 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More