Maximo List Archive

This is an archive of the Maximo Yahoo Community. The content of this pages may be a sometimes obsolete so please check post dates.
Thanks to the community owner Christopher Wanko for providing the content.



Downloading File From Maximo AppServer DIR

From: pranjal149 (2016-05-18 07:39)

If any of you has ever used migration manager to create packages, you would have noticed that once you create a package, it can be downloaded to you local system by clicking the download button. The package is available for download till its explicitly deleted from migration manager. This means that this package in stored in the application server.

I found that these packages are stored in ../AppServer/maximo/migration/outbound/ folder in websphere and using the this URL it can be downloaded in the local system - http://servername:port/maximo/migration/outbound/filename.ext http://servername/maximo/migration/outbound/filename.ext

Now I placed a random file in the ../AppServer/maximo/migration/outbound/ directory and tried to download it using the URL and I was able to download it.

Then I created another folder with the name folder1 inside ../AppServer/maximo/ and placed a file inside folder1. When I tried to download the file, it gave me a servlet error. URL -
http://servername:port/maximo/folder1/filename.ext http://servername/maximo/migration/outbound/filename.ext

Then I created another folder with the name folder2 inside ../AppServer/maximo/migration and placed a file inside folder2. When I tried to download the file, I was able to download the file with the URL -
http://servername:port/maximo/migration/folder2/filename.ext http://servername/maximo/migration/outbound/filename.ext

Does anybody know why I cannot download the file from the dir ../maximo/folder1?


From: swkim (2016-05-19 07:06)

If you look in the following directory (or the Linux equivalent), you will see a web.xml
c:\ibm\smp\maximo\applications\maximo\maximouiweb\webmodule\WEB-INF
Around line 450 is the servlet-mapping for migration.

so /maximo/folder1 is not recognized by the app server as valid URL pattern.
but /maximo/migration/folder2 is a valid URL pattern.

Since the port you are accessing is controlled by the AppServer, you can only use URLs it allows.

You can use IBM HTTP Server (a variant of Apache web server) to use /maximo/folder1 if you want.

I personally wouldn't do what IBM suggests, but if you want support... its likely the way you have to do it:
IBM How to serve static files from both IBM HTTP Server and an application in WebSphere Application Server - United States http://www-01.ibm.com/support/docview.wss?uid=swg21508890

IBM How to serve static files from both IBM HTTP Server and an application in WebSphere Applica... http://www-01.ibm.com/support/docview.wss?uid=swg21508890 Now, if you also want to be able to serve some of the static files from the IHS web server itself, you will need to do a trick using RewriteRule in the IHS config. Here is how the trick works:



View on www-01.ibm.com http://www-01.ibm.com/support/docview.wss?uid=swg21508890
Preview by Yahoo




Difference between / and /* in servlet mapping url pattern http://stackoverflow.com/questions/4140448/difference-between-and-in-servlet-mapping-url-pattern

http://stackoverflow.com/questions/4140448/difference-between-and-in-servlet-mapping-url-pattern

Difference between / and /* in servlet mapping url patte... http://stackoverflow.com/questions/4140448/difference-between-and-in-servlet-mapping-url-pattern The familiar code: main /*



View on stackoverflow.com http://stackoverflow.com/questions/4140448/difference-between-and-in-servlet-mapping-url-pattern
Preview by Yahoo





From: pranjal149 (2016-05-24 06:53)

I checked the web xml and understood how this works!

Thanks a ton!