cancel
Showing results for 
Search instead for 
Did you mean: 

Can't get definitions factory from context

Former Member
0 Kudos

Hi

I am new user of NetWeaver and work with SAP NW WAS 6.40 SP11.

I am trying to deploy an example Struts 1.1 EAR archive in SAP J2EE Engine server with the Deploy Tool.

The EAR archive was created under IBM Webphere.

I am loading the ear file and deploy it without errors.

When I start my application I have got this error message :

<b>Application error occurred during the request procession.

Details: javax.servlet.jsp.JspException: Can't get definitions factory from context.</b>

at org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.java:583)

at org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:487)

at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:451)

at jsp_home1121329378078._jspService(jsp_home1121329378078.java:14)

at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)

at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)

at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

Today we have found the error.

In our WebSphere-Project we declared the WEB-INF-Path without the Backslash "WEB-INF\....." at the beginning of the string.

In Netweaver we must declare the WEB-INF-Path with the Backslash "\WEB-INF\....." at the beginning of the string.

A small error with a big effect Now the application can find the "..definitions factory from context....".

Former Member
0 Kudos

Am getting the same error.

can you please explain me the Backslash solution with an example.

Divakar

Former Member
0 Kudos

Mira yo tenia el mismo problema con struts y tiles.

solution for me was this:

Setup the TilesPlugin in the struts-config.xml file:

<plug-in

className="org.apache.struts.tiles.TilesPlugin">

<set-property

property="definitions-config"

value="/WEB-INF/tiles-defs.xml"/>

</plug-in>

i hope help you

Atte: Burford

Opgenorth
Employee
Employee
0 Kudos

Hello Achim,

can you describe the structure of the EAR?

The library struts.jar should be located in the WEB-INF/lib directory of the web archive and the struts-config.xml in the directory WEB-INF.

Best regards,

Juergen

Former Member
0 Kudos

Hello Juergen,

thanks for your answer.

I am new to Web AS and I am not very sure about how the ear file is deployed on this server. From what I understand on J2EE, the ear file structure is supposed to be like this:

<b>Ear</b>

-- WAR

--JAR(EJB)

--META-INF

--application.xml

<b>My War structure is like this:</b>

applicationName

--JSP

--image

-- other folders like scripts, styles, tiles(i am working on a struts application)

--WEB-INF

-- struts-config.xml

--web.xml

--classes

--application pacakage

--applicationresources.properties

--tld

--Contains the struts tld.

I'm not sure I understand what you mean <b><i>"...describe the structure of the EAR?</i></b>"

The library struts.jar is in the WEB-INF/lib directory of the web archive and the struts-config.xml is in the directory WEB-INF.

Best regards,

Achim