Skip to main content

[SOLVED] Cannot instantiate component of type jmaki......

9 replies [Last post]
groverblue
Offline
Joined: 2006-06-23

I need help figuring this one out. I update jMaki to v1.8 (Netbeans 6.0 plugin update)
Below is the error log from the server when trying to run a jMaki enabled application.
I can't run my projects. Any help would be appreciated.

Jul 14, 2008 11:48:36 AM com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand
INFO:
C:/Program Files/Java/jdk1.6.0_06\bin\java
-Dcom.sun.aas.instanceRoot=C:/Program Files/glassfish-v2/domains/domain1
-Dcom.sun.aas.ClassPathPrefix=C:\OOo\Office_2_3\program;C:\OOo\Office_2_3\program\classes\juh.jar;C:\OOo\Office_2_3\program\classes\jurt.jar;C:\OOo\Office_2_3\program\classes\jut.jar;C:\OOo\Office_2_3\program\classes\ridl.jar;C:\OOo\Office_2_3\program\classes\unoil.jar;C:\OOo\Office_2_3\program\classes\officebean.jar;C:\OOo\Office_2_3\program\classes
-Dcom.sun.aas.ClassPathSuffix=C:\Program Files\glassfish-v2\lib\sqljdbc.jar
-Dcom.sun.aas.ServerClassPath=
-Dcom.sun.aas.classloader.appserverChainJars.ee=
-Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,j2ee-svc.jar
-Dcom.sun.aas.classloader.excludesList=admin-cli.jar,appserv-upgrade.jar,sun-appserv-ant.jar
-Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
-Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar
-Dcom.sun.aas.classloader.serverClassPath.ee=/lib/hadbjdbc4.jar,C:/Program Files/glassfish-v2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,/lib/dbstate.jar,/lib/hadbm.jar,/lib/hadbmgt.jar,C:/Program Files/glassfish-v2/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.serverClassPath=C:/Program Files/glassfish-v2/lib/install/applications/jmsra/imqjmsra.jar,C:/Program Files/glassfish-v2/imq/lib/jaxm-api.jar,C:/Program Files/glassfish-v2/imq/lib/fscontext.jar,C:/Program Files/glassfish-v2/imq/lib/imqbroker.jar,C:/Program Files/glassfish-v2/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2/lib/ant/lib/ant.jar,C:/Program Files/glassfish-v2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
-Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,jesmf-plugin.jar,/lib/dbstate.jar,/lib/hadbjdbc4.jar,jgroups-all.jar,C:/Program Files/glassfish-v2/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,C:/Program Files/Java/jdk1.6.0_06/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.jar,com-sun-commons-logging.jar,C:/Program Files/glassfish-v2/imq/lib/jaxm-api.jar,C:/Program Files/glassfish-v2/imq/lib/fscontext.jar,C:/Program Files/glassfish-v2/imq/lib/imqbroker.jar,C:/Program Files/glassfish-v2/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2/imq/lib/imqxm.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optional.jar,C:/Program Files/glassfish-v2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,C:/Program Files/glassfish-v2/updatecenter/lib/updatecenter.jar,C:/Program Files/glassfish-v2/jbi/lib/jbi.jar,C:/Program Files/glassfish-v2/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2/lib/ant/lib/ant.jar,dbschema.jar
-Dcom.sun.aas.configName=server-config
-Dcom.sun.aas.configRoot=C:/Program Files/glassfish-v2/config
-Dcom.sun.aas.defaultLogFile=C:/Program Files/glassfish-v2/domains/domain1/logs/server.log
-Dcom.sun.aas.domainName=domain1
-Dcom.sun.aas.installRoot=C:/Program Files/glassfish-v2
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-Dcom.sun.aas.promptForIdentity=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Dcom.sun.updatecenter.home=C:/Program Files/glassfish-v2/updatecenter
-Ddomain.name=domain1
-Djava.endorsed.dirs=C:/Program Files/glassfish-v2/lib/endorsed
-Djava.ext.dirs=C:/Program Files/Java/jdk1.6.0_06/lib/ext;C:/Program Files/Java/jdk1.6.0_06/jre/lib/ext;C:/Program Files/glassfish-v2/domains/domain1/lib/ext;C:/Program Files/glassfish-v2/javadb/lib
-Djava.library.path=C:\Program Files\glassfish-v2\lib;C:\Program Files\glassfish-v2\lib;C:\Program Files\glassfish-v2\bin;C:\Program Files\glassfish-v2\lib
-Djava.security.auth.login.config=C:/Program Files/glassfish-v2/domains/domain1/config/login.conf
-Djava.security.policy=C:/Program Files/glassfish-v2/domains/domain1/config/server.policy
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
-Djavax.net.ssl.keyStore=C:/Program Files/glassfish-v2/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=C:/Program Files/glassfish-v2/domains/domain1/config/cacerts.jks
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djmx.invoke.getters=true
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
-client
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-Xmx512m
-XX:NewRatio=2
-XX:+LogVMOutput
-XX:LogFile=C:/Program Files/glassfish-v2/domains/domain1/logs/jvm.log
-cp
C:/Program Files/glassfish-v2/lib/jhall.jar;C:\Program Files\glassfish-v2\lib\appserv-launch.jar
com.sun.enterprise.server.PELaunch
start
Starting Sun Java System Application Server 9.1 (build b58g-fcs) ...
MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
CORE5098: AS Socket Service Initialization has been completed.
CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.6.0_06] from [Sun Microsystems Inc.]
SEC1002: Security Manager is OFF.
C:/Program Files/glassfish-v2/domains/domain1/config/.__com_sun_appserv_pid
ADM0001:SunoneInterceptor is now enabled
SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
WEB0114: SSO is disabled in virtual server [server]
WEB0114: SSO is disabled in virtual server [__asadmin]
ADM1079: Initialization of AMX MBeans started
ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://pc42:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors
ADM1506: Status of Standard JMX Connector: Active = [true]
JBIFW0010: JBI framework ready to accept requests.
WEB0302: Starting Sun-Java-System/Application-Server.
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
naming.bind
naming.bind
naming.bind
naming.bind
Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/ISAdmin'
JSF1004: Cannot instantiate component of type jmaki.Extension
WebModule[/ISAdmin]jmaki.runtime.jsf.UIExtension
javax.faces.FacesException: javax.faces.FacesException: com/truchsess/faces/compound/component/UIComponentCompoundChildBase
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:545)
[REMOVED LINES]
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Caused by: javax.faces.FacesException: com/truchsess/faces/compound/component/UIComponentCompoundChildBase
at com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:1007)
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:539)
... 32 more
Caused by: java.lang.NoClassDefFoundError: com/truchsess/faces/compound/component/UIComponentCompoundChildBase
at java.lang.ClassLoader.defineClass1(Native Method)
[REMOVED LINES]
at com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:1003)
... 33 more
Caused by: java.lang.ClassNotFoundException: com.truchsess.faces.compound.component.UIComponentCompoundChildBase
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1498)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 43 more
JSF1004: Cannot instantiate component of type jmaki.Include
WebModule[/ISAdmin]jmaki.runtime.jsf.UIInclude
javax.faces.FacesException: javax.faces.FacesException: com/truchsess/faces/compound/component/UIComponentCompoundChildBase
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:545)
[REMOVED LINES]
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Caused by: javax.faces.FacesException: com/truchsess/faces/compound/component/UIComponentCompoundChildBase
at com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:1007)
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:539)
... 32 more
Caused by: java.lang.NoClassDefFoundError: com/truchsess/faces/compound/component/UIComponentCompoundChildBase
at java.lang.ClassLoader.defineClass1(Native Method)
[REMOVED LINES]
at com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:1003)
... 33 more
Caused by: java.lang.ClassNotFoundException: com.truchsess.faces.compound.component.UIComponentCompoundChildBase
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1498)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 43 more
JSF1004: Cannot instantiate component of type jmaki.Page
WebModule[/ISAdmin]jmaki.runtime.jsf.UIPage
javax.faces.FacesException: javax.faces.FacesException: com/truchsess/faces/compound/component/UIComponentCompoundParentBase
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:545)
at com.sun.faces.config.ConfigureListener.verifyObjects(ConfigureListener.java:1302)
[REMOVED LINES]
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Caused by: javax.faces.FacesException: com/truchsess/faces/compound/component/UIComponentCompoundParentBase
at com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:1007)
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:539)
... 32 more
Caused by: java.lang.NoClassDefFoundError: com/truchsess/faces/compound/component/UIComponentCompoundParentBase
at java.lang.ClassLoader.defineClass1(Native Method)
[REMOVED LINES]
at com.sun.faces.util.Util.loadClass(Util.java:227)
at com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:1003)
... 33 more
Caused by: java.lang.ClassNotFoundException: com.truchsess.faces.compound.component.UIComponentCompoundParentBase
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1498)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 43 more
JSF1004: Cannot instantiate component of type jmaki.Resources
WebModule[/ISAdmin]jmaki.runtime.jsf.UIResources
javax.faces.FacesException: javax.faces.FacesException: com/truchsess/faces/compound/component/UIComponentCompoundChildBase
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:545)
[REMOVED LINES]
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Caused by: javax.faces.FacesException: com/truchsess/faces/compound/component/UIComponentCompoundChildBase
at com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:1007)
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:539)
... 32 more
Caused by: java.lang.NoClassDefFoundError: com/truchsess/faces/compound/component/UIComponentCompoundChildBase
at java.lang.ClassLoader.defineClass1(Native Method)
[REMOVED LINES]
at com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:1003)
... 33 more
Caused by: java.lang.ClassNotFoundException: com.truchsess.faces.compound.component.UIComponentCompoundChildBase
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1498)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 43 more
JSF1004: Cannot instantiate component of type jmaki.Widget
WebModule[/ISAdmin]jmaki.runtime.jsf.UIWidget
javax.faces.FacesException: javax.faces.FacesException: com/truchsess/faces/compound/component/UIInputCompoundChildBase
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:545)
[REMOVED LINES]
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Caused by: javax.faces.FacesException: com/truchsess/faces/compound/component/UIInputCompoundChildBase
at com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:1007)
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:539)
... 32 more
Caused by: java.lang.NoClassDefFoundError: com/truchsess/faces/compound/component/UIInputCompoundChildBase
at java.lang.ClassLoader.defineClass1(Native Method)
[REMOVED LINES]
at com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:1003)
... 33 more
Caused by: java.lang.ClassNotFoundException: com.truchsess.faces.compound.component.UIInputCompoundChildBase
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1498)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 43 more
One or more confgured application objects could not be created. Check your web application logs for details.
WebModule[/ISAdmin]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.NullPointerException
at com.sun.faces.config.JSFVersionTracker.publishInstanceToApplication(JSFVersionTracker.java:264)
[REMOVED LINES]
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
PWC1306: Startup of context /ISAdmin failed due to previous errors
Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/IS'
validateJarFile(C:\Documents and Settings\grover\netbeans\6.0\workspace\dAdmin\build\web\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/dAdmin'
Attempt to set unsupported feature on XMLReader necessary for validation. Validation will bedisabled.
WebModule[/dAdmin]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: Can't parse configuration file: jar:file:/C:/Documents%20and%20Settings/grover/netbeans/6.0/workspace/dAdmin/build/web/WEB-INF/lib/jsfcompounds-0.0.2.jar!/META-INF/faces-config.xml: Error at line 4 column 99: Element type 'faces-config' was not declared
at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1438)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:348)
[REMOVED LINES]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
PWC1306: Startup of context /dAdmin failed due to previous errors
SMGT0007: Self Management Rules service is enabled
Application server startup complete.
LDR5202:Exception in EJBClassLoader
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:396)
at java.io.File.getCanonicalPath(File.java:559)
[REMOVED LINES]
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
EJBSCLookup:: sc.getEjbContainerAvailabilityEnabledFromConfig() ==> false
JTS5014: Recoverable JTS instance, serverId = [3700]
About to load the system app: MEjbApp
POARemoteRefFactory checking if SFSBVersionPolicy need to be added
EJBSCLookup:: sc.getEjbContainerAvailabilityEnabledFromConfig() ==> false
POARemoteRefFactory addSFSBVersionPolicy? false
POARemoteRefFactory checking if SFSBVersionPolicy need to be added
EJBSCLookup:: sc.getEjbContainerAvailabilityEnabledFromConfig() ==> false
POARemoteRefFactory addSFSBVersionPolicy? false
LDR5010: All ejb(s) of [MEjbApp] loaded successfully!
About to load the system app: __ejb_container_timer_app
EJB5109:EJB Timer Service started successfully for datasource [jdbc/__TimerPool]
LDR5010: All ejb(s) of [__ejb_container_timer_app] loaded successfully!
TopLink, version: Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))
[REMOVED LINES]
validateJarFile(C:\Documents and Settings\grover\netbeans\6.0\workspace\dAdmin\build\web\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/dAdmin'
Attempt to set unsupported feature on XMLReader necessary for validation. Validation will bedisabled.
WebModule[/dAdmin]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: Can't parse configuration file: jar:file:/C:/Documents%20and%20Settings/grover/netbeans/6.0/workspace/dAdmin/build/web/WEB-INF/lib/jsfcompounds-0.0.2.jar!/META-INF/faces-config.xml: Error at line 4 column 99: Element type 'faces-config' was not declared
at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1438)
[REMOVED LINES]
at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
PWC1306: Startup of context /dAdmin failed due to previous errors

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
karthikbalait
Offline
Joined: 2007-12-05

