on 04-10-2014 6:53 PM
Hi,
I wanted to change do small chnage to the existing jar file in webdynpro jave application. I did change the jar file.
Question: Please let me know how can i include this jar file into existing application back and how the transport happend for the same?
do we need to copy paste the ne jar file(updated jar file) in local drive where it exists and do little chnage the application will create an activity. then move to test and prd will that move the jar file as well?
appreciate your prompt help.
Thanks
Rag
hi Rag,
if your webdynpro application is of type DC , and the external jar file is added here via external library file, then you need not do any changes to your webdynpro application.
replace the existing jar file in your external library dc, with the new jar file , build the same , and if you have external lib deployable J2ee-server - library dc, build that and deploy .
now you can build your webdynpro application (dc) and deploy the same to the server . In this way the jar with latest changes are also getting deployed.
In case you have used the external lib directly to your webdynpro application with buid time dependency then build you webdyrnpro application and deploy.
This will incorporate the changes you have done in the external jar file.
In case you have external library only and no deployable j2ee-server->library dc , in that case just build your wd dc and external lib and if successfull build , deploy to the server.
If your webdynpro application is of normal webdynpro project then right click the project -> properties->java build path -> select libraries tab -->add external jar files-> here you have option to add the new jar , i.e browse to the location your new jar is placed add it to your project build your project and deploy
if you are working on NWDI activities, then first check if the external jar files --> external library dc is developed on the track , if yes check wheater it was checked out earlier , if not checked out when you delete the jar file in the library folder , it will prompt for a new activity if not it will not prompt , so please check that.
Now checkIn the activity of your webdynpro application as well as external library files.
in that way you can move the changes from test to prd.
Let me know if you are using External Lib file and webdynpro DC or only external jar and normal webdyn project. ?
Regard
Govardan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi rag,
assume you have development component named as testone and another development component as testtwo now testone is external dc to testtwo and vice versa.
what is your webdynpro application is of type Development component or normal webdynpro project ...
you can google fore development compnents in webdynpro java, etc you will find more websites from sap , that explain in much detail.
Regards
Govardan Raj
Hi Raj,
Thanks for the reply.
properties says Type is project. So its means webdynpro project.
Like this have couple projects for same application. Under two are Jars, under these two jars i have to update my changed jar. Then the file used in another project.
I can see other project which is using this jar is seeing in webdynpro explorer.
But two jar projects are not showing in webdynpro explorer, but they can see through Navigator after i imported into location NWDS.
My request is i have changed the jar file from existing jar project and replaced it in local path where it is currently. but it didnt ask me the activity to deploy the same.
so how do i update JAR file and delpoy into server. and where can i see the JAR file been updated in server? i am how to deploy into server.
am inserting screen shots but its not taking it.
thanks
rag
hi rag,
1) "Like this have couple projects for same application. Under two are Jars, under these two jars i have to update my changed jar. Then the file used in another project.
I can see other project which is using this jar is seeing in webdynpro explorer.
But two jar projects are not showing in webdynpro explorer, but they can see through Navigator after i imported into location NWDS."
here it shows that two are external library files having the jar file in the library folder.
2) "My request is i have changed the jar file from existing jar project and replaced it in local path where it is currently. but it didnt ask me the activity to deploy the same.
In this part , im not clear like how you were able to change the jar file without checking out the external lib dc , in the external lib, as i told earlier if it was checked out then activity will not be asked,
3) "so how do i update JAR file and delpoy into server. and where can i see the JAR file been updated in server? i am how to deploy into server."
JAR file cannot be deployed directly the way you deploy a DC or Webdyn pro project.
if you have changed the jar file , just build your webdynpro project that uses this jar file. and deploy the same . The new jar file gets deployed along with your webdynpro project.
if you want to deploy jar file, then you have to create a wedynpro development component of type j2EE-Server--library .
Then in Used Dcs add your external lib dcs assembly public part with build time dependency
go throught this blog you will know more about external jar file and its usage at run time.... and how it is getting deployed to the server.
Hi Raj,
2.
In this part , im not clear like how you were able to change the jar file without checking out the external lib dc , in the external lib, as i told earlier if it was checked out then activity will not be asked,
Took jar from development configuration root folder path after importing into NWDS and changed the exiting jar file and
made jar and replace the same location of development configuration root folder manually.
Just replaced the updated jar file (like copy paste). That's why it didn't ask me the activity nor check out. I didn't didn't see these external dc (java/jar) how to check out(like normal DCs). Needed help on this part.
Do we need to Add external Jars, or Jar or Add library Or Edit etc from properties of Java dc java build path. will this ask me the check out/activity? --> need add Java jar DCs library OR
to edit/add other DC library using these JAR file?
Thanks
Rag
Is it an external jar file?
To include any change into components in NWDI track, you have to do it through an activity(check-out) and then check in the activity with the changes.
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes it is an external jar file. and same file is using currently in the application. I did a change to same jar file and i want to keep it in same place and move to test and prd.
Please advice is how do we handle the jar file in the application. I mean how do i insert the jar file in current application, and how do i capture these changes move forward.
I know regular changes for Java webdynpro and transport activity check in to test and prd.
but i never worked with jar file handling with java wbdynpro.
appreciate your help.
I know that activity check in will move changes to test and ord.
thanks
rag
Thanks for the reply Jun,
I not sure what is mean by API signature, but my jar is in external jar dcs. And used in other dc as import package.
Yes, my webdynpro DC is biuld time dependency.
Let me summarize my chnage:
I took the jar file from local dir after importing the dcs and change the jar file. then placed it same location in location project project library path.
but it didnt ask the activity that time for change happen.
Please advice how do i include my jar changes to dcs and deploy into server as well as
how to create activity for this change jar?
Thanks
rag
Ok,
how can i change the jar dcs in order to check out. it has just jar only and i have copied new jatr jar file at that location in location drive. There is no place to change this dcs.
where as have chekout the other dc which is using jar import.
so how do i change the jar dcs (checkout)
what does mean of publick part. do we need to any thing here?
thx
rag
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.