What determines where jar files get placed in a war?

Using Eclipse I have imported a WAR with source. I have exported that project as a new war and it ran fine. I then added my own package and exported the war again. The jar file does not show up in /WEB-INF/lib folder. When I deploy the war on a tomcat server it barfs the following error:
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.sharpline.fields.form.fields.TextAreaFormType] for bean with name 'com.sharpline.fields.form.fields.TextAreaFormType#53c37' defined in ServletContext resource [WEB-INF/activiti-standalone-context.xml]; nested exception is java.lang.ClassNotFoundException: com.sharpline.fields.form.fields.TextAreaFormType
     at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1262)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:433)
     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
It looks to me like my class (jar) is missing in the final war. I am new to this and have searched, I just don't quite know what to look for. How do I resolve this?

extract the war which you had deployed on tomcat and see if this jar is present there, if not then your war file packaging is not proper.

Similar Messages

  • What are the Jar files required,that for accessing the Type 4 Drivers.

    what are the Jar files required,that for accessing the Type 4 Drivers.
    Regards,

    Well it is Database Specific.
    Howevr there are few 3rd party .jar (Derby) which you can use it for accesing some standard databases.

  • What is a jar file

    hello
    i'm a recent oracle developer.
    i hear about jar files
    what is the jar file and how can i create it
    thanks

    As far as forms on the web is concerned- the Jar files you come across : like f90all.jar is basically a zip file of java classes - each java class is responsible for drawing a screen item (like a button or a text field).
    Regards
    Grant Ronald
    Product Management

  • Where should a ".jar" file be placed?

    Hey.
    I know there's a jar (java archives) forum, but things are kinda slow over there...
    I'm trying to run a simple JDBC application using Cloudscape (I've downloaded cloudscape.jar for that) and jdk1.3.1, on LINUX.
    The new .jar file isn't recognized and I keep getting a runtime ClassNotFoundException.
    I've changed several system-files (such as the root's .tcshrc and my own .bashrc), and copied the file almost everywhere, but just can't get it right :-(
    Where should the cloudscape.jar file go, and what are the exact changes needed in order to force (no more mister nice-guy) the system to acknowledge it?
    Thanx,
    Mike.

    just make sure your CLASSPATH includes cloudscape.jar. Not just the path, but also the jar filename.
    There is also a jre/lib/ext path in your java installation where you can dump your jar file so it will automatically be seen when you run your program.

  • Where should the third party JAR files be placed ?

    Hi,
    We have a requirement to perform encryption / decryption of supplier bids. In this case we require to use third party provider JAR files with OA framework code. Where should the JAR files generally be placed in such a scenario ?
    Thanks and Regards,
    Sandhya

    Checkout this post.
    How to inclue a third party .jar file in OA fwk classpath Class not found

  • Getting file path where .jar file resides

    I'm using a .jar file to run my Java app. Can anyone tell me how to return the directory where the .jar file is being run? Thanks very much.
    -Pete

    You can get the folder or jar file from which a given class was loaded.
    URL source = getClass().getProtectionDomain().getCodeSource().getLocation();
    String filePath = source.getFile();

  • DrClap, schapel, jschell whats better architecture jar files or class files

    What would be a better architecture for deployment. Jar files or class files. We were recently having a debate at work as to generate installation scripts that put jar files on the system where the app is being installed or to make the script generate class files at the desired location.
    It would be good to know as to what you ppl think and what are the pros and cons of both.
    Some claimed with class files it would be easier to put in patches later on and I kinda agree with that. However your thoughts would be appreciated.
    Come on DrClap, schapel, jschell, jsalonen....... I am a fan of yours already

    This, of course, is why topics shouldn't be addressed to individuals - they are likely to never see it. Today is the first time I have seen this, and that is due solely to a search that I was running.
    Why would you use one over the other?
    ----Distribution costs
    It takes more time to send a bunch of class files down the wire than a single jar file. However, it takes more time to send a jar than a single class file. So there is a delicate trade off in a web application where one is using java. If you send the jar every time it is modified the entire jar must be moved. Class files take less time, but all of them must be moved for a new person.
    So in this case if you have a fixed based of users (internal use), and a majority of the files do not change then class files are better. If the user base is transitory and large (external use) then a jar file is probably better.
    ----Usage:
    You can use reflection to dynamically add functionality to an application. If you use a jar file then the application must be restarted for the changes to take effect. If you use class files then the application does not have to be restarted. Obviously the second only works if you have some way to dynamically notify the application that new classes are available - like a database.
    This becomes very relevant if you do not want to restart the application and you do not have a distributed application base in place.
    Also the older classes, even if not used, are still loaded in the application unless it is restarted (presuming a class loader is not used.) Most of the time this does not make difference.
    Since in the above it is likely that there is not a large distribution problem, when the usage is a concern then the best strategy is as class files. They allow the most flexibility and there is unlikely to be any concern at all how it is packaged.
    -------Misc
    Speed. Someone suggested speed. Guessing I would say that the jar file is going to be faster. Once the Sun jvm gets the file it doesn't let go. And as pointed out opening files is rather costly. However, I doubt this is going to be a significant cost on any system. Startup costs, although sometimes annoying, are seldom significant in terms of application performance.
    Security. The is a certain level of security with a jar file. You have one jar file and distribute it to the help desk people. And one of them deletes it accidently. It is going to be a lot easier to figure that out than if they deleted one class file. Additionally it is probably easier to encrypt/decrypt a jar file (if you really must) than class files.
    Dynamic class loading. If you are storing classes in non-traditional places, like a database rather than files, then it is probably going to be easier if you do it as class files.
    Testing. It is easier to replace a class file in a testing environment to fix a bug than a jar file. Particularily if the make process for the jar file rebuilds everything.

  • Where should  file be placed  in real mobile in file browser application

    hello,
    i am doing an application on file browser i tested it in emulator it was having [b]appdbfolder bin folder tool kit which has the root directory with the file to be browsed
    1 but problem is where should i place the file in real phone
    2 if placed it resource dir it is not taking
    3

    just make sure your CLASSPATH includes cloudscape.jar. Not just the path, but also the jar filename.
    There is also a jre/lib/ext path in your java installation where you can dump your jar file so it will automatically be seen when you run your program.

  • JAR file getting opend latley

    Hi .all
    I have a JAR file with size *1.52 MB*. When i am trying to open from command prompt its taking considerable time to open. I tried in somany way to open it fastly, but i am not able to do it. My main-class loads some images while opening, but i commented that code. Eventhough its taking much time to open.
    can anybody tel whats the exact reason to happen this. And pls anybody suggest me to load it fastly.
    Sreedhar P

    This error is displayed when the Certificate Chain extracted from the manifest of the Jar file is null. To help you figure out why, (assuming you are using Java Web Start 1.5.0), set the tracing values in the deployment.properties file:
    deployment.trace=true
    deployment.trace.level=all
    and then run again and look at the output in the trace file. It should give you a clue.
    If you are using an earlier version of Java Web Start, first try with 1.5.0_0X, there might have been problems in the past with empty directories, and non-english characters in the filenames in the jar file.
    /Andy

  • What are the jar files needed for HTMMLB?

    Hi,
    I have imported a HTMLB comp par file into my NWDS.
    it is showing me some errors like com.sapportals.htmlb cannot be resolved...what may be the prob...do i need to import any jar files regarding this.
    Plz help..
    Thanks,
    Viswes

    Hi,
    Please see this helpful link
    New Reference for Portal APIs
    Ramganesan Karuppaiyah

  • What are the Jar files required for Tomcat server of jdev 11.1.2.0.0

    Hello Experts,
    My client wants to just check the adf application on tomcat server
    how do I create a war file and then deploy it into Tomcat server
    and what all JAR files do I require to do it??
    I am using jdev 11.1.2.0.0 and tomcat server is 6.0.35
    Thanks for the help..
    933601.

    https://blogs.oracle.com/dana/entry/how_to_deploy_a_11g_adf_applic_1
    http://docs.oracle.com/cd/B31017_01/web.1013/b28967/deployment_topics012.htm
    Tomcat Extension for JDeveloper is available.
    http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/130355.xml#shay.tomcat

  • While uploading Jar file, getting an error Jar file check failed VeryUrgent

    Hi SRM Experts,
    System  SRM 5.5 with ECS and ECC 6.0
    I am using Eclipse 3.5.1 to Download and Upload User Exits into SAP, While I was downloading user exits it was working fine. While I was Uploading User Exits, getting an error. Jar file check failed.
    As per User exits manual steps I have executed. But I was unable to upload a jar file successfully.
    Someone focuses light on this issue. Greatly appreciate.
    Awaiting for quick responses.
    Please focuses a light on this issue.  Common friends no one worked on this issue.
    Thanks in Advance.
    Regards,
    John

    pl check the info at below link
    may help you
    http://www.cs.utexas.edu/~scottm/cs307/handouts/usingJar.html
    BR
    Dinesh

  • What are the Jar Files required in  J2EE?

    What are the jar s required to work with JMS, Java Mail API and Web Services. (Complete J2EE).

    Depends on your app server. So check with app server

  • What are the jar files required to use JAXP in jdk1.4

    Hai everybody,
    I worked JAXP which is default with the jdk 1.5,Now the requirement is to work on this JAXP on jdk1.4, So please can any help me which jar files are to be include in classpath.

    jre/lib/rt.jar has the JAXP API.

  • What is the .jar file or library for oracle.iam.identity.rolemgmt.api

    Hi Experts,
    I am using 11.1.1.6.0 version of Jdev.
    I need to use oracle.iam.identity.rolemgmt.api.RoleManager API in my application, but i am not able to find out the library or the jar file required.
    Somebody help me in adding the required libraries please.
    Thanks
    Gopi

    Hi Nishith,
    I am a new joinee.
    Not able to locate OIM_HOME. If you don't mind please give me the detailed steps to locate OIM_HOME.
    Thanks
    Gopi