it works for me after updating the jsfcompounds-core-0.0.6,
am using
ajax-wrapper-comp-1.8.0
jsfcompounds-core-0.0.6
org.json-0.0.2

I think the jmaki netbeans plugin to be updated to reflect this change.

Regards,
Karthik Bala

groverblue
Offline
Joined: 2006-06-23

Are you getting any of the following?

validateJarFile(C:\Documents and Settings\grover\netbeans\6.0\workspace\dAdmin\build\web\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/dAdmin'
Attempt to set unsupported feature on XMLReader necessary for validation. Validation will bedisabled.

groverblue
Offline
Joined: 2006-06-23

Ok, after some help over at forums.sun.com, we were able to determine that the additional problems were not related to jMaki, but an included library for jFreeChart.

So, using [b]jsfcompounds-core-0.0.6.jar[/b] fixed my initial problems. The resolution for the other error(s) can be found at the following thread:

http://forums.sun.com/thread.jspa?messageID=10348271

Thanks you guys for helping me out with this.

gmurray71
Offline
Joined: 2003-07-31

Hi,

You need to have the latest jsfcompounds-core-0.0.6.jar in your WEB-INF/lib

The jar file can be found at:

https://ajax.dev.java.net/source/browse/ajax/ws/lib/javaeelibs/jsfcompou...

-Greg

groverblue
Offline
Joined: 2006-06-23

thanks gm; I'll give it a try. Do you know when the jMake NB plugin (NB 6.1 via plugin manager) will be updated?

Also, looking at the name of the file (jsfcompounds-core-0.0.6.jar), I guess that it's needed in addition to jsfcompounds-0.0.2.jar, not replacing it, right?

===== UPDATE =====
That didn't work. I copied jsfcompounds-core-0.0.6.jar to my jMaki components directory:
C:\Documents and Settings\grover\.netbeans\6.0\modules\ext\jmaki

The files in this directory listed are:
[i]ajax-wrapper-comp-1.8.0.jar
jmaki-1.8.0.zip
jmaki-core.zip
jmaki-dijit-1.8.0.zip
jmaki-dojo-1.8.0.zip
jmaki-flickr-1.8.0.zip
jmaki-google-1.8.0.zip
jmaki-scriptaculous-1.8.0.zip
jmaki-spry-1.8.0.zip
jmaki-webtop-0.7.2.zip
jmaki-yahoo-1.8.0.zip
jmakiphp.zip
jmakiror.zip
jsfcompounds-0.0.2.jar
jsfcompounds-core-0.0.6.jar
jsonjavadoc.zip
org.json-0.0.1.jar
templates.zip
widgets.zip[/i]

I then edited the jar list in library manager to included the new jar file for library [b]jmakilibrary[/b]:
[i]ajax-wrapper-comp-1.8.0.jar
jsfcompounds-0.0.2.jar
jsfcompounds-core-0.0.6.jar
org.json-0.0.1.jar[/i]

After doing Clean & Build, Undeploy & Deploy, and finally Run, I still get one error:[i]
validateJarFile(C:\Documents and Settings\grover\netbeans\6.0\workspace\dAdmin\build\web\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/dAdmin'
Attempt to set unsupported feature on XMLReader necessary for validation. Validation will bedisabled.
WebModule[/dAdmin]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: Can't parse configuration file: jar:file:/C:/Documents%20and%20Settings/grover/netbeans/6.0/workspace/dAdmin/build/web/WEB-INF/lib/jsfcompounds-0.0.2.jar!/META-INF/faces-config.xml: Error at line 4 column 99: Element type 'faces-config' was not declared
at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1438)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:348)
[REMOVE LINES]
PWC1306: Startup of context /dAdmin failed due to previous errors[/i]

