voyent
ICEfaces 2.0  XML
Forum Index -> General Help Go to Page: Previous  1, 2, 3 Next 
Author Message
BrotherRichard

Joined: 11/Nov/2008 00:00:00
Messages: 16
Offline


The auction.war file deploys (as in a directory gets created, and the tomcat web application manager lists it), but it does not start. Here's the error from the localhost log file:

Dec 9, 2009 1:52:06 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application at '/auction'
Dec 9, 2009 1:52:06 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.ExceptionInInitializerError
at com.sun.faces.config.ConfigManager$ParseTask.<init>(ConfigManager.java:810)
at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:650)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:306)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:219)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1249)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:612)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission com.sun.aas.installRoot read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:342)
at java.security.AccessController.checkPermission(AccessController.java:553)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302)
at java.lang.System.getProperty(System.java:669)
at com.sun.faces.config.DbfFactory.<clinit>(DbfFactory.java:70)
... 36 more
ted.goddard

Joined: 26/Oct/2004 00:00:00
Messages: 874
Offline


Tomcat installed to a read-only filesystem? Or some custom security configuration that you have applied?

Maybe just unzip a fresh copy of tomcat into /tmp and try starting everything there.
[Email]
BrotherRichard

Joined: 11/Nov/2008 00:00:00
Messages: 16
Offline


Thanks Ted, that was a great idea. It was a regular file system and the install was from an Ubuntu (.deb) package. But, just to be safe, I did a complete reinstall of tomcat 6. That solved the permissions thing.

I then deployed the auction.war file and tried to start it from the tomcat manager application. Here's what I got (in the catalina.log file):

INFO: Initializing Mojarra 2.0.1 (FCS b02) for context '/auction'
Dec 10, 2009 8:59:24 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Dec 10, 2009 8:59:24 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/auction] startup failed due to previous errors
Dec 10, 2009 8:59:24 AM com.sun.faces.config.ConfigureListener contextDestroyed
SEVERE: Unexpected exception when attempting to tear down the Mojarra runtime
java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:804)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:306)
at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:104)
at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:305)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3973)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4577)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4474)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1249)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:612)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:636)

--------------
So, there's still something wrong. I also tried it with the component-showcase.war file from elsewhere in the Alpha release. Same results.
ted.goddard

Joined: 26/Oct/2004 00:00:00
Messages: 874
Offline


Maybe a ClassLoader or JVM version problem? What JVM is being used?

Check localhost.2009-12-08.log as well (the date will vary, of course).
[Email]
BrotherRichard

Joined: 11/Nov/2008 00:00:00
Messages: 16
Offline


The JVM is /usr/lib/jvm/java-6-openjdk. It turns out that I spoke too soon on the permissions thing. They are still there (in localhost.<date>.log). I was looking in catalina.<date>.log. This is a standard Kubuntu install (latest release, with all updates installed) of the OS, JVM, and tomcat6 (6.0.20).

Here's a copy of the relevant tail for the localhost.<date>.log file:

Dec 10, 2009 9:40:04 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Associated with Deployer 'Catalina:type=Deployer,host=localhost'
Dec 10, 2009 9:40:04 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Global resources are available
Dec 10, 2009 9:40:04 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application at '/component-showcase'
Dec 10, 2009 9:40:04 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:342)
at java.security.AccessController.checkPermission(AccessController.java:553)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.util.concurrent.ThreadPoolExecutor.checkShutdownAccess(ThreadPoolExecutor.java:711)
at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:1351)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:358)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:219)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1249)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:612)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:636)
Dec 10, 2009 9:40:04 AM org.apache.catalina.core.StandardContext listenerStop
SEVERE: Exception sending context destroyed event to listener instance of class org.icefaces.push.servlet.ServletEnvironmentListener
java.lang.NullPointerException
at org.icefaces.push.servlet.PushResourceHandler.notifyContextShutdown(PushResourceHandler.java:159)
at org.icefaces.push.servlet.ServletEnvironmentListener.contextDestroyed(ServletEnvironmentListener.java:35)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3973)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4577)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4474)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1249)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:612)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:636)
Dec 10, 2009 9:40:04 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
ted.goddard

