cancel
Showing results for 
Search instead for 
Did you mean: 

how to update single file on NetWeaver(2004s)

Former Member
0 Kudos

Hi,

I have deployed my project abc.ear on NetWeaver(2004s) through visual admin.

Now i want to change two (.class) files.For this , I found one option single update file on visual admin. But I am not understanding the option given there to select and replace the file.

Can anybody tell me the details steps that I should follow in order to change 2 files?

I really appricate if anybody solve my problem as i have to change the file again and again. Now I every time undeploy the application, make the changes and again deploy the application.

Accepted Solutions (1)

Accepted Solutions (1)

cand1
Advisor
Advisor
0 Kudos

Hi Chandan,

I used single file update to change the web.xml or to add a library to an existing web application without redeploying the whole ear file. The uploaded files are store in the DB and distributed within the cluster and I guess this is the reason for this functionality which improves development speed in cluster environments or on huge web application. Storing in DB ensures that on next resynchronisation (full cluster restart) the files are read from DB and not overwritten by older ones.

If you have already both classes deployed use can use the single file update to change both files in one go. The visual admin will then restart your application.

HTH

Daniel

Former Member
0 Kudos

Hi Daniel,

Thanks, I could now deploy the class file through single file update option of visual admin. But now, i am facing a new problem. Details are given below.

We have a J2EE application containing few properties file packed inside

a java archive. These properties are Configuration properties which we

are required to change few times after deployment.

We are using SAP Visual Administrator to deploy\undeploy our

application.

We found out that Visual Administrator dose not support update of files

packed in a simple Java Archive in Single File Update Option. It only

allows updates of EJB Modules archive.

Please let us know if there is any other way we can update a file inside a simple java archive .

cand1
Advisor
Advisor
0 Kudos

Hi Chandan,

unfortunately, it's impossible to upload single files from within jar archives. Single file update works on files of a extracted web application. It doesn't matter if it's a xml or a jar file.

You can try to build the jar file containing your modified file and upload the entire jar file. This should be quicker then deploying the whole web applications.

HTH

Daniel

Former Member
0 Kudos

Hi Daniel,

Thanks for your file, Infact our properties file are also in a .jar file packed inside an ear Application, However when we click on Single File Update option in Visual Admin on ur Application, it shows only ejb modules related jar, it dosent show our .jar which has non ejb classes and our properties file .

please let us know is there any thing else that we need to do so that our simple jar file also starts appearing in the single file update option ?

cand1
Advisor
Advisor
0 Kudos

Hi Chandan,

this quite simple, you must not use the browse button in the mapping field. Do the following after the single file update window appears:

- Find File: locate the file to update on the disc by using '...' button

- Mapping: type in the relative location to your file in the web app structure like WEB-INF/lib/my.jar

- press Add then Ok

wait until the app is restarted.

HTH

Daniel

Former Member
0 Kudos

Hi Daniel,

Thanks again, I followed the steps which you mentioned previously. But I found that we need to select module option also. But I am not able to find the misc.jar module . I could find only those module which contains ejbs.

Do you have any idea how to points other non ejbs module in module option?

I think, this will solve my problem now.

Former Member
0 Kudos

Hi Daniel,

I have one another problem. If you have any idea please let me know.

Details are given below.

We have a J2EE application (call it myapps.ear). Note that this application uses Hibernate. It also requires a data source application (call it mydatasource) which we have created through VisualAdministrator. The application myapps.ear is dependent on the application mydatasource for its proper start-up and execution. If the application myapps.ear is started when the application mydatasource is

not up, myapps.ear does not start well due to failure in hibernate initialization.

Consider the scenario when both these applications (myapps.ear and datasource) are in the running state.

The problem comes when we restart Netweaver server. After a server restart, myapps.ears comes up earlier than the dependency mydatasource.This results in myapps.ear not initializing properly due to failure in hibernate initialization. Note, however, that myapps.ear still appears as successfully started in Visual Adiministrator.

We feel that this problem can be resolved if we could specify depencies

among applications (effectively specifying the relative order of application startup); i.e. if we are able to specify that the application myapps.ear is dependent on mydatasource application, and so the application mydatasource should be started before the myapps.ear application.

We could not find a way in Visual administrator where we can define these dependencies between applications .?

cand1
Advisor
Advisor
0 Kudos

Hi Chandan,

can't you leave simply the default entry in the module field? I never changed that value and it worked for me.

Best

Daniel

Former Member
0 Kudos

Hi Daniel,

Thanks,

but it is showing me an alert that obligatory fields are not filled in.

Regards,

Chandan

cand1
Advisor
Advisor
0 Kudos

Hi Chandan,

you have to add a SAP specific deployment descriptor application-j2ee-engine.xml to your ear in meta-inf folder. There you set a hard reference to the db pool like this:

<reference reference-type="hard">

<reference-target provider-name="your-provider"

target-type="application">

your_db_pool.xml

</reference-target>

</reference>

The db pool is handled like an application. You can find more information here:

http://help.sap.com/saphelp_nw70/helpdata/en/53/69662514eb6e46b1eb6e77ae5cf10b/content.htm

HTH

Daniel

cand1
Advisor
Advisor
0 Kudos

You have to select the app first and then press Single File Update. The module name will then be preselected.

HTH

Daniel

Former Member
0 Kudos

Hi Daniel,

Thanks for giving me lot of information. But to be very honest, I tried this lot of time of time, but i was not able to select the module which i required.

Thing is that, my project contain 15 modules, out of which 9 contains ejb. And if I select the application, I could see only these ejb module. And I have to change the properties file which are there in remaining 6 module which are simple java archive.

Can you let me know of to update these 6 module which are not appearning in module option?

Regards,

chandan

cand1
Advisor
Advisor
0 Kudos

Hi Chandan,

to be honest too I haven't used it in an application with more then one module. I took always the default module setting in this field.

Sorry,

Daniel

Answers (0)