All four jMaki jar files are listed in WEB-INF/lib.

Am I missing another jar, perhaps?

gmurray71
Offline
Joined: 2003-07-31

You shouldn't have jsfcompounds-0.0.2.jar and jsfcompounds-core-0.0.6.jar. Can you try removing the jsfcompounds-0.0.2.jar?

-G

groverblue
Offline
Joined: 2006-06-23

I removed jsfcompound-0.0.2.jar. I'm getting the following error(s). I notice two things, here. First, servlet.jar is generates a warning, but from what I've read it's not a problem. Second, the exception for the XMLReader might be causing errors when reading the faces-config.xml file within jsfcompounds-core-0.0.6.jar. Regardless, I'm stuck.

validateJarFile(C:\Documents and Settings\grover\netbeans\6.0\workspace\dAdmin\build\web\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/dAdmin'
Attempt to set unsupported feature on XMLReader necessary for validation. Validation will bedisabled.
WebModule[/dAdmin]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: Can't parse configuration file: jar:file:/C:/Documents%20and%20Settings/grover/netbeans/6.0/workspace/dAdmin/build/web/WEB-INF/lib/jsfcompounds-core-0.0.6.jar!/META-INF/faces-config.xml: Error at line 4 column 99: Element type 'faces-config' was not declared
at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1438)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:348)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4515)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
[REMOVED LINES]
at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
PWC1306: Startup of context /dAdmin failed due to previous errors

karthikbalait
Offline
Joined: 2007-12-05

The same error occurs to me also when i use the following taglib

<%@ taglib prefix="b" uri="http://jmaki/v1.0/jsf" %>

but everything works well with the following taglib

<%@ taglib prefix="a" uri="http://jmaki/v1.0/jsp" %>

groverblue
Offline
Joined: 2006-06-23

I checked my pages and they jsp (and not jsf).

Additionally, the errors are occurring upon application startup, not page load:

[b]PWC1306: Startup of context /dAdmin failed due to previous errors [/b]

I did read somewhere (but I can't find the link now) that it might be due to a JSF 1.2 restriction on anonymous inner classes, but I'm sure of the accuracy of that.

I should mention I'm using the plugin available through Netbeans, version 1.7.3.