jar 1 « Development « Spring Q&A





1. Need Spring version# - only have spring.jar file    stackoverflow.com

I've inherited an app that uses Spring. The original developers are not available. The Spring jar file is just "spring.jar", so there's no version# in the filename to help me. I'd ...

2. JAR files, don't they just bloat and slow Java down?    stackoverflow.com

Okay, the question might seem dumb, but I'm asking it anyways. After struggling for hours to get a Spring + BlazeDS project up and running, I discovered that I was having problems ...

3. How can I package an extensible default Spring configuration in my framework?    stackoverflow.com

It is the second time that I stumble across that issue and I haven't found a good solution yet. My problem is that I want to package a framework like JAR ...

4. How to get spring's javadoc in one jar/zip file    stackoverflow.com

Actually, I want to integrate spring javadoc with my netbeans IDE. Spring website only provides an HTML version javadoc online, no download link. But Netbeans only accept a jar/zip file or ...

5. Expose jar resources over web    stackoverflow.com

I have a web-service (with Spring-WS). I have a jar with several schemas (schema1.xsd, schema2.xsd and schema3.xsd) which I include in my web service. Is there a way to expose the schemas from ...

6. Is there a standard place to store Spring library jar files?    stackoverflow.com

I've downloaded Spring 3.0.2 with dependencies and found that it contains 405 jar files. I usually keep third party libraries in a "lib" subdirectory, but there are so many Spring jars ...

7. download spring with dependencies    stackoverflow.com

is there a way to get a spring-with-dependencies.zip for the latest version of spring (3.0x) ? I know that one could get whatever dependencies using maven/ivy but if I were NOT to ...

8. Upgrading to Spring 3.0.3.RELEASE - Where can I find a history of the jars?    stackoverflow.com

I'm trying to upgrade an application that's using Spring 2.5.6 to the latest (3.0.3.RELEASE) version and I'm using the Spring repository to find the latest versions of the jars I need:

9. get File from JAR    stackoverflow.com

I'm using Spring's Resource abstraction to work with resources (files) in the filesystem. One of the resources is a file inside a JAR file. According to the following code, ...





10. Change file in jar    stackoverflow.com

so, i have a jar file and in this jar there is another config.js file, and in this file i want to write. I have a Resource class of this file ...

11. Minimum JARs for Spring 3.0 dependency injection    stackoverflow.com

Similarly to this question regarding an earlier Spring version, what are the minimum dependencies required for an application to use Spring 3.0 dependency injection only? The application context will ...

12. How to reference class from external jar file in spring.xml    stackoverflow.com

This is my bean define in spring.xml

<bean id="hello" class="test.Hello" />
I export class Hello to hello.jar and place it to c:\customjar.
And set that folder be WINDOWS CLASSPATH. This is an output
Caused ...

13. spring 3.0.5 library jars    stackoverflow.com

All, I am starting with Spring and got the Spring 3.0.5 distribution. I see the following jars:

  • org.springframework.aop-3.0.5.RELEASE.jar
  • org.springframework.asm-3.0.5.RELEASE.jar
  • org.springframework.aspects-3.0.5.RELEASE.jar
  • org.springframework.beans-3.0.5.RELEASE.jar
  • org.springframework.context.support-3.0.5.RELEASE.jar
  • org.springframework.context-3.0.5.RELEASE.jar
  • org.springframework.core-3.0.5.RELEASE.jar
  • org.springframework.expression-3.0.5.RELEASE.jar
  • org.springframework.instrument.tomcat-3.0.5.RELEASE.jar
  • org.springframework.instrument-3.0.5.RELEASE.jar
  • org.springframework.jdbc-3.0.5.RELEASE.jar
  • org.springframework.jms-3.0.5.RELEASE.jar
  • org.springframework.orm-3.0.5.RELEASE.jar
  • org.springframework.oxm-3.0.5.RELEASE.jar
  • org.springframework.test-3.0.5.RELEASE.jar
  • org.springframework.transaction-3.0.5.RELEASE.jar
  • org.spring

14. Reading config files present inside the jar in Spring    stackoverflow.com

