Use Java version 6 update 7 and ASDM 7.1.3

  ASDM access to 5500 using Java was just a frustrating experience. If you manage only one device you may not notice the pain. But if you are managing multiple devices with some device 'forbidden' to update ASA firmware, it is very frustrating. I spend few days looking at the issue and came to a conclusion and decided to post to guide all newer VPN admins who will go through the same pain and hopefully we can reduce some combined wasted time. No thanks to Cisco. This is not a guide but a start point of a dicussion and all input are welcome.
  Recommended Beginning Setup for New Admin :
  Java Version 6 Update 7      
  ASDM 7.1(3)
  Reason for recommendation :
  a. There doesn't seem to be any recommendation to where to start your ASDM journey. So here. Start from here. Attached PDF is simple list of Java version and its release date. http://en.wikipedia.org/wiki/Java_version_history Version 6 Update 7 is unique in that it is the last version to support Win 9x. Why is that important? ASDM is written on Win 9x interface.
  b. It is a very old 2008 release. So why use such an old security cesspool of a product as a base? Security of newer version of Java isn't any better. Recommendation of Java use is to not use it. Java isn't secure. '.' But Cisco is insisting on using it. Shame on Cisco and this ASDM Java debacle is a shameful thing that Cisco even now can't careless.
  c. Attached is the list of release date of Java and Cisco products. ASDMS for FWSM range from 2007-2010, ASA 5500 and PIX 2007-2008, ASA 2010-2013. 2008 seems to fit quite nicely in the middle. Very scientific .
  Recommendation after gaining full access
  a. Update ASA and ASDM firmware to latest. ASDM 7.1.3 has same interface as much older ASDM. Kudos to Cisco on that.. 
  b. Write to US-CERT and CC Cisco to have them remove Java on their key platform. (Android too.. <- now, there's a joke!)

UPDATE 2...
ASDM ASA management platform has a major flaw. Different version require different version of Java JRE(Runtime Environment). One would think latest version should be backward compatible. It isn't so.
So far Java Version 6 and Update 7 has been most compatible for my work. But NSP and other management console also require JRE and they unlike Cisco works well with the latest version but not with older version.
Keeping and working with multiple version of JRE is a pain because JRE does not have proper control to support that automatically. One way to accomplish launching different version of JRE instead of default is use of command-line.
In ASDM's shortcut icon properties, add version information in "target:". Find out JRE versions installed in your system under C:\Program Files (x86)\Java. Add option -version:"1.6.0_07" to specify which version to use. My example is JRE version 6 update 7.
Original line :
C:\Windows\SysWOW64\javaw.exe -Xms64m -Xmx512m -Dsun.swing.enableImprovedDragGesture=true -classpath lzma.jar;jploader.jar;asdm-launcher.jar;retroweaver-rt-2.0.jar com.cisco.launcher.Launcher
Modified line :
C:\Windows\SysWOW64\javaw.exe -version:"1.6.0_07" -Xms64m -Xmx512m -Dsun.swing.enableImprovedDragGesture=true -classpath lzma.jar;jploader.jar;asdm-launcher.jar;retroweaver-rt-2.0.jar com.cisco.launcher.Launcher
http://docs.oracle.com/javase/6/docs/technotes/tools/windows/java.html
#ASDM #JAVA #JRE

Similar Messages

  • I have an apple ID, I'm trying to use this to update and download apps etc. however, whenever I try this, it keeps asking me to use my old ID, which is attached to an email that no longer exists! I can't download or update anything! Help!

    I have an apple ID, I'm trying to use this to update and download apps etc. however, whenever I try this, it keeps asking me to use my old ID, which is attached to an email that no longer exists! I can't download or update anything! Help!

    You can log out of the currently logged in account by taping on the id in Settings > Store (Settings > iTunes & App Stores on iOS 6) and you can then log back in.
    If you updated your existing account with a new email address then that shoud 'refresh' it on it
    If you created a new account then any content that you purchased/downloaded via the old account will remain tied to that old account, and only that old account can redownload its content and download updates to its apps. You should be able to update an account's email address via this page : http://appleid.apple.com

  • HT4623 Please  help!  i have just update my iphone 4s with 7.4 update and my phone is now asking for a password which i dont have.  I have tried my keypad lock i used before the update and also my itunes password and neither work, how do i rectify this ??

    Please  help!  i have just update my iphone 4s with 7.4 update and my phone is now asking for a password which i dont have.  I have tried my keypad lock i used before the update and also my itunes password and neither work, how do i rectify this ???

    Did you buy this iPhone new from an authorized seller?

  • I accepted a version update and now iTunes closes on launch with the message "iTunes has stopped working. Windows will close the program and notify you if a solution is available." What to do?

    I accepted a version update and now iTunes closes on launch with the message "iTunes has stopped working. Windows will close the program and notify you if a solution is available." What to do?

    Hey Todd Rubenson,
    Thanks for the question. I understand that you are experiencing issues with iTunes for Windows unexpectedly quitting. The following resource may provide a solution:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/TS1717
    Thanks,
    Matt M.

  • I have a wifi connection but "safari cannot open the page because it is not connected to the internet" I have reset everything; I have used Itunes to update and reset. Still no good. It worked until 2 days ago

    I have a wifi connection but "safari cannot open the page because it is not connected to the internet" I have reset everything; I have used Itunes to update and reset. Still no good. It worked until 2 days ago

    Reset everything.. did you do this?
    Tap Settings / General / Reset / Reset Network Settings
    If you're already been there, done that, could be a third party app preventing Safari from accessing the web.
    Re sync your apps 5 at a time, then test the iPad.

  • I'm using firefox version 6 and for the last three days the add-ons manager page won't load. my question is why won't the add-ons page load? is the server down on your end?

    i'm using firefox version 6 and for the last three days the add-ons manager page won't load. my question is why won't the add-ons page load? is the server down on your end?

    Click on something below the Get Add-ons menu item on the left side of the Add-ons Manager tab.

  • We encountered a problem with some client machines that use Firefox version 24ESR and IE8. Ajax requests of aspx pages from Firefox are getting the following er

    I encountered a problem with some client machines that use Firefox version 24ESR and IE8.
    Ajax requests of aspx pages from Firefox are getting the following error from the iis server (iis version 7.5):
    Bad Request - Request Too Long
    HTTP Error 400. The size of the request headers is too long.
    From analyzing the request that was sent to the server, I saw that the request consist of only the viewstate of the aspx page.
    I tried to disable the viewstate for one page and the server got the request correctly.
    I do not encounter any issues on these laptops with postback requests from Firefox or when running the same application with IE8.

    Sometimes that means that the page address sent is loo long.
    Check the link address you are using.
    I can't help you further and will send for more help.

  • I just downloaded the Java software update and now certain programs aren't loading that use Java?

    So I downloaded the new softeware update and now my programs that use Java won't load. Does anyone know what I can do.

    Due to the extreme unpredictability of the Flashback Trojan, that was constantly changing (and a new variant that's been detected and seems to be worse), Apple decided to play it safe just in case the revised Java code was still vulnerable. So, Java is disabled by default for applets and must be manually enabled as needed (with the warning about possible vulnerability).
    So, head on over to Java Preferences, in Utilities, and enable the thing as needed. Disable when no longer in use for security's sake. BTW, if you enable but don't use Java in awhile, it is configured to self-disable for the same reason.

  • Using Java 1.4 and 1.2 on the same workstation

    I have applicaitons that require JRE 1.2 and applications that require JRE 1.4. Is it possible to switch between the two? If so, how would one do it? The 1.2 applications will not work in 1.4 unfortunately.

    The gotcha here is under windows (naturally)
    Another copy of java.exe is placed into the system32 directory by
    the installer. If this version is executed it queries the registry for
    java version information - in your scenario you don't want that behavior,
    because you sometimes want one version, sometimes another.
    This directory is always on the system classpath, so you either
    need to delete the rogue copy of java.exe, (I recommend that)
    or be careful as you play with the path, that the jrehome\bin places
    you use are ahead of winnt\system32.
    see my post at:
    http://forum.java.sun.com/thread.jsp?forum=37&thread=222690&message=795061#795061
    for the details

  • Page will not load... java was updated and all...

    I need to do an online training course. I was told that my java needed to be updated and it was. When I go to the sight, it opens a new window and shows an icon that the page is loading, but it never does.

    Hi Diana, do you see any notification icons in the address bar to the left of the address? Those may indicate security or plugin issues. If you see anything there, click on them for more information.
    You also could try the site in Firefox's Safe Mode. That's a standard diagnostic tool to bypass interference by extensions (and some custom settings). More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using
    Help > Restart with Add-ons Disabled ''(Flash, Java, other plugins still run)''
    In the dialog, click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • Deploying Java Software Updates and SCUP 2011

    Hello again All,
    I've created  a Java software update (JRE 7u71 (x86)) using SCUP 2011, and followed Kent Agerlund's "The_Complete_SCUP_2011_installation_and_configuration_guide" (great doc by the way). I've made sure to include all of the switches and
    installable/installed rules as recommended.
    Now the problem, once I advertise the update via SCCM, and begin installing, if a browser is open and Java is in use, then it will hang for a while and eventually just fail. However, when I run the java executable locally (jre-7u71-windows-i586.exe),
    with the same switch (/s "IEXPLORER=1 MOZILLA=1" /quiet),  the system will actually reboot and then install once booted back up; which is desirable.
    Has anybody experienced this issue, and if so how do I remediate?
    For 32 bit systems, I also get the following prompt;
    Note: I'm not sure why the full switch is required, as I can only find reference that the JRE executable supports the "/s".
    I can provide logs as well, if requested.
    Thanks,
    Bill

    Java Install logs - From start until pop-up
    === Logging started: 11/12/2014  13:32:20 ===
    Action start 13:32:20: INSTALL.
    Action start 13:32:20: AppSearch.
    Action ended 13:32:20: AppSearch. Return value 1.
    Action start 13:32:20: LaunchConditions.
    Action ended 13:32:20: LaunchConditions. Return value 1.
    Action start 13:32:20: FindRelatedProducts.
    Action ended 13:32:20: FindRelatedProducts. Return value 1.
    Action start 13:32:20: ValidateProductID.
    Action ended 13:32:20: ValidateProductID. Return value 1.
    Action start 13:32:20: setUserProfileNT.
    Action ended 13:32:20: setUserProfileNT. Return value 1.
    Action start 13:32:20: setAllUsersProfile2K.
    Action ended 13:32:20: setAllUsersProfile2K. Return value 1.
    Action start 13:32:20: CostInitialize.
    Action ended 13:32:20: CostInitialize. Return value 1.
    Action start 13:32:20: FileCost.
    Action ended 13:32:20: FileCost. Return value 1.
    Action start 13:32:20: IsolateComponents.
    Action ended 13:32:20: IsolateComponents. Return value 1.
    Action start 13:32:20: CostFinalize.
    Action ended 13:32:20: CostFinalize. Return value 1.
    Action start 13:32:20: SetARPReadme.
    Action ended 13:32:20: SetARPReadme. Return value 1.
    Action start 13:32:20: CheckPendingFileRenameOperations.
    Action ended 13:32:20: CheckPendingFileRenameOperations. Return value 1.
    Action start 13:32:20: SetODBCFolders.
    Action ended 13:32:20: SetODBCFolders. Return value 1.
    Action start 13:32:20: MigrateFeatureStates.
    Action ended 13:32:20: MigrateFeatureStates. Return value 0.
    Action start 13:32:20: SetARPINSTALLLOCATION.
    Action ended 13:32:20: SetARPINSTALLLOCATION. Return value 1.
    Action start 13:32:20: InstallValidate.
    Info 1603.The file C:\Program Files\Java\jre7\bin\java.exe is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\awt.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\dcpr.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\deploy.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\deploy.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\fontmanager.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\java.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\java.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\jp2iexp.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\jp2launcher.exe is being held in use by the following process: Name: jp2launcher, ID: 6876, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\jp2native.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\jp2native.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\jp2ssv.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\management.dll is being held in use by the following process: Name: FrameworkService, ID: 1716, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\management.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\net.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\net.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\nio.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\nio.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\ssv.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\sunec.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\sunmscapi.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\t2k.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\verify.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\verify.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\zip.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\zip.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\client\jvm.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\client\jvm.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Action ended 13:32:23: InstallValidate. Return value 1.
    Action start 13:32:23: RemoveExistingProducts.
    Action start 13:32:23: INSTALL.
    Action start 13:32:23: AppSearch.
    Action ended 13:32:23: AppSearch. Return value 1.
    Action start 13:32:23: LaunchConditions.
    Action ended 13:32:23: LaunchConditions. Return value 1.
    Action start 13:32:23: FindRelatedProducts.
    Action ended 13:32:23: FindRelatedProducts. Return value 0.
    Action start 13:32:23: ValidateProductID.
    Action ended 13:32:23: ValidateProductID. Return value 1.
    Action start 13:32:23: setUserProfileNT.
    Action ended 13:32:23: setUserProfileNT. Return value 1.
    Action start 13:32:23: setAllUsersProfile2K.
    Action ended 13:32:23: setAllUsersProfile2K. Return value 1.
    Action start 13:32:23: CostInitialize.
    Action ended 13:32:23: CostInitialize. Return value 1.
    Action start 13:32:23: FileCost.
    Action ended 13:32:23: FileCost. Return value 1.
    Action start 13:32:23: IsolateComponents.
    Action ended 13:32:23: IsolateComponents. Return value 1.
    Action start 13:32:23: CostFinalize.
    Action ended 13:32:23: CostFinalize. Return value 1.
    Action start 13:32:23: SetARPReadme.
    Action ended 13:32:23: SetARPReadme. Return value 1.
    Action start 13:32:23: SetODBCFolders.
    Action ended 13:32:23: SetODBCFolders. Return value 1.
    Action start 13:32:23: MigrateFeatureStates.
    Action ended 13:32:23: MigrateFeatureStates. Return value 0.
    Action start 13:32:23: InstallValidate.
    Info 1603.The file C:\Program Files\Java\jre7\bin\java.exe is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\awt.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\dcpr.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\deploy.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\deploy.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\fontmanager.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\java.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\java.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\jp2iexp.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\jp2launcher.exe is being held in use by the following process: Name: jp2launcher, ID: 6876, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\jp2native.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\jp2native.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\jp2ssv.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\management.dll is being held in use by the following process: Name: FrameworkService, ID: 1716, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\management.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\net.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\net.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\nio.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\nio.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\ssv.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\sunec.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\sunmscapi.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\t2k.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\verify.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\verify.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\zip.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\zip.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\client\jvm.dll is being held in use by the following process: Name: iexplore, ID: 6644, Window Title: (not determined yet).  Close that application and retry.
    Info 1603.The file C:\Program Files\Java\jre7\bin\client\jvm.dll is being held in use by the following process: Name: java, ID: 7448, Window Title: (not determined yet).  Close that application and retry.
    Action ended 13:32:26: InstallValidate. Return value 1.
    Action start 13:32:26: InstallInitialize.
    Action ended 13:32:26: InstallInitialize. Return value 1.
    Action start 13:32:26: UninstallJQS.
    Action ended 13:32:32: UninstallJQS. Return value 1.

  • Problem in Creating a jar file using java.util.jar and deploying in jboss 4

    Dear Techies,
    I am facing this peculiar problem. I am creating a jar file programmatically using java.util.jar api. The jar file is created but Jboss AS is unable to deploy this jar file. I have also tested that my created jar file contains the same files. When I create a jar file from the command using jar -cvf command, Jboss is able to deploy. I am sending the code , please review it and let me know the problem. I badly require your help. I am unable to proceeed in this regard. Please help me.
    package com.rrs.corona.solutionsacceleratorstudio.solutionadapter;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.util.jar.JarEntry;
    import java.util.jar.JarOutputStream;
    import java.util.jar.Manifest;
    import com.rrs.corona.solutionsacceleratorstudio.SASConstants;
    * @author Piku Mishra
    public class JarCreation
         * File object
         File file;
         * JarOutputStream object to create a jar file
         JarOutputStream jarOutput ;
         * File of the generated jar file
         String jarFileName = "rrs.jar";
         *To create a Manifest.mf file
         Manifest manifest = null;
         //Attributes atr = null;
         * Default Constructor to specify the path and
         * name of the jar file
         * @param destnPath of type String denoting the path of the generated jar file
         public JarCreation(String destnPath)
         {//This constructor initializes the destination path and file name of the jar file
              try
                   manifest = new Manifest();
                   jarOutput = new JarOutputStream(new FileOutputStream(destnPath+"/"+jarFileName),manifest);
              catch(Exception e)
                   e.printStackTrace();
         public JarCreation()
         * This method is used to obtain the list of files present in a
         * directory
         * @param path of type String specifying the path of directory containing the files
         * @return the list of files from a particular directory
         public File[] getFiles(String path)
         {//This method is used to obtain the list of files in a directory
              try
                   file = new File(path);
              catch(Exception e)
                   e.printStackTrace();
              return file.listFiles();
         * This method is used to create a jar file from a directory
         * @param path of type String specifying the directory to make jar
         public void createJar(String path)
         {//This method is used to create a jar file from
              // a directory. If the directory contains several nested directory
              //it will work.
              try
                   byte[] buff = new byte[2048];
                   File[] fileList = getFiles(path);
                   for(int i=0;i<fileList.length;i++)
                        if(fileList.isDirectory())
                             createJar(fileList[i].getAbsolutePath());//Recusive method to get the files
                        else
                             FileInputStream fin = new FileInputStream(fileList[i]);
                             String temp = fileList[i].getAbsolutePath();
                             String subTemp = temp.substring(temp.indexOf("bin")+4,temp.length());
    //                         System.out.println( subTemp+":"+fin.getChannel().size());
                             jarOutput.putNextEntry(new JarEntry(subTemp));
                             int len ;
                             while((len=fin.read(buff))>0)
                                  jarOutput.write(buff,0,len);
                             fin.close();
              catch( Exception e )
                   e.printStackTrace();
         * Method used to close the object for JarOutputStream
         public void close()
         {//This method is used to close the
              //JarOutputStream
              try
                   jarOutput.flush();
                   jarOutput.close();
              catch(Exception e)
                   e.printStackTrace();
         public static void main( String[] args )
              JarCreation jarCreate = new JarCreation("destnation path where jar file will be created /");
              jarCreate.createJar("put your source directory");
              jarCreate.close();

    Hi,
    I have gone through your code and the problem is that when you create jar it takes a complete path address (which is called using getAbsolutePath ) (when you extract you see the path; C:\..\...\..\ )
    You need to truncate this complete path and take only the path address where your files are stored and the problem must be solved.

  • Access mirror site using java, download files and other information?

    Hi, I have 2 nodes/servers on the system both running webservers and having the same interface, but at a time user will access one node at a time from their browser, but this interface will be able to allow the user to get information from the both the nodes. the information that the user can get is DB stored as well as files on the disk of either node.
    i can manage the DB, cuz there is nothing to it, but how do I get files from the other node?
    currently any files/web documents are all stored in a application directory of the web root and protected by htaccess i believe, so when a user logs on to node one he can access all plain text/binary files along with web content since the web server authorizes the user to access anything in that dir. but at the same time from the same session I want to be able to access files in a mirror site using the same username and password and not having him to enter it again. the username/pass combo is replicated on both the servers, it this possible?
    currently i use the http password protection provided by apache to access one node, but can i use the same session on another machine with the same credentials?
    If this is not possible how can i do this programatically using java? can i do can "ls" on the directory i want on another server and display the list to the user and then when he clicks on that file name i fetch it from the backup/mirror server and have him save it using http or ftp?
    It would be great if we can get a solution to this.
    Thank you very much in advance.
    Ankur

    If you install the web server on different machines, It is possible to share the informations between them.

  • Generic Populating the XML document using Java Class Generator and Reflection

    I am looking for a generic source code in order to convert the data parsed from any tabular text form ( tab delimited for example that maps certain XML Schema created form Database Schema for Oracle.
    I know it is possible to generate XML DTD or XSD from Oracle database table schema by XSU utility from XDK. And also it is possible to create Java source files from an XML DTD or XSD by using XML Clas Generator.
    I believe there must be some generic code that parses tabular text data and converts them to XML format using above mentioned generated Java source files and may be Java reflection mechanism.
    If anyone has any tool or knows any free ware that helps me, I would like to know about it, and I would really appreciate it.

    1. Read the XML file into a DMO object, walk the DOM to find the list, insert your new entry as a child, write the DOM back to a file.
    2. If the XML is not in a file, but in a string, then you can do the same with string input and output.

  • Version update and now "replace with after effects composition" is greyed out.

    Hi, I've been working on a project for a while now (using Premiere Pro cc and After Effects cc).
    Then CC 2014 came out. I installed those new Versions. To make sure that everything still works I've continued working with cc versions. Now if I want to "Replace with After Effects Composition" (in the premiere pro project opend in Version cc) it doesn't work since it's greyed out.
    Can somebody help me?

    Ok guys...I got it...
    Its not a *mov that it missplaced, its another dynamic link to AE...so dynamic link to dynamic link seems not to work? I accidently linked that clip and worked on it in AE in the old aep from yesterday..but still wondern why AE get confused loading it...the "old aep comp" is full with others comp...could that be the reason...?

Maybe you are looking for

  • Is it possible to upgrade the hard drive of my MacBook Pro Mid 2009?

    I have a mid 09 MacBook Pro that has 250GB of hard drive space, and I was looking to upgrade it to something around 750GB to maybe even 1 terabyte. I've looked around and I'm afraid of getting the wrong model for my laptop, so is there any place or t

  • Date and time format please

    I have a date and time held separately eg. int day, int month, int year. same with hours seconds and minutes Is there an easy way to format this information into date and time please!!

  • HR Abap in upgrade

    hi friends, can anyone tell me how hr dynamic, hr infotype and hr scema get impacted while upgradation. thanks

  • Mobile Me Alias not showing up in "From" drop down list in Mac Mail

    I have a couple of older .mac/Mobile Me email aliases that used to show up as either [email protected] or [email protected] in Mac Mail in the From drop down list, as recently as yesterday. Today, all I can see for any alias that has both the .mac an

  • Aperture 3 does not recognize duplicates on Import

    I was running an up to date version of Aperture 2 on all three of my machines. I upgraded the 17 MBP to Aperture 3. All updates applied, seems to function normally. I exported versions from an Aperture 2 machine in an attempt to consolidate my librar