Maybe you are looking for

  • Variables in RTF template?

    Variables in RTF template? I am battling with variables in RTF template. (1) I need to declare and set a variable. (2) I like to print it out - check for value (3) then I need to make some conditional formatting IF-THEN-ELSE depending on variable val

  • The "converted by iTunes" Video Podcasts not appearing on the iPod

    Greetings, I have downloaded some (old) video podcasts from the Music Store. As they were old files; I realised that they were not suitable for the iPod 5G, while trying to sync to the iPod. Then I converted them by using iTunes itself via 'convert s

  • ATI Radeon 9800 PRO openGL Troubles

    Machine Name: Power Mac G4 Machine Model: PowerMac3,5 CPU Type: PowerPC 60? (1.1) Number Of CPUs: 1 CPU Speed: 2 GHz L2 Cache (per CPU): 512 KB Memory: 1.25 GB Bus Speed: 133 MHz Display ATI Radeon 9800 Pro: Chipset Model: ATY,R350 Type: Display Bus:

  • Bulk senders agreements?

    The company I work for sends a lot of email to me.com and icloud.com and lately, we are getting blocked on some of our sending IP's. We are not spammers and email being sent icloud.com are message and notifications that they have requested, however,

  • New Mac Pro and now no FLV Export option in FCP

    Hi Folks, I have a new MAc PRo and just loaded final cut studio 2 and flash 8 onto it.. I know have no option in the quicktime conversion setting to export to FLV? Please any help would be huge at this point... Oh.. I loaded After Effects 7 to the ne