Greetings! I have a spring application which depends on a legacy spring app, shipped as a jar. Pls note that the legacy jar has its spring config file inside the jar itself. ...

15. Spring context from within a jar file    stackoverflow.com

Helo, everybody, I'm developing a desktop application in java using spring and hibernate. I want to package it as a executable jar but I'm having problems loading the context configuration xml from ...

16. which spring jar file is required jstl tags    stackoverflow.com

In have xml file with

 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
which spring jar file is required for it





17. Spring Webflow compatible jars    stackoverflow.com

I am using Spring 2.5 framework, what is the compatible webflow jars?

18. Spring jar dependencies    stackoverflow.com

Trying to build Spring-based application one needs to figure out all necessary dependencies the application will have. For example, I was using HibernateTemplate, and each time I run the application the ClassNotFound ...

19. Discover Plugin-JARS in Classpath in Spring    stackoverflow.com

Is there a way in Spring to discover a "plugin"-JAR from the classpath, and load its applicationContext.xml dynamicaly?

20. Loading context from within a Jar    stackoverflow.com

Alright guys, I need some clarification.. I have a jar that I built and inside of the jar it has a custom application-context.xml file that I need to load. I load ...

21. Spring: search resources in inner jar    stackoverflow.com

I have a this war structure: Some.war -WEB-INF
--lib
---library.jar
----some.xsd
----some2.xsd
And i want to get all xsd files in library.jar, but spring don't want to search it.

ContextLoaderListener.getCurrentWebApplicationContext()
         ...

22. Loading spring application context files that are inside a jar in classpath    stackoverflow.com

I am trying to use ClassPathXmlApplicationContext in my java standalone code to load applicationContext.xml that is inside a jar file which is in my class path.

ApplicationContext context = new ClassPathXmlApplicationContext("classpath*:**/applicationContext*.xml");
applicationContext.xml entry ...

23. How to get JVM use diffrent version of jars required in application    stackoverflow.com

In application where it requires Spring 2.0 jar and wants to interface with webservice but client.jar provided by webservice host require spring3.0 jar.. so is there any way to implement ...

24. Get Spring to import application context XMLs only from signed jars    stackoverflow.com

My problem is that I have a web application using Spring, and the app context is built up from couple of small xml files in different jars. We use the simple ...

25. Spring 3 in jar configuration (auto configuration)    stackoverflow.com

I'm looking for some kind of "best practice" informations about Spring jar configuration. I have a web project (war) and I need connect some jar libraries - my jars which contains ...

26. Spring Dependency Injection and Plugin Jar    stackoverflow.com

