Internal JAR package loading???

Ok I hate having to come to forums and bother other people,
but hopefully someone will know and be able to aid me in some way...
It's driving me absolutely insane...
Alright I've made an application. Basic application that display Hello World
in a JLabel. That's all. But here the catch, it uses the GUI jar's from
netbeans. Java Studio 8 uses them, and apparently they dont come
standard with java, or i wouldnt be here...
So goal = Somehow JAR and load the required packages with the main application for use with JNLP web start.
I have tried editing the MANIFEST.MF in many ways to get the
CLASSPATH to load the JAR packages(Which happen to be:AbsoluteLayout.jar),
but no luck.... I have also tried using Certificates to be able to externally
load the package i need, and no luck...
C:/Web_Server/test.jnlp // Open's Java Program in Web Start
|---->C:/Web_Server/test.jar // The Main Program
|---->C:/Web_Server/lib   //External Package Directory(holds AbsoluteLAyout)
|-------->C:/Web_Server/lib/AbsoluteLayout.jar // the package i need to run test.jarNow get this... It will load successfully if I run the JAR file, but if i try the web start JNLP, it brings back:java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout%GroupThis is because it's not loading the lib/AbsoluteLayout.jar.
If I delete the lib folder and attempt loading the JNLP with the lib packages in the test.jar, it brings back "noMainClassDefError".
------------------ In-Short ------------------
For those who didnt understand/read the above:
I Made an Application w/ Java Studio 8.1
Cannot distribute it to Web using JNLP.
Because:
1.) Classpath in Manifest only loads outside test.JAR(and certificates dont help)
2.) Java is being a cunt.
Help is GREATLY appreciated, im about to pop a few blood vessels.

haha i found my own answer on accident while browsing for a different problem....
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4027734
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4027734http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4027734
WHOOOO!!

