Struts2 + Tiles + NETBEANS -


i beginner struts2 , have implemented simple examples.

i getting problem tiles

i refereed site http://www.dzone.com/tutorials/java/struts-2/struts-2-example/struts-2-tiles-example-1.html

and files exact same given in website mentioned above

i using : netbeans ide 7.3 , struts 2 , glassfish 3.1.2.2 (note : downloadable file tutorials site works in eclipseide , need add in netbeans)

here error glassfish :

**http status 404 **

type : status report

description : requested resource () not available.


 info: removing tilescontext context: org.apache.catalina.core.applicationcontextfacade info: initializing tiles2 application context. . . warning: cannot find tilescontextfactory class org.apache.tiles.portlet.context.portlettilesapplicationcontextfactory info: finished initializing tiles2 application context. warning: cannot find tilescontextfactory class org.apache.tiles.portlet.context.portlettilesapplicationcontextfactory info: initializing tiles2 container. . . warning: cannot find tilescontextfactory class org.apache.tiles.portlet.context.portlettilesapplicationcontextfactory warning: cannot find tilesrequestcontextfactory class org.apache.tiles.portlet.context.portlettilesrequestcontextfactory info: tiles2 container initialized info: publishing tilescontext context: org.apache.tiles.servlet.context.servlettilesapplicationcontext info: parsing configuration file [struts-default.xml] severe: webmodule[/strutstiles1]pwc1270: exception starting filter struts2 java.lang.instantiationexception 

tried both library styles ie : netbeans plugins + tiles , jar only

enter image description here enter image description here

complete error log