I have web application running with a default impl of a backend service. One should be able to implement the interface and drop the jar into the plugins folder (which is ...

27. Does Spring help me manage my jars?    forum.springsource.org

Does Spring help me manage my jars? I'm wondering if the Spring container provides any help for managing the myriad jar files our application needs on the server side. I'd love ...

28. why spring core jar divided into 5 jars for version 3?    forum.springsource.org

why spring core jar divided into 5 jars for version 3? Hi Guys, I am now migrating my Spring2.5 project to Spring 3 version. For a basic spring 3 application, just ...

29. Try to create an executable Jar with Spring config-file and other dependencies    forum.springsource.org

Code: Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration probl em: Failed to import bean definitions from relative location [spring-datasource.xml] Offending resource: class path resource [META-INF/spring/spring-master.xml]; nested exception is org.springframework.bea ns.factory.parsing.BeanDefinitionParsingException: Configuration problem: ...

30. 2.0.RELEASE Xlan and Xerces JAR dependancy    forum.springsource.org

Jan 21st, 2011, 06:22 PM #1 peterha View Profile View Forum Posts Private Message Junior Member Join Date Mar 2010 Posts 5 2.0.RELEASE Xlan and Xerces JAR dependancy After upgrading from ...

31. Dependency Injection from JAR file    forum.springsource.org

Is there any way that dependent beans can be referred which are packaged in a JAR? Is there any configuration that needs to be specified that would recognize/load the dependencies from ...

32. Config file applicationContext.xml into a .jar file.    forum.springsource.org

Hello to all. How i can to configure an ApplicationContext (may be ClassPathXmlApplicationContext?) if the configuration file (applicationContext.xml) is in a jar file within the classpath but outside the ear?

33. Where to find Spring's dependent jars?    forum.springsource.org

I just downloaded Spring 3.0.5 and would like to learn Spring MVC. However, the spring-framework-3.0.5.RELEASE.zip download file does not contain any of its dependent jars. Where can I get them? Thanks ...

34. What Jars needed for tc server    forum.springsource.org

What Jars needed for tc server I'm using STS 2.5.1 - when I start the tc Server, it says: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListe ner I add various jars from: C:\springsource\tc-server-developer-2.1.0.RELEASE\spring-insight-instance\webapp s\insight\WEB-INF\lib\ such as: ...

35. Is it necessary to use jar file under the Jsp file.    forum.springsource.org

36. jars needed in tc server    forum.springsource.org

jars needed in tc server When I start my tc server in STS 2.5.1, I get errors - and most of the errors go away when I add the following jars ...

37. weird export to runnable jar and Spring container problem    forum.springsource.org

Hi friends, I have created a new Spring Utility project (File -> Spring Template Project -> spring utility) I have just one class with one main method. Code: package com.myproject.main; import ...

38. Spring Resources loading in dependant jars.    forum.springsource.org

Spring Resources loading in dependant jars. I'm trying to get a handle setting up beans within a war file containing dependant spring jars. The dependent jars dont seem to be able ...

39. Which spring 3 jar contains MailSender & impls?    forum.springsource.org

40. The Same Component Scan against JAR files    forum.springsource.org

The Same Component Scan against JAR files Hi there I generated a JAR with many annotations there. Tried to make a component scan on it but it is not working. Saw ...

41. Difference between aspectjweaver.jar and org.springframework.instrument-{version}.jar    forum.springsource.org

I am reading the documentation with the intention of configuring load time weaving in websphere 6.1. It is clear that a javaagent needs to be configured. What is not clear is ...

42. Bug or Feature? Form taglib not found if webmvc.jar in server/lib instead of WEB-INF/    forum.springsource.org

Bug or Feature? Form taglib not found if webmvc.jar in server/lib instead of WEB-INF/ I am using spring+sprinwebmvc 3.05 with Glassfish, Netbeans and Maven2. In a jsp I do reference the ...

43. spring.jar deploy on shared/lib instead of web-inf/lib    forum.springsource.org

I tried this, though with jboss/tomcat rather than just tomcat, and the jar in jboss/server/default/lib. I found that I got classloading problems when I tried to hot-redeploy the application. I don't ...

44. Problem with including jars using     forum.springsource.org

Problem with including jars using I'm trying to embed third party libs and application jar in a OSGI bundle.I read the felix maven plugin document and tried using Embed-Dependency. But ...

45. Loading spring application context files that are inside a jar in Java Build Path    forum.springsource.org

Loading spring application context files that are inside a jar in Java Build Path Hi all, I am trying to use ClassPathXmlApplicationContext in my java standalone code to load applicationContext.xml that ...

46. Where can I download AbstractBufferingClientHttpRequest.jar    forum.springsource.org

Where can I download AbstractBufferingClientHttpRequest.jar Where can I download org.springframework.http.client.AbstractBufferingC lientHttpRequest.jar I am trying to get a simple application running that connects to Twitter and pulls out the timeline, but i ...

47. How do I hide classpath JARs that are appearing in my package explorer?    forum.springsource.org

Hi, I'm using STS 2.6.0.RELEASE. In both my Java projects and Dynamic Web projects, whenever I add external JARs as part of my project library, all the JARs are showing up ...

48. Missing artifact javax.servlet:jstl:jar:1.2:compile    forum.springsource.org

Missing artifact javax.servlet:jstl:jar:1.2:compile I am new to STS. I just installed STS and created a Spring project and got the following messages: Missing artifact javax.servlet:jstl:jar:1.2:compile Some problems were encountered while building ...

49. Multiple config files with Spring context in multiple jars    forum.springsource.org

Multiple config files with Spring context in multiple jars Hello, EhCacheManagerFactoryBean seems to accept only one file as configLocation. Is there any way to use many config files ? I would ...

50. Bundled External jar NOT working in Advanced Addon    forum.springsource.org

My issue seems similar to the one already reported: http://forum.springsource.org/showth... ndleException However, the remedy suggested there: Create OSGI Bundle (via BND) + osgi install ---url file: osgi start ---url file: does ...

51. How to extend XmlWebApplicationContext to load xml files from classpath JAR files?    forum.springsource.org

Hi, Can someone please explain how can I extend the XmlWebApplicationContext to load all app-context.xml files from JAR files in the classpath? What I dont know is how to look into ...

52. "Unable to locate Spring NamespaceHandler for XML schema namespace" executing jar    forum.springsource.org

"Unable to locate Spring NamespaceHandler for XML schema namespace" executing jar I'm developing an application to be started as a jar from command line. When executing main method from the Eclipse ...

53. @Autowired with @Qualifier not working when used within Jar file    forum.springsource.org

I am facing a strange problem and hope it is not unique. The below wiring works fine in my local testing. When I add this project as a dependency for a ...

54. Deployment of bundle fails due to issue in mybatis-spring-1.0.0.jar in Vergo server    forum.springsource.org

Jul 19th, 2011, 05:06 PM #1 pksunilpk View Profile View Forum Posts Private Message Junior Member Join Date Jul 2011 Posts 1 Deployment of bundle fails due to issue in mybatis-spring-1.0.0.jar ...

55. how can I automatically keep my jar files up to date    forum.springsource.org

I have a large number of jar files and I am concerned that it will be difficult to keep them up to date over time. Is maven supposed to be used ...

56. MockHttpServletRequest in spring-test.jar does not support servelt 3.0 (Spring 3.1)    forum.springsource.org

MockHttpServletRequest in spring-test.jar does not support servelt 3.0 (Spring 3.1) Spring 3.1 is supposed to support servlets 3.0. However, the test code is not yet ready for it in Spring M2 ...

57. Should "all" common jars be available through plugins?    forum.springsource.org

Should "all" common jars be available through plugins? This may be a little naive, but i really like the way I can issue a spring roo command and it will add ...

58. Using import for accessing configuration file outside jar.    forum.springsource.org

Hi. I've build an app which has two spring configuration files in the /META-INF/spring/ directory - lets say animal.xml and polecat.xml. The animal.xml imports polecat.xml the following way: Code:

59. How to load a resource from within a jar?    forum.springsource.org

How to load a resource from within a jar? Hi, I have a resource file that is contained within a jar file. When I try to use classpath: to point to ...

60. Deploy projects dependencies as exploded folder structures instead of jars    forum.springsource.org

Deploy projects dependencies as exploded folder structures instead of jars Is there a way to tell the deployment assembly for a given project in STS to not jar up a STS ...

61. Where does the spring-sandbox.jar come from?    forum.springsource.org

I have downloaded the spring-framework v1.1.2 with dependencies, and cannot find the classes which packaged in spring-sandbox.jar. Does the sandbox not belong to the spring-framework? At the same time,I found a ...

62. Spring Dependency Injection and Plugin Jar    forum.springsource.org

Spring Dependency Injection and Plugin Jar I have web application running with a default impl of a backend service. One should be able to implement the interface and drop the jar ...

63. Getting error even after including all jar library    forum.springsource.org

Hi, I am following tutorial "Developing a Spring Framework MVC application step-by-step". I am using jDev as IDE. I have included all the libraries as said in tutorial in lib folder ...

64. Is it required to add spring jar files at Java Build Path for every new project?    forum.springsource.org

I installed spring plugin through marketplace and created a new spring project. I was expecting the spring jar files to be available to all Spring projects but according all the tutorials ...

65. Which Jar to include for InternalResourceView and JstlView classes?    forum.springsource.org

Oct 30th, 2011, 05:52 AM #1 j2ee View Profile View Forum Posts Private Message Junior Member Join Date Oct 2011 Posts 7 Which Jar to include for InternalResourceView and JstlView classes? ...

66. How to add all relevant spring jars to a classpath in a modular way?    forum.springsource.org

How to add all relevant spring jars to a classpath in a modular way? There are around 1000 jar files in Eclipse->plugins folder and I find it difficult to add a ...

67. Missing artifact org.springframework:spring-core:jar:3.1.0.RC1    forum.springsource.org

11111.jpg i use sts2.8.0RELEASE,java 1.6.27,maven 2.2.0 and updated m2e 1.0 my project have maven dependencies list the artifact org.springframework:spring-core:jar:,but sts show the errors.

68. usage of the test classes in the mock jar    forum.springsource.org

usage of the test classes in the mock jar Hi, I have some trouble using AbstractSpringContextTests and its subclasses. In my context files, I have a proxy for each service to ...

69. Accessing classpath resources from within a jar    forum.springsource.org

Accessing classpath resources from within a jar Hi, I have developed a native application (in SWT) using spring that needs to access a properties file, as follows: Code: ...

70. problem of reading the config file from a jar file...    forum.springsource.org

I packed the spring bean factory config file into a jar file. And then I use the jar in my project. It is reported that "can not find the config file...". ...

71. Question about 3rd party jars    forum.springsource.org

Lets say that an external group is supplying me a jar file containing a couple useful services that are using spring(i.e. there is a beanRef.xml contained in it). So I'm a ...

72. apache direcotry jars missing?    forum.springsource.org

Maybe I'm missing something, but it seams that Apache Directory jars are not in project classpath on CVS. Manifestation is that I can not compile sandbox class net.sf.acegisecurity.providers.dao.ldap.LdapTestHe lper because all ...

73. import from a jar?    forum.springsource.org

I am trying to import config from a jar and it does not seem to work. How would I include a config from a jar? Thanks, Alex.

74. JAR signature    forum.springsource.org

76. Merging application context from jar file library    forum.springsource.org

Hello everybody How can I load two application contexts and merge them like in your example of the docu: Code: ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(new String[] {"applicationContext.xml", "applicationContext-part2.xml"}); ... if one ...

77. the new looks.jar cause problem when use popup    forum.springsource.org

the new looks.jar cause problem when use popup I use the Popup.show/hide in my code.it's good in last version looks.jar.but now ,it;s wrong: 005-06-27 00:40:36,487 ERROR org.springframework.richclient.application.config. ApplicationLifecycleAdvisor - java.lang.NullPointerException at ...

78. Newbie - fail to build jar:install and multiwar:multiwar    forum.springsource.org

Jul 7th, 2005, 03:39 PM #1 acesjca View Profile View Forum Posts Private Message Junior Member Join Date Jul 2005 Location San Jose, California Posts 6 Newbie - fail to build ...

79. jar downloads fail when building contacts/attributes samples    forum.springsource.org

jar downloads fail when building contacts/attributes samples Hello All, I'm trying to learn about acegi and am running into issues building the sample applications. Does anyone know the reason that the ...

80. Could I package spring-context.xml in jar?    forum.springsource.org

Hi friends: I want to package the spring-context.xml in jar when I deploy my webapp. But it seems that Tomcat couldn't find the spring-context.xml in jar. In web.xml, I write in ...

81. mappingDirectoryLocations problem with jar files    forum.springsource.org

mappingDirectoryLocations problem with jar files I used following xml to configure my Hibernate SessionFactory: .. mypackage/types mypackage/bo etc... This ...

82. PatternMatchingResourcePatternResolver, and jar resources    forum.springsource.org

PatternMatchingResourcePatternResolver, and jar resources Hello, I was merrily using ClassPathResource, until a fellow developer who uses the jar that my code ends up as alerted me to the fact that it ...

83. Strange problem with ContextSingletonBeanFactoryLocator and locked JAR files    forum.springsource.org

Strange problem with ContextSingletonBeanFactoryLocator and locked JAR files Im having an issue using ContextSingletonBeanFactoryLocator with my application server (SAP Web AS 6.40). Im in the beginning stages of trying to use ...

84. referencing applicationContexts within jar files    forum.springsource.org

I am trying to package our applicationContext xml files within jars. When I attempt to load using the SingletonBeanFactory, however, the xml files in the jars are not found. I think ...

85. Problems with referencing config files that are in a jar file    forum.springsource.org

Hi, I have a main applicationContext.xml file with similar content (several imports): Code: I get an ...

86. Versions of commons-*.jar supported    forum.springsource.org

Versions of commons-*.jar supported On the project I'm currently working on using Spring 1.2.1 there is a requirement to use the following: commons-logging.jar version 1.02 commons-beanutils.jar version 1.7 commons-digester.jar version 1.7 ...

87. spring.jar has and its source attachment    forum.springsource.org

I am using IBM's RAD (6.0) to work with the Spring Framework. I want to view the source codes of the ancestor objects such as the org.springframework.web.servlet.DispatcherServlet But I could not. ...

88. ViewRendererServlet no longer in spring-portlet jar    forum.springsource.org

ViewRendererServlet no longer in spring-portlet jar I just downloaded the nightly snapshot spring-framework-2.0-m1-with-dependencies-build.385-20051221.zip, and replaced spring-portlet jar in my project with the new one. It seems that there is no longer ...

89. ViewRendererServlet no longer in spring-portlet jar    forum.springsource.org

ViewRendererServlet no longer in spring-portlet jar I just downloaded the nightly snapshot spring-framework-2.0-m1-with-dependencies-build.385-20051221.zip, and replaced spring-portlet jar in my project with the new one. It seems that there is no longer ...

90. Problems weaving a Spring jar    forum.springsource.org

Problems weaving a Spring jar I'm trying to advise a pointcut where a Spring class is in the flow: Code: pointcut jstlRenderedUrl(javax.servlet.http.HttpServletRequest request) : this(org.springframework.web.servlet.view.JstlView) && args(*,request,*) && cflowbelow(execution(public void org.springframework.web.servlet.view.JstlView.render(..) ...

91. Strange antlr/ANTLRException error (even though the jar file is in classpath)    forum.springsource.org

Strange antlr/ANTLRException error (even though the jar file is in classpath) Hi Everyone, I am new to Spring and hibernate. I am developing an web app using Spring 1.2.6 + hibernate ...

92. Creating jar    forum.springsource.org

Creating jar When I create my jar file, I get this message, what should I do: WARNUNG: Exception occured initializing application startup context. org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit h name ...

93. signed jar    forum.springsource.org

Hello, For my application I use Java Web Start, and I have to sign the jars I use. The problem is that the jar I downloaded from http://prdownloads.sourceforge.net/a...1.zip?download is already signed. ...

94. Spring.jar locked when redeployed in a portal?    forum.springsource.org

Ive been developing portlets under Jetspeed2 using the new Spring 2.0M2 release. I have been having a problem during redeployment of my .war file on only those portlets that use Spring. ...

95. calling a mapping file in a different jar    forum.springsource.org

I am using Jboss 4.0.3sp1 and have a jar in the lib directory of the server in jboss. That jar has a mapping file in it that I want my Spring ...

96. Managed Jars - Spring-based application deployer/container    forum.springsource.org

In case someone finds this useful, new Spring-based open source project has been started: http://mjar.sourceforge.net/ Gives the ability to deploy individual Services in the same JVM in self-contained (all dependencies, etc) ...

97. jar files and loading contexts from classpath..    forum.springsource.org

jar files and loading contexts from classpath.. I am trying to deploy my application in a jar file. It is the client side of my client/server app. I packaged all the ...

98. referencing application contexts sitting in jar files    forum.springsource.org

Currently I work on a large project divided into multiple subprojects. This allows developers to only download the project they are working on. Needed classes and application context xml files are ...

99. dependencies between springs jar-files    forum.springsource.org

dependencies between springs jar-files Hi @ all! I apologize if this question has been raised before, but after doing a quick search on this board I did not find anything, so ...

100. using specific jar in contextConfigLocation    forum.springsource.org

Can I specify a specific jar to look in for applicationContext*.xml files? I tried doing something like: contextConfigLocation jar:ehmdrc-core.jar!/conf/spring/applicationContext-services.xml where ehmdrc-core.jar is in the classpath. Doesn't like that. I'm ...