Similar Messages

  • How to get list of jar files loaded by servlet container.

    Hi,
    I need to display in my servlet program about the list of jar files loaded by servlet container. Does it vary for each servlet container or is it same. Where can I get those details.
    I need to write code to support tomcat 4x, iplanet 5.0 and websphere 6.0.
    Thanks & Regards,
    Nasrin.N

    For curious, here are output prints for all 3 methods:
    1) parsing system property
    2) tschodt
    3) overcast SystemClassLoader to URLClassLoader
    /home/espinosa/workspace/jboss_embedded_test1/target/test-classes
    /home/espinosa/workspace/jboss_embedded_test1/target/classes
    /opt/javalibs/javax/ejb/ejb-api/3.0/ejb-api-3.0.jar
    /opt/javalibs/javax/jms/jms/1.1/jms-1.1.jar
    /opt/javalibs/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
    package com.sun.org.apache.xerces.internal.impl.validation, Java Platform API Specification, version 1.6
    package com.thoughtworks.qdox.directorywalker
    package com.sun.org.apache.xerces.internal.parsers, Java Platform API Specification, version 1.6
    package java.util.jar, Java Platform API Specification, version 1.6
    package org.testng.internal.thread
    package com.sun.org.apache.xerces.internal.util, Java Platform API Specification, version 1.6
    package java.net, Java Platform API Specification, version 1.6
    package sun.reflect.misc, Java Platform API Specification, version 1.6
    package esp.ejb.samples1.test
    package sun.security.provider, Java Platform API Specification, version 1.
    file:/home/espinosa/workspace/jboss_embedded_test1/target/test-classes/
    file:/home/espinosa/workspace/jboss_embedded_test1/target/classes/
    file:/opt/javalibs/javax/ejb/ejb-api/3.0/ejb-api-3.0.jar
    file:/opt/javalibs/javax/jms/jms/1.1/jms-1.1.jar
    file:/opt/javalibs/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
    ...Interestingly, method 1 and 3 gives the same list, same order, same count, just format of item is a little bit different. The order is same as in Eclipse .classpath file.
    Method 2 (tschodt) give significantly more items! rougly 3x! Different order (somewhat random it seems to me). Some items contain extra information, like version and string "Java Platform API Specification".
    It prints not absolute paths but logical Java names.

  • How to include 3rd party jar package in the native code aiming to generate ane for android

    in my native java code,i need to reference a class in another jar package.Simply to say,i want to make use of member functions of a class of some jar package A in the call function of the native class which have implemented the FREFunction class.To generate the native extension,native java code needs to be compiled to a jar package B.i have tried serveral methods to compile jar package A into B.Howerver my flex project failed to proceed when calling function of package A in the call function of native java code.To be sure of the correctness of the package A and B,i referenced them in a java project with main function and succeeded. at the same time my other call functions of classes impemented FREFunction work well,Then, why did i fail referencing package A?
    in the discussion http://forums.adobe.com/message/3965757, i found the same problem,but i was unable to get a workaround,can anybody give me same help?

    Standard Java does not support jars within other jars.
    Either re-architect your stuff so jars in jars is eliminated, or write a custom classloader that can load from them, or look into 3rd-party solutions, which you can find by searching the net and these forums.

  • Dynamic Package Loading/Importing

    Hi,
    I'm developing an open framework for network admission control / network access protection which bases on independent modules handling different procedures like authentification, accounting and so on.
    Right now I dynamically load my modules into my framework at startup or during runtime (hot-pluggable) using the well-known simple method:
    className = "package.classname" // just an example
    rawClass = Class.forName(className);
    newModule = (AModule) rawClass.newInstance();
    This works fine as long as
    - The module which is going to be loaded only consists of one class and doesn't need other classes (e.g. for Dispatcher Threads ...) to run. This would still be no problem if I simply place all needed classes in the right directories, but I'd like to ship modules as packages for an easier handling of new modules.
    - The module doesn't need any libraries like e.g. the mySQL-JDBC-Connector. Right at this point I run into serious troubles cause I've to specify these external jars before starting my framework (java -cp ...).
    I haven't found any way to dynamically extend the classpath / to add whole jar's/packages during runtime yet so hopefully anyone could give me a hint how to implement that.
    In short I'd like to implement the following functionality: Without being in classpath at startup a package should be accessible and all classes of the package should be loadable - more or less like being in classpath but without being specified to be in classpath at startup.
    Thank you very much in advance
    Bastian

    Hi,
    Like different classes that you created? Then you
    put them in the same jar.
    Even if you put them in seperate jars the original
    jar has to get into the class path somehow. And
    those other jars would get there the same way.For sure the framework itself is in one single JAR included in the classpath (or if extracted the class files lie in a path hierarchy included in the classpath).
    Again the first class MUST be in your class path for
    the code that you posted to work. I know that it has to be - but I'd like to avoid that. The code I've posted is the way it works right now. But I'd like to change that so that I don't need the first class to be in the class path.
    That requires that you do something to get them
    there.That's what I'm trying to find out - how can I get classes into the classpath after having started the runtime if they are bundled in external JARs (like e.g. the JDBC)?
    How exactly are you currently delivering your stuff?I don't deliver any modules yet because I'd like to find a proper and easy way to handle that class/package loading problem before putting the project online.
    My idea is:
    - One JAR for the framework including all classes without modules.
    - One JAR for every module which should be loaded and instantiated at runtime as defined in a global configuration file with the capability of "hot plugging", which means that I'm able load/start and stop/unload modules during runtime whenever I'd like to.
    To implement the second part I guess I need a way to dynamically extend the classpath or dynamically load JARs.
    There is no way to extend the class path. That is a
    security feature of java.I see. What about the JarLoader I've found in the meanwhile written by Melanie Green. Is it a proper workaround?
    You might note also that for the previous suggestion
    it is complicated to load a jdbc driver via a
    classloader. You can not use the standard code to do
    it. There is a thread in the JDBC forum about this.I'll take a look - thank you very much!
    Bastian

  • Dynamic package loading..

    Hello all,
    Here is what I am trying to do. We have a jar package which is dynamic in nature. To avoid bringing down the server every time it gets changed, we decided to bring in the dynamic mode of loading packages. We decided to use the URLClassLoader against a jar package posted on a remote server.
    But I am stuck at a point. Despite the change in the remote package and getting reloaded, the class being executed remains the old one. Here is a sample of what I am trying to do :
    import java.net.*;
    import java.io.*;
    public class TestURLClassLoad {
         public static void main(String[] args) {
              try {
                   String urlString = "jar:http://myhost/test.jar!/";
                   URL[] urls = new URL[1];
                   urls[0] = new URL(urlString);
                   URLClassLoader ucl = new URLClassLoader(urls);
                   Class myClass = ucl.loadClass("MyClass");
                   Object myObject = myClass.newInstance();
                   ucl = null;
                   myClass = null;
                   myObject = null;
                   try {
                        Thread.sleep(10000);
                        // I have modified the Jar package at this point ..
                   }catch(Exception e1) {}
                   ucl = new URLClassLoader(urls);
                   myClass = ucl.loadClass("MyClass");
                   myObject = myClass.newInstance();
              catch(Exception e) {
                   e.printStackTrace();
    }The new instance however generates the same, old class. The new class is not being loaded in.
    Any inputs on how to make this work ?
    Thanks so much.

    I realize this post is from a long time ago but someone may be able to help explain why when you create a newInstance() of a class and you check it it is an instanceOf an interface it always returns false. Here is a modified main() of the sample given:
    public static void main(String[] args) throws Exception {
          File file = new File("myJAR.jar");
          JARClassLoader2 loader = new JARClassLoader2(file);
          Class[] classes = loader.getClasses();
          for (int i = 1; i < classes.length; i++) {
             System.out.println("Class: " + classes.getName());
    Object o = classes[i].newInstance();
    if (o instanceof SomeInterface) {
    System.out.println("Instance of TextProcessingRoutine = true");
    I have noticed this ONLY returns false if the classes are in a package.  If they are in no package (or default package for eclipse) it works fine.
    And I know 100% that the classes I am checking are an instance of SomeInterface.
    Thanks,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Bean JAR wont load

    Ive created a bean and put it into a JAR package, all looks OK but there must be something wrong somewhere as I get the error message ...
    java.lang.LinkageError: duplicate class definition
    when I try to load it into beanbox.
    my JAR looks OK and contains a beaninfo class and manifest files as well as the bean class.
    Any ideas welcome!

    Dont worry... sorted it, my JAR file structure was wrong... couldnt see the wood for the trees!

  • Ludicrous performance drop with JAR-packaged tag files.

    I have a number of tag files which work just fine as long as they are in the WEB-INF/tags folder in the web application. Each page is loaded in a blink. I havent meassured response times exactly but they are well below half a second.
    But as soon as I move them to a JAR and put it in the WEB-INF/lib folder, every page that uses the tags becomes painfully slow. Typical response time is 30+ seconds.
    I have tried swapping back and forth between the JAR package and putting-everything-in-the-WEB-INF-folder. And the result is consistent.
    I have only run tests in the NB4.0 IDE.
    I use NetBeans 4.0, Windows 2000.
    My unqualified guess is that each JSP that uses the tags is somehow forced to be recompiled at each request.
    Anybody had the same experience?

    My application is running under JBoss 4.0.4, which uses Tomcat 5.5 as the web container.
    I ran FileMon on the server while loading one of my pages that uses tag files that are packaged into a jar file. During a single page load, the JAR file was hundreds of times - I would guess, once per tag.
    Does anyone know if Tomcat does caching or exploding of tag files that are stored in a JAR? It appears that it is reloading the tag file from the JAR every time, which is adding seconds onto every page load! Does anyone know any more information about this?

  • SSIS Package Load Failure and is missing Execute SQL Task in Toolbox

    Also, BIDS closes after right-clicking the toolbox and selecting “Choose Items”.
    I’ve tried several ways to fix these issues with no success.
    I’m running SSIS/SSMS/SQL Server 2008 R2 (but not running an SQL instance on my PC) on a Windows XP with Service Pack 3 workstation. I get the following errors:
    WHEN OPENING BIDS:
    I get 2 errors titled “Package Load Failure”. They both reference ‘Visual Studio Explorers and Designers Package’ as being what failed to load. The first message references GUID 8D8529D3-625D-4496-8354-3DAD630ECC1B. The second references GUID AA612177-A69A-4391-B2F4-17F8A88F4BBA
    . They both mention contacting the package vendor, but I haven’t got any Add-ins loaded so I’m not sure what that means exactly. They also both ask if I’d like to skip loading the package in the future.
    ONCE BIDS IS OPEN:
    No error messages appear here. There is no ‘Execute SQL Task’ in the toolbox for Control Flows. Also, if I attempt to open a project containing this object (Execute SQL Task), I get this error in a modal window:
    TITLE: Microsoft Visual Studio
    There were errors while the package was being loaded.
    The package might be corrupted.
    See the Error List for details.
    BUTTONS:
    OK
    . . . and these errors in the Error List at the bottom of the IDE:
    Error      1             
    Error loading Package.dtsx: Failed to load task "Execute SQL Task", type "Microsoft.SqlServer.Dts.Tasks.ExecuteSQLTask.ExecuteSQLTask, Microsoft.SqlServer.SQLTask, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91". The contact information
    for this task is "Execute SQL Task; Microsoft Corporation; Microsoft SQL Server 2008 R2; © 2007 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1". 
            C:\Documents and Settings\848862.VCHS_NT_DOMAIN\My Documents\Visual Studio 2008\Projects\LearnSSIS\LearnSSIS\Package.dtsx   
    1               
    1             
    Error      2             
    Validation error. Execute SQL Task : The task has failed to load. The contact information for this task is "Execute SQL Task; Microsoft Corporation; Microsoft SQL Server 2008 R2; © 2007 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1". 
            Package.dtsx    
    0             
    0             
    Error      3             
    Validation error. Execute SQL Task : There were errors during task validation. 
       Package.dtsx    
    0             
    0               
    Finally, when I attempt to add the Execute SQL Task via the Tools menu, “Choose Toolbox Items” selection, I do get the tabbed box for adding things. However, they only come up after issuing this error:
    The following assemblies are installed SDK assemblies but could not be shown in the customize toolbox dialog because they are missing one or more components. Please make sure that all necessary libraries are available:
    Microsoft.SqlServer.SqlCEDest.dll
    Microsoft.SqlServer.Management.CollectorTasks.dll
    Microsoft.SqlServer.SQLTask.dll
    System.Data.SqlServerCe.dll
    Microsoft.Synchronization.Data.SqlServerCe.dll
    (above dll repeated at bottom of message)
    After this message, I have my choice of .NET Framework Compnents. When I select COM Components, those come up with no problem. The WPF Components tab generates the same dll error above. The Maintenance tab is empty. The SSIS Data Flow Items tab loads fine,
    as does the SSIS Control Flow Items tab – but there’s no Execute SQL Task there either.
    If you open the toolbox (on a new project, with a project loaded, or without a project loaded) and right-click, then select “Choose Items”, the entire application quickly closes. This “closing behavior” is the same thing you get if you attempt to add toolbox
    items through either the Tools menu or the right-click method when you launch BIDS in SafeMode.
    In an effort to fix this – I’ve rolled back the .NET Framework version to 3.0 and reinstalled back up to 4; I’ve uninstalled and reinstalled SQL Server 2008 R2 shared services as well as the entire application; I’ve cleared the .tbd files from my user profile;
    and I’ve run several things from the command line (devenv.exe /resetuserdata, /setup, /resetskippkgs, etc.). Lastly – I’ve applied every Service Pack and update applicable to my PC (ok, it belongs to my employer – but no one here has been able to figure this
    out either).
    After having worked this for several days now and, I think, exhausting every available avenue from search engines – I turn to you. Please let me know if you can help. Also, I can provide any additional
    files or information you may require.
    CBS

    try: Devenv.exe /ResetSettings
    http://msdn.microsoft.com/en-us/library/ms241273(v=vs.80).aspx
    Or try this (it's for 2005, but maybe it works for 2008 aswell):
    http://geekswithblogs.net/cicorias/archive/2007/10/10/Restoring-Missing-Toolbox-Items-in-Visual-Studio-2005---just.aspx
    or try
    http://stackoverflow.com/questions/1268298/how-to-rebuild-the-visual-studio-toolbox
    "You can also go into the folder "C:\Documents and Settings\\Local Settings\Application Data\Microsoft\VisualStudio\9.0" and delete the *.tbd files.  I have had to do this a couple times to get rid of duplicate items and when Reset Toolbox crashes
    without warning"
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • Internal error, cannot load engine Number 2 due to error 5

    I have had a StartStop transcription program for several years. I bought my Dell computer with Windows 8 (now 8.1) in late 2014. I had no problems running the StartStop program until it got a tune-up by my regular tech.  Since then, when I click to
    open it, I get the message: "##### Internal error, cannot load engine Number 2 due to error 5."  My tech couldn't figure it out and another tech couldn't fix it either after looking at it for hours.  StartStop could not figure it out either.
    Since then, I bought a Digitope digitalizer, which converts cassette tapes to CD's. When I try to open that program the exact same error message comes up!  
    So I am thinking there is something awry with certain audio programs. I am able to run another transcription program, Express Scribe. 
    Any thoughts!  
    The 2nd tech suggested rebooting the entire computer and reinstalling all programs, but I'm not sure I can find all my original programs. 
    Thanks!

    Hello Silent Fisher,
    What StartStop transcription program do you mean?
    Please share me a screenshot.
    If it is a third-party software, it is recommended to contact the support of the software.
    If the issue occurs after your change, please use the system restore to restore your computer’s system files to an earlier point in time.
    http://windows.microsoft.com/en-HK/windows-8/restore-refresh-reset-pc
    Best regards,
    Fangzhou CHEN
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Package load Failed! Invalid package Title, manifest file cannot be found

    Greetings. I am new to UPK and am seeking guidance on an upgrade to 11.1.
    A little background on what we are trying to do:
    We have two machines:
    Windows 2003 machine in domain 'X' | UPK 11.0.0.1.
    Windows 2008 R2 virtual machine in domain 'Y' | UPK 11.0 on the new machine first, install the 11.0.0.1 patch, and then upgrade to 11.1.
    We are using the same database as the old machine. Developer Server is Standard Authentication, Knowledge Center is Windows authentication.
    ==========================================================================================
    So far we have installed 11.1 with the respective database upgrades, but are lost as to how to migrate the old Content Root data. We have copied all the content to the new Content Root, added it to IIS like the old machine, and verified that the UPK database Content Root path is correct and working.
    For the rest of the post, I am remoted into the server from my local workstation, and then using IE to access KCenter on the server's FQDN, not via localhost.
    Since I am green, so I presumed that I would need to import the titles under Manager in KCenter. I zipped each content folder individually (they are named "1", "9", etc), and then attempted to import each zip file.
    NOTE: At this stage sometimes we are prompted to authenticate again. When it does, sometimes the credentials that we know work, get rejected and we are prompted again. This will repeat until we get a 401 and we have to start over. We have verified that the Windows account currently in session with the site is valid and has administrator authority within KC.
    NOTE2: On the first few tries, .NET complained that maxRequestLength was not large enough. I had our servers team increase it on the actual server in order for us to proceed.
    Provided we don't have to authenticate again, or that it actually accepts our credentials, we get to the 30% mark and then receive the error: *"Package load Failed! Invalid package Title, manifest file cannot be found"*
    Does anyone have any wisdom for this process? The title importation section in the deployment manual is not helping, and the administrator from whom I am taking over this software has not had to deal with this before.
    Thank you,
    Ian
    Edited by: 986290 on Feb 5, 2013 10:21 AM

    Hi Marc, thanks for the post,
    I have gone through an extensive troubleshooting process with Oracle, including their development team, in order to fully complete our project setup. As a supplemental bit of information, we also were having connection errors when attempting to publish directly to the knowledge center.
    As far as the context of this post, here is the solution in brief:
    1) Verify that the package being imported was published from the same version of the Developer Client as the Knowledge Center installation's.
    2) Check for database consistency issues. In our case we were using a database that was built in another domain. After numerous attempts with Oracle support on the line to determine the inconsistency, it was decided to completely reinstall and build a new database from scratch in the new domain.
    3) Check application pool identities and access (while we had some inconsistencies here, correcting them did not change the behavior of the import/publish errors)
    In review, a lot of what we had setup was correct. Our primary point of failure, we feel, was using the old database. Technically this should not have been a problem, but Murphy likes to get his way sometimes.
    Cheers,
    Ian

  • Package loading error

    Hi guys and girls
    I have develoed sim toolkit applet to send sms,its complied sucessfully and also converted successfully.But when i am loding this applet to
    java card its giving error like this:
    [b]error:package loading failed !
    loading ended with error:loading process failed1 !
    i am using simera 3 classic323 vodafone javacard.
    any suggestions will be highly appriciated.

    Hi,
    The selection condition is only planning version 700. There is no other selection conditions.
    I checked the process monitor and I can only find error messages Time Period Invalid and Errors in Source system. This error messages are not enough for trouble shooting.
    thanks and regards
    Murugesan

  • How to include another .jar package in an applet jar package

    Hi, I'm using Eclipse to write an applet which needs some other .jar packages to support it. I add them as external jar package in project properties. In eclipse, everything works fine when I compile and run. But I when export the applet to .jar and try to run in browser, it doesnt work.
    I think probably because I didnt export the packages that the applet requires to run. However I cant find a way to export these packages together with the applet to a final .jar file.
    Anyone knows how to solve this ? plz help. thx you in advance

    Hi, I'm using Eclipse to write an applet which needs
    some other .jar packages to support it. I add them as
    external jar package in project properties. In
    eclipse, everything works fine when I compile and
    run. But I when export the applet to .jar and try to
    run in browser, it doesn't work.
    I think probably because I didn't export the packages
    that the applet requires to run. However I cant find
    a way to export these packages together with the
    applet to a final .jar file.
    Anyone knows how to solve this ? plz help. thx you in
    advanceHi all,
    I have been having the same problems too but came to realize that it is quite difficult getting your applet to work in most cases when using external jars. I found out thet you will have to create the directory hierarchy with the necessary imported classes used by your applet. and then create a new jar file that you will use in the codebase tag.
    For example:
    /* Java code snippet */
    import org.apache.XmlRpcClient;
    public MyApplet extends JApplet {
    //..... Rest of your code ......
    }/* End of snippet */
    You would then have to create a the directory structure:
    org
    _apache
    ___xmlrpc
    Then place all the required classes imported from within (Sometimes it is easier to just add all the classes to save time but lose space i.e. larger jar files).
    Execute the jar command (please adjust as needed to your requirements):
    jar cvf any_name.jar *.class org/
    After signing the applet it may solve your problem. Since I'm working with XmlRpc I still have a lot of problems. If anyone has any advice or tips, please share.
    Thank you

  • Jar files loading in memory

    I have questions
    1. Are the jar files specified in classpath of a java program loaded in memory at the jvm startup ?
    2. If all the jar files of classpath are not loaded in memory at startup, then say a class pack1.MyClass needs to be loaded (instantiated) from a jar file say myclasses.jar - in such a case, will myclasses.jar be loaded in memory and remain loaded till the jvm process is on ? Or myclasses.jar is loaded, the class file is extracted and then the jar file is unloaded ?

    jschell wrote:
    anurag.kapur wrote:
    1. Are the jar files specified in classpath of a java program loaded in memory at the jvm startup ?
    No. Only class files are loaded in memory.
    2. If all the jar files of classpath are not loaded in memory at startup, then say a class pack1.MyClass needs to be loaded (instantiated) from a jar file say myclasses.jar - in such a case, will myclasses.jar be loaded in memory and remain loaded till the jvm process is on ?
    Only packk1.MyClass would be loaded in the JAVA heap. Not the JAR file.
    However there is no guarantee that the Class file remains loaded for the entire life cycle of the JVM process. Depending on the heap size available classes may be unloaded in a Garbage Collection cycle to make room of new Classes.
    Wrong. A class can not be unloaded unless the the class loader is collected by the GC. That means that a Class can actually be unloaded! That's what I said!
    The GC will not collect any class, normal java.lang.Class or class loader with active references even if the VM runs out of memory.True. Classes in perm gen and objects in the new and tenured generations get collected/unloaded only when they have no active references and there is a need for a collection cycle. Thats obvious. Did I actually ever say that a class would get unloaded even if it has an active reference? All I meant to say was that there is a possibility that a class gets unloaded and doesn't remain in the Heap for the entire lifecycle of the JVM.
    Am I actually getting anything wrong here? Please explain if so.
    Thanks
    Anurag

  • Package Load Failure message in VS 2005 and Error: WIJ 20002

    After installing BusinessObjects Enterprise XI 3.1 .NET SDK when ever I open any project in VS 2005 I get the error message (the same happened on other system as well)
    Package Load Failure
    Package 'BusinessObjects.Enterprise.Vsip.BOEVsPackage, BOEVsPackage, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=... has failed to load properly (GUID = {...}). Please contact package vendor for assistance. Application restart is recommended, due to possible environment corruption. Would you like to disable loading this package in the future? You may use 'devenv /resetskippkgs' to re-enable package loading.
    I did try 'devenv /resetskippkgs' but still get this error. Any idea reagarding this.
    Next issue using the code sample provided in the site to create webi document by passing the universe id gives error message :
    "The Web Intelligence Java Report Panel cannot connect to the server. close the report panel and try to connect again or see your BO Administrator. (Error: WIJ 20002)."
    The Java version I have is 6 and I checked the Universe is not locked.
    Need help to identify the cause for both errors.

    Try the following as posted on another forum:
    Two solutions: 
    1.  -Go in to the Tools menu in .NET, and choose Import and Export Settings.
        - From the dialogue box, choose Reset All Settings and follow the steps
    2. If you have installed VS.NET to a drive other than the C drive, copy all files from the folder C:\Program Files\Microsoft Visual Studio 8\Common7\IDE to the same folder on the drive where .NET is installed, ie :
    D:\Program Files\Microsoft Visual Studio 8\Common7\IDE
    Regards,
    Jonathan

  • Jar not loaded Error when deploying weblogic.jar in tomcat

    Hi experts,
    This time i have one more problem,
    i have deployed my application in tomcat such that when tomcat starts my java program also gets started, for my java program i had to use a weblogic library which is in "web-inf / lib / weblogic.jar" . but when i start tomcat i get error like
    INFO: validateJarFile (C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\MyApp\WEB-INF\lib\weblogic.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    Dec 4, 2006 8:27:18 PM org.apache.catalina.core.StandardPipeline registerValve
    INFO: Can't register valve org.apache.catalina.core.StandardContextValve@1362012
    org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1bc82e7 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1bc82e7
    for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category))
            at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
    what could be the problem in loading weblogic.jar
    my platform configuations are
    TOMCAT 5.5
    OS - windows 2000                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

              have u done the servlet naminga and mapping in the web.xml file??
              Kumar Allamraju <[email protected]> wrote:
              ><!doctype html public "-//w3c//dtd html 4.0 transitional//en">
              ><html>
              >Have you registered the servlet in web.xml?
              ><p>--
              ><br>Kumar
              ><p>Deepak Balakrishna wrote:
              ><blockquote TYPE=CITE>Hi.
              ><p>I am having trouble deploying a servlet to WLS 6.1
              ><p>a) The name of the servlet is HaServlet and it's duly noted in web.xml
              ><br>b) I created a directory
              ><br>config/examples/applications/cluster-servlet/WEB-INF
              ><br>c) Added web.xml under WEB-INF/. web.xml was created using the weblogic
              ><br>DDInit CLI
              ><br>d) Added the servlet classfile (HaServlet.class) under
              ><br>WEB-INF/classes/samples/cluster/servlet/.
              ><br>e) Tried to access it by http://host:port/cluster-servlet/HaServlet
              ><p>I get
              ><br>Error 404--Not Found
              ><p>What am I missing? I also tried restarting the app server to no avail.
              ><p>Thx,
              ><br>- deepak</blockquote>
              ></html>
              >
              

Maybe you are looking for