Joined: 26/Oct/2004 00:00:00
Messages: 874
Offline


java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)  


There must be some Java permissions set.

http://java.sun.com/j2se/1.3/docs/guide/security/PolicyFiles.html

Do you have a java.policy file?
[Email]
BrotherRichard

Joined: 11/Nov/2008 00:00:00
Messages: 16
Offline


There is a policy.d directory (in /etc/tomcat6). Within it are six .policy files. One, named 04webapps.policy is definitely being read (changes I made to it affected the error log). That was last night, before the complete reinstall of tomcat6 (which replaced my modified files with new standard ones).

There is also a standard (unmodified) java.policy file in the security directory of the JVM.

I did not see anything in the release notes or other doc saying that I had to modify either of these. Do I? If so, were is the doc on that?
ted.goddard

Joined: 26/Oct/2004 00:00:00
Messages: 874
Offline


Normally these files are not modified at all -- but it's also very unusual to see an AccessControlException unless a custom security policy is in place.

I would try another machine, if possible (unless you can track down the java.policy file that is at work). I just verified a clean tomcat install on Fedora Core 11 here.

[Email]
BrotherRichard

Joined: 11/Nov/2008 00:00:00
Messages: 16
Offline


Okay, I got it fixed. At least auction and component-showcase work. The trick was to turn off tomcat security. A web search got me a page with the solution:


The problem is highlighted in the "Caused by" exception:
java.security.AccessControlException: access denied
(java.util.PropertyPermission user.name read)

The simple solution is as follows - just turn off the Tomcat security
manager, which is enabled by default with the Ubuntu package.
/etc/init.d/tomcat6:
TOMCAT6_SECURITY=no (instead of yes)


I made that change, restarted tomcat, and both pages started working. Thanks for hanging in there with me while I work through this. It might be worth a note somewhere for Ubuntu. It's apparently an artifact of their default tomcat configuration.
Kovach

Joined: 05/Oct/2009 00:00:00
Messages: 4
Offline


Ted Goddard posted on his blog that you only need to include icefaces.jar when deploying projects on GFv3. But, in icefaces.jar there is no Effects or DisplayEvent classes. Are they not supported in alpha or do I need to include something else in my project?

tnx
dnoz

Joined: 22/May/2009 00:00:00
Messages: 5
Offline


Can someone please tell me when ICEFaces 2.0 will be released (round about)?
I think, ICEFaces 2.0 would make a perfect christmas gift!

Greetings from Germany
Daniel
ken.fyten

Joined: 26/Oct/2004 00:00:00
Messages: 1316
Offline


Hi,

The next release is going to be ICEfaces 2.0, Alpha 2 which has just been pushed back a bit to Jan. 15th, 2010.

It will have to be a New Year's baby instead, sorry! :)

Regards,
Ken

Ken Fyten
VP Product Development
ICEsoft Technologies, Inc.
neverminddenis

Joined: 04/Aug/2009 00:00:00
Messages: 9
Offline


So today is January 20th and there are not ICEfaces 2.0, Alpha 2 version. Please tell me when it will be released? And main question: when release version will be at least approximately?
ken.fyten

Joined: 26/Oct/2004 00:00:00
Messages: 1316
Offline


Hi,

We're just wrapping up the last couple issues for Alpha 2, should go out in the next day or two for sure.

I don't have a target date for 2.0 final yet, we are completing some planning, etc. next week so should have a better idea after that. I will update the JIRA milestones for each release once we have target dates for them.

Regards,
Ken

Ken Fyten
VP Product Development
ICEsoft Technologies, Inc.
johnny

Joined: 12/Jan/2007 00:00:00
Messages: 32
Offline


Hi Ken,

Nice to see Alpha 2 is out.

After looking through the release notes I noticed the ice:inputFile is still not JSF 2.0 compatible.

What do you recommend for users who want to go with JSF 2.0 + Icefaces but need an inputFile component?

Thanks
Johnny
 
Forum Index -> General Help Go to Page: Previous  1, 2, 3 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team