cancel
Showing results for 
Search instead for 
Did you mean: 

add library

werner_dornacher
Explorer
0 Kudos

Hi,

I'm trying to use the mysql connector librarie in a web-dynpro project. The problem is that I always get "no suitable driver found" exception. I used the deploy tool to deploy the lib on the server. The deploy was succesful. Do I need to add some references in my project properties? What fields are important when I deploy a lib ( I kept the default values)? I followed the instructions in the help files with no sucess.

best regards

Werner

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Hope you had solved your problem by now, but if not this might help u.

*When you deploy the library, do restart the server.

*Secondly you are right to include the library reference you have to add the following (reference tag) in application-j2ee-engine.xml(of the generated EAR file when u archive ur web dynpro project)

<application-j2ee-engine>

<reference

reference-type="hard">

<reference-target

provider-name="sap.com(provider name as when u deployed ur library, it is sap.com by default)"

target-type="library">(Name of the deployed library) </reference-target>

</reference>

<other-tags>.... </other-tags>

</application-j2ee-engine>

  • I think you are following the hard way to include a library, try adding the jar manually in the archive (EAR file) generated when u build archive WebDynPro project before deploying it on the SAP Web AS.

Hope any of the above points helps, if you already found the remedy, do share it by replying on this thread.

With Regards,

Rohit Jaiswal

Former Member
0 Kudos

Hi,

If all of the tips in my previous reply fail. Do try one more thing

  • Deploy the library and restart the server.

  • In the EAR file generated (by build archive WebDynpro app), there is WDA(web dynpro archive file) open it with winzip and extract portalapp.xml, in that u add a libraries reference (property tag) as shown below

<application>

<application-config>

<property name="LibrariesReference" value="Name of the deployed library"/>

</application-config>

<some-tags> .. </some-tags>

</application>

and then put the file back into WDA archive and WDA archive back into EAR file and deploy the WebDynPro application.

Do share the solution of the problem if you are able to resolve it.

With Regards,

Rohit Jaiswal

Former Member
0 Kudos

Hi Werner and Rohit,

there's tool support in the DevStudio for adding library (and other) references to a WD project. You don't have to edit the portalapp.xml manually!

This can be done using the contextmenu at the WD Project->Properties. In the following dialog, select Web Dynpro References->Library References. Add the library there. The name to use is exactly the same as you will see in the Visual Admin for example. This should solve the problem.

Hope that helps.

Regards

Stefan