cancel
Showing results for 
Search instead for 
Did you mean: 

TLN PAR customization error ??????/

Former Member
0 Kudos
67

Hello All,

Good evening!!!

Am really stuck up for the entire day with this issue.

<b>I have customized the par file for TLN and it works perfectly fine in EP6 SP16.

Now i have imported the same par file in my NWDS 2004s and am trying to export it and run it in EP7.0</b>

It gives me an error message stating -

<b>com.sapportals.portal.prt.component.PortalComponentException: Error in init method</b>Component : com.lti.portal.navigation.Supplier_TopNav.NewTLN

at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:251)

at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:271)

at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:316)

at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:385)

at com.sapportals.portal.prt.connection.PortalRequest.getRootContext(PortalRequest.java:435)

at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:607)

at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)

at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)

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

at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)

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

at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)

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

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

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

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

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

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

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

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

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

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

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

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:100)

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

Caused by: com.sapportals.portal.prt.component.PortalComponentException: Error occurs during the compilation of java generated from the jsp

at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:108)

at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:140)

at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:291)

at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:141)

at com.sapportals.portal.prt.core.broker.PortalComponentItem.getComponentInstance(PortalComponentItem.java:732)

at com.sapportals.portal.prt.component.PortalComponentContext.getComponent(PortalComponentContext.java:103)

at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:242)

... 26 more

Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error occurs during the rendering of jsp component

at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2189)

at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:81)

... 32 more

Is it that the TLN par file versions for both of these are different or what could be the probable reason.

Please help me with this.

Thanks and have a nice day!!!

Regards,

Samta

Accepted Solutions (1)

Accepted Solutions (1)

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Hi Samta,

I will check if there is some change in the JSP compiler. In the meantime, you can get more info by running the following command in the work folder of your component:

C:\usr\sap\F06\jdk1.4.2\bin\javac @_sapportalsjsp_quickinfo.java.compileargs

The work folder is located at

WEB-INF\portal\portalapps\<YOUR APPLICATION>\work\jsp

This will give you more info.

Daniel

Former Member
0 Kudos

Hey Daniel,

Really appreciate your prompt response.

I tried running that command in the WORK folder. Its giving me error -

command not found.

Please help.

Thanks and have a nice day!!!

Regards,

Samta

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Hi Samta,

I didn't explain it very well, sorry.

You run the command, something like this:

  • Deploy the application with the JSP.

  • Run the iView based on the JSP. The first time you run it, a folder called work is created in the WEB-INF\portal\portalapps\<YOUR APPLICATION> directory. A jsp folder is created in this.

Several Java files are created; this is the compilation of the JSP into a servlet.

  • Create a command window, and change the directory to the work/jsp directory.

  • Run the command, like

C:\usr\sap\F06\jdk1.4.2\bin\javac @_sapportalsjsp_quickinfo.java.compileargs

but you have to change it depending on your setup. Change the path to your jsk, and change the name of the file following the @ sign. So if your JSP file was myJSP, then the argument to the command would be @_sapportalsjsp_myJSP.java.compileargs.

This will then show any compilation errors.

Let me know how it works.

Daniel

Former Member
0 Kudos

Hey Daniel,

That was awesomely awesome....

Thanks a million!!!!

After running that command it gives me an error message for the following import -

import com.sap.portal.pcm.admin.PcmConstants;

Now for this,I downloaded and added the com.sap.portal.pcm.admin.apiservice_api.jar file as mentioned on SDN. But still not able to get through this error.

Please can u help me with this.

Thanks and have a nice day!!!

Regards,

Samta

Former Member
0 Kudos

You don't need to add the jar file to the lib folder. The jars can be different in the 2 environments where you are trying. If you have to add jars then you need to pick the jars from the environment where you finally put the par file.

The other alternative to this is to add the sharing reference. You can add the sharing reference com.sap.portal.pcd.glservice,com.sap.portal.pcmbuilderservice to your portalapp.xml

Former Member
0 Kudos

Hi Ankur,

Thanks for your response.

I solved the issue by placing the file in the PORTAL-INF/lib folder of my project.

Thanks and have a nice day!!!

Regards,

Samta

Answers (0)