info: removing tilescontext context: org.apache.catalina.core.applicationcontextfacade info: initializing tiles2 application context. . . warning: cannot find tilescontextfactory class org.apache.tiles.portlet.context.portlettilesapplicationcontextfactory info: finished initializing tiles2 application context. warning: cannot find tilescontextfactory class org.apache.tiles.portlet.context.portlettilesapplicationcontextfactory info: initializing tiles2 container. . . warning: cannot find tilescontextfactory class org.apache.tiles.portlet.context.portlettilesapplicationcontextfactory warning: cannot find tilesrequestcontextfactory class org.apache.tiles.portlet.context.portlettilesrequestcontextfactory info: tiles2 container initialized info: publishing tilescontext context: org.apache.tiles.servlet.context.servlettilesapplicationcontext info: parsing configuration file [struts-default.xml] severe: webmodule[/strutstiles1]pwc1270: exception starting filter struts2 java.lang.instantiationexception     @ org.apache.catalina.core.applicationfilterconfig.<init>(applicationfilterconfig.java:124)     @ org.apache.catalina.core.standardcontext.filterstart(standardcontext.java:4685)     @ org.apache.catalina.core.standardcontext.start(standardcontext.java:5377)     @ com.sun.enterprise.web.webmodule.start(webmodule.java:498)     @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:917)     @ org.apache.catalina.core.containerbase.addchild(containerbase.java:901)     @ org.apache.catalina.core.standardhost.addchild(standardhost.java:733)     @ com.sun.enterprise.web.webcontainer.loadwebmodule(webcontainer.java:2019)     @ com.sun.enterprise.web.webcontainer.loadwebmodule(webcontainer.java:1669)     @ com.sun.enterprise.web.webapplication.start(webapplication.java:109)     @ org.glassfish.internal.data.engineref.start(engineref.java:130)     @ org.glassfish.internal.data.moduleinfo.start(moduleinfo.java:269)     @ org.glassfish.internal.data.applicationinfo.start(applicationinfo.java:301)     @ com.sun.enterprise.v3.server.applicationlifecycle.deploy(applicationlifecycle.java:461)     @ com.sun.enterprise.v3.server.applicationlifecycle.deploy(applicationlifecycle.java:240)     @ org.glassfish.deployment.admin.deploycommand.execute(deploycommand.java:389)     @ com.sun.enterprise.v3.admin.commandrunnerimpl$1.execute(commandrunnerimpl.java:353)     @ com.sun.enterprise.v3.admin.commandrunnerimpl.docommand(commandrunnerimpl.java:363)     @ com.sun.enterprise.v3.admin.commandrunnerimpl.docommand(commandrunnerimpl.java:1085)     @ com.sun.enterprise.v3.admin.commandrunnerimpl.access$1200(commandrunnerimpl.java:95)     @ com.sun.enterprise.v3.admin.commandrunnerimpl$executioncontext.execute(commandrunnerimpl.java:1291)     @ com.sun.enterprise.v3.admin.commandrunnerimpl$executioncontext.execute(commandrunnerimpl.java:1259)     @ org.glassfish.deployment.admin.redeploycommand.execute(redeploycommand.java:126)     @ com.sun.enterprise.v3.admin.commandrunnerimpl$1.execute(commandrunnerimpl.java:348)     @ com.sun.enterprise.v3.admin.commandrunnerimpl.docommand(commandrunnerimpl.java:363)     @ com.sun.enterprise.v3.admin.commandrunnerimpl.docommand(commandrunnerimpl.java:1085)     @ com.sun.enterprise.v3.admin.commandrunnerimpl.access$1200(commandrunnerimpl.java:95)     @ com.sun.enterprise.v3.admin.commandrunnerimpl$executioncontext.execute(commandrunnerimpl.java:1291)     @ com.sun.enterprise.v3.admin.commandrunnerimpl$executioncontext.execute(commandrunnerimpl.java:1259)     @ com.sun.enterprise.v3.admin.adminadapter.docommand(adminadapter.java:461)     @ com.sun.enterprise.v3.admin.adminadapter.service(adminadapter.java:212)     @ com.sun.grizzly.tcp.http11.grizzlyadapter.service(grizzlyadapter.java:179)     @ com.sun.enterprise.v3.server.hk2dispatcher.dispath(hk2dispatcher.java:117)     @ com.sun.enterprise.v3.services.impl.containermapper$hk2dispatchercallable.call(containermapper.java:354)     @ com.sun.enterprise.v3.services.impl.containermapper.service(containermapper.java:195)     @ com.sun.grizzly.http.processortask.invokeadapter(processortask.java:860)     @ com.sun.grizzly.http.processortask.doprocess(processortask.java:757)     @ com.sun.grizzly.http.processortask.process(processortask.java:1056)     @ com.sun.grizzly.http.defaultprotocolfilter.execute(defaultprotocolfilter.java:229)     @ com.sun.grizzly.defaultprotocolchain.executeprotocolfilter(defaultprotocolchain.java:137)     @ com.sun.grizzly.defaultprotocolchain.execute(defaultprotocolchain.java:104)     @ com.sun.grizzly.defaultprotocolchain.execute(defaultprotocolchain.java:90)     @ com.sun.grizzly.http.httpprotocolchain.execute(httpprotocolchain.java:79)     @ com.sun.grizzly.protocolchaincontexttask.docall(protocolchaincontexttask.java:54)     @ com.sun.grizzly.selectionkeycontexttask.call(selectionkeycontexttask.java:59)     @ com.sun.grizzly.contexttask.run(contexttask.java:71)     @ com.sun.grizzly.util.abstractthreadpool$worker.dowork(abstractthreadpool.java:532)     @ com.sun.grizzly.util.abstractthreadpool$worker.run(abstractthreadpool.java:513)     @ java.lang.thread.run(thread.java:722) caused by: unable load configuration. - bean - jar:file:/c:/documents%20and%20settings/chiya/my%20documents/downloads/strutstiles1/build/web/web-inf/lib/struts2-core-2.3.4.jar!/struts-default.xml:29:72     @ com.opensymphony.xwork2.config.configurationmanager.getconfiguration(configurationmanager.java:58)     @ org.apache.struts2.dispatcher.dispatcher.init_preloadconfiguration(dispatcher.java:360)     @ org.apache.struts2.dispatcher.dispatcher.init(dispatcher.java:403)     @ org.apache.struts2.dispatcher.ng.initoperations.initdispatcher(initoperations.java:69)     @ org.apache.struts2.dispatcher.ng.filter.strutsprepareandexecutefilter.init(strutsprepareandexecutefilter.java:48)     @ org.apache.catalina.core.applicationfilterconfig.getfilter(applicationfilterconfig.java:264)     @ org.apache.catalina.core.applicationfilterconfig.<init>(applicationfilterconfig.java:120)     ... 48 more caused by: unable load bean: type: class:com.opensymphony.xwork2.objectfactory - bean - jar:file:/c:/documents%20and%20settings/chiya/my%20documents/downloads/strutstiles1/build/web/web-inf/lib/struts2-core-2.3.4.jar!/struts-default.xml:29:72     @ com.opensymphony.xwork2.config.providers.xmlconfigurationprovider.register(xmlconfigurationprovider.java:222)     @ org.apache.struts2.config.strutsxmlconfigurationprovider.register(strutsxmlconfigurationprovider.java:101)     @ com.opensymphony.xwork2.config.impl.defaultconfiguration.reloadcontainer(defaultconfiguration.java:165)     @ com.opensymphony.xwork2.config.configurationmanager.getconfiguration(configurationmanager.java:55)     ... 54 more caused by: bean type class com.opensymphony.xwork2.objectfactory name xwork has been loaded bean - jar:file:/c:/documents%20and%20settings/chiya/my%20documents/downloads/strutstiles1/build/web/web-inf/lib/struts2-core-2.1.6.jar!/struts-default.xml:29:72 - bean - jar:file:/c:/documents%20and%20settings/chiya/my%20documents/downloads/strutstiles1/build/web/web-inf/lib/struts2-core-2.3.4.jar!/struts-default.xml:29:72     @ com.opensymphony.xwork2.config.providers.xmlconfigurationprovider.register(xmlconfigurationprovider.java:206)     ... 57 more  info: web0671: loading application [strutstiles1] @ [/strutstiles1] info: strutstiles1 deployed in 7,922 milliseconds. 

help :)

i got solved . error netbeans struts plugin has no tiles provision. had earlier removed tiles plugin after pasting code didnt work .

now did: 1.created project.

2.added framework of struts2 of netbeans(else struts.xml not added configuration folder , @ other place wont work :( )

3.removed lib

4.clean , build

5.add jar files manually

works :) lot advices :)


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -