jar 3 « Development « Spring Q&A





1. PathMatchingResourcePatternResolver doesn't find resources in jars    forum.springsource.org

Based on the javadoc for PathMatchingResourcePatternResolver http://static.springframework.org/sp...nResolver.html (look at the other notes section) you need classpath*:/**/test-*.properties if the file does not exists in the filesystem and is in a jar.

2. Dependencies on Suns tools.jar    forum.springsource.org

Dependencies on Suns tools.jar Hi, I'm trying to use XMLBeans taken form the SpringSource repository (Sorry, can't post the URL to because I haven't had 15 posts, but if you search ...

3. Retrieving context enclosed in jar    forum.springsource.org

Retrieving context enclosed in jar Hi All, I'm new to Spring and am trying to do something that I hope can be done. Basically, I created a utility jar that contains ...

4. spring-mock.jar/ErrorsVerifier    forum.springsource.org

spring-mock.jar/ErrorsVerifier I'm not quite sure whether this was best forum to post this in but since I've seen it in Expert Spring MVC book, thought I'd ask here: P281 of said ...

5. implementing a view resolver to find jsp in a jar    forum.springsource.org

implementing a view resolver to find jsp in a jar We are trying to build up a modular system where jars contain application contexts and jsps along with the classes. Different ...

6. Jaxb2Marshaller missing in spring-oxm-1.5.4.jar    forum.springsource.org

Jaxb2Marshaller missing in spring-oxm-1.5.4.jar I'm trying to using Jaxb2Marshaller but seems that it's missing in the jar. My pom has the correct config: Code: soapTest com.xiaohai ...

7. Can't resolve getWindowControl() -- what jar should be imported ?    forum.springsource.org

Can't resolve getWindowControl() -- what jar should be imported ? Trying out the tutorial Spring RCP on DZONE I am stuck at the call to create a dialog : dialog = ...

8. easymock.jar shipped with Spring 2.5 seems corrupt    forum.springsource.org

easymock.jar shipped with Spring 2.5 seems corrupt I've noticed that the easymock.jar that is contained in the spring-framework-2.5-with-dependencies.zip is missing the main class of the EasyMock framework, namely EasyMock.class. Probably this ...

9. Where can I find the repo for javax.activation:activation:jar:1.0.2?    forum.springsource.org

Where can I find the repo for javax.activation:activation:jar:1.0.2? I want to run the mtom client jaxws with "ant run". At the end I got: Code: BUILD FAILED C:\Downloads\Spring\spring-ws-1.5.4-with-dependencies\spring-ws-1.5.4\samples\mt om\client\jaxws\build.xml:21: Unable to ...





10. How can I reference to an XML file which locates in dependency-jar?    forum.springsource.org

Hi all, In my program there is as usual the "spring-servlet.xml" which contains the injections of the classes. But some of the classes are referenced as ref="anotherRef". And the "anotherRef" is ...

11. spring injection and jar    forum.springsource.org

spring injection and jar Hi...... I'm using the following code in the hibernate-context.xml i.e The ...

12. dependecies of eceigsecurity-1.0.7.jar    forum.springsource.org

i am using eceigsecurity-1.0.3.jar now i would be shifting to eceigsecurity-1.0.7.jar.can anybody tell me what are the dependecies required .i am using eclipse and spring application

13. Mutliple spring.jar and taglib location    forum.springsource.org

Mutliple spring.jar and taglib location Hi all, My ear file contains two wars, which requires to use two different versions of spring.jar. The layout is Code: App.ear -> app1-ejb.jar (manifest point ...

14. Include XML files in JAR?    forum.springsource.org

Hi everyone, i'm verry new to Spring and i'm trying to develop a simple commandline application. I would like to package this application to a JAR file. Is it possible to ...

15. Injecting Objects into classes when the classes are called in a jar file    forum.springsource.org

Injecting Objects into classes when the classes are called in a jar file Hello, I am very new to spring and looking for an advice about this problem. I have a ...

16. Load applicationContext.xml from jar file in WEB-INF/lib folder    forum.springsource.org

Looks like: Code: jar:file:/FULL_PATH_ON_DISC_TO_MY_JAR/MY_JAR_FILE.jar!/applicationContext.xml does the trick. This is not a problem if you are loading it programitically with: Code: String[] locations = applicationContext.getConfigLocations(); String[] newLocations = new String[locations.length + 1]; ...





17. Missing packages/classes in spring.jar 2.5.5 & 2.5.6    forum.springsource.org

Hello, It seems that the web package in spring.jar is not complete for versions 2.5.5 and 2.5.6. For instance, the package org.springframework.web.servlet is missing. Thanks gea

18. finding dist jar for non-spring.jar classes    forum.springsource.org

i am curious whether there is a quick way through the online javadoc to find the dist jar for a spring class that is not in spring.jar ? e.g. org.springframework.web.servlet.mvc.AbstractContro ller ...

19. parentContextKey / war / jar configuration    forum.springsource.org

parentContextKey / war / jar configuration hi all... i have an ear, that has a jar containing all my business services and daos. the ear also contains a war which has ...

20. context:component-scan not working in imported jar    forum.springsource.org

context:component-scan not working in imported jar Hi everybody, I've got a small problem in my webapp: Firstly, I have an independent project that contains the DAOS & the services. In order ...

21. springmodules-validator-0.1.jar    forum.springsource.org

22. AbstractMultiActionFormController - add to spring-webmvc-2.5.jar?    forum.springsource.org

Seeing some threads for "AbstractMultiActionFormController". I believe that it provides solution if form has multiple submit buttons. But have a simple question. I have seen code for this class on one ...

23. Spring Usage in Distributable Jar    forum.springsource.org

Spring Usage in Distributable Jar I am attempting to create a distributable jar file that contains dao objects, and service layer objects. I would like to be able to give this ...

24. The same package in multiple jars and component-scan    forum.springsource.org

The same package in multiple jars and component-scan Hi, I'm dealing with situation like this. There are two the same package in to classpath elements: target/classes and target/test-classes. It is a ...

25. persistence.xml and     forum.springsource.org

persistence.xml and I have entities in two separate jars that are loaded by my webapp. The only way I have found to make this work is to have a persistence.xml ...

26. Use a JSP within a jar as View    forum.springsource.org

Use a JSP within a jar as View Hi, I can't figure out how to resolve this feature : I have a war and I'm able to display jsp views from ...

27. ojdc5.jar with KeyHolder?    forum.springsource.org

ojdc5.jar with KeyHolder? I've some strange case here, where I'm trying to do INSERT by using NamedParameterJdbcTemplate and KeyHolder for taking the PK(Primary Key), it will get an exception Code: java.lang.ArrayIndexOutOfBoundsException: ...

28. ojdc5.jar with KeyHolder?    forum.springsource.org

ojdc5.jar with KeyHolder? I've some strange case here, where I'm trying to do INSERT by using NamedParameterJdbcTemplate and KeyHolder for taking the PK(Primary Key), it will get an exception Code: java.lang.ArrayIndexOutOfBoundsException: ...

29. Distributing spring IOC based classes in a jar.    forum.springsource.org

Distributing spring IOC based classes in a jar. During my development of this project based on spring, I realized some part of the project code can be reused again to other ...

30. How do you create a bundle with 2 or many jars inside?    forum.springsource.org

I would prefer using Bundle-Classpath as miluch suggested, since it's easier in the long term to maintain the structure and identify the used jars however, you can also 'copy' inline the ...

31. Accessing hbm files within jar    forum.springsource.org

Accessing hbm files within jar I've got two webapps, A and B, both using spring 2.0.7, struts2.1.6 and hibernate 3.2.5. webapp A does some persistence work and webapp B does reporting ...

32. Problems Finding Resource files packed in a jar file    forum.springsource.org

Problems Finding Resource files packed in a jar file Hi, I have an artifact (jar) that reads resource file like this: Code:

37. load data.txt from another folder which is outside jar    forum.springsource.org

load data.txt from another folder which is outside jar Hi, I am using -jar option to run a spring batch process to load data from data.dat into database. /opt/java/bin/java -jar /opt/testhrjobs/script/gmsglp/java1/gmsglp_batch.jar ...

38. ClassPathScanningCandidateComponentProvider not work with jars?    forum.springsource.org

Hi, All I need to scan through classes in some jars to generate a report. So I simply use ClassPathScanningCandidateComponentProvider with annotation filter. It works fine in IDE, but when I ...

39. RmiInvocationWrapper_Stub "missing" from org.springframework.context-3.0.0.M3.jar    forum.springsource.org

Hi All Without this class I cannot invoke RMI services from 3.0M3 client to 2.5.5 server. Is there a reason why RmiInvocationWrapper_Stub is no longer available in 3.0? Thanks, Robin.

40. webflow jar not found    forum.springsource.org

webflow jar not found hi all... couple questions on webflow. i ran 'install web flow' using ROO, then exited and tried to build. during build, ran into this error: Code: $ ...

41. Adding missing and new jars    forum.springsource.org

Hi people love Roo first of all. Trying my first project right now with and i have a problem that when i try to deploy from STS to Tomcat that i ...

42. missing aspectjrt.jar?    forum.springsource.org

missing aspectjrt.jar? I'm just starting to try/learn roo. When I first downloaded it and made a test project, my "mvn install" worked fine and I was able to run the application ...

43. Any documents on jar file usage?    forum.springsource.org

I am looking for Spring Security setup documentation. I expected it should be somewhere on top section the reference document, or the readme.txt file. I fail to find the information. Where ...

44. Missing package in jar?    forum.springsource.org

Hi! I get the following error in my log: Code: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate 'org.springframework.security.annotation.SecuredMethodDefinitionSource' Offending resource: ServletContext resource [/WEB-INF/applicationContext-security.xml] ... I'm trying to use Spring Security 2.0.4. The Spring ...

45. Deployment as jar    forum.springsource.org

Deployment as jar Hello, I have the following problem: I realize an application with swt and spring. I use annotation config like: Code: When I start ...

46. IoC with Jar'd application not working    forum.springsource.org

IoC with Jar'd application not working Hi, I've been using Spring IoC for years, but never had to use it in quite this manner, and am stumped. It is probably something ...

47. Using spring-agent.jar from Command Line    forum.springsource.org

Using spring-agent.jar from Command Line I have a Spring JPA desktop application that works just fine in Eclipse 3.5. The app uses load-time-weaving and loads spring-agent.jar at run time. I export ...

48. Using spring-agent.jar from Command Line    forum.springsource.org

Using spring-agent.jar from Command Line I have a Spring JPA desktop application that works just fine in Eclipse 3.5. The app uses load-time-weaving and loads spring-agent.jar at run time. I export ...

49. Load an application context located inside a jar file    forum.springsource.org

I am writing an swing application to connect to a jms service. The jms service code is defined inside a common.jar file and it's definition is included within the applicationContext of ...

50. Context in embedded jar and best practices    forum.springsource.org

Context in embedded jar and best practices hi, i'm facing an issue, this is my architecture. - Data-jar - Business-jar The data jar define DAO object managed b Spring (@Repository), and ...

51. Load "applicationContext.xml" from Jar File    forum.springsource.org

Load "applicationContext.xml" from Jar File Hi, I am using a StartupServlet in Tomcat 6.0.14. This Servlet is used to register certain Factory Beans from Jar files. The Jar files are available ...

52. where can i get those dependent jars    forum.springsource.org

I have downloaded "spring-framework-3.0.0.M4" then tried to build souce in eclipse, but got couples of errors such as "Unbound classpath variable: 'IVY_CACHE/com.h2database/com.springsource.org.h2/1.0.71/com.springsource.org.h2-1.0.71.jar'" i defined variable IVY_CACHE in reference, but where can ...

53. Loggin strategy when using Blueprint uber JAR    forum.springsource.org

Hi all, I had a hard time trying some of the Blueprint features, mainly because of my inability to configure logging. I used the uber JAR, which embeds all the necessary ...

54. Jar Jar: no can get there from here. Or, schemas for Spring Sec. overwritten in Jar    forum.springsource.org

Sep 18th, 2009, 02:59 PM #1 Developer Dude View Profile View Forum Posts Private Message Senior Member Join Date Oct 2008 Posts 136 Jar Jar: no can get there from here. ...

55. JSP Jar Incompatibility? Please help!    forum.springsource.org

Whenever I use core taglib's "forEach" or "set" tags I get the following exception: Code: java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext; javax.servlet.jsp.jstl.core.LoopTagSupport.unExposeVariables(LoopTagSupport.java:587) javax.servlet.jsp.jstl.core.LoopTagSupport.doFinally(LoopTagSupport.java:323) org.apache.jsp.WEB_002dINF.tiles.drinks.view_jsp._jspx_meth_c_005fforEach_005f0(view_jsp.java:274) I'm running the Tomcat Eclipse plugin and am using Tomcat 5.5. ...

56. jar-file tag can not locate the classpath in persistence.xml    forum.springsource.org

Sep 23rd, 2009, 01:06 PM #1 stormcool View Profile View Forum Posts Private Message Junior Member Join Date Jul 2009 Posts 2 jar-file tag can not locate the classpath in persistence.xml ...

57. Which jar file contains ReflectionSaltSource?    forum.springsource.org

After having the core jar file, I keep get a classNotFound error on ReflectionSaltSource. I add other jars based on my best guess without a luck. Which jar file contain the ...

58. XML files outside jar    forum.springsource.org

XML files outside jar Hi, Is it possible to store the spring xml files outside of the bundle jar. Right now I use Felix FileInstall to call ManagedserviceFactories, which is a ...

59. where can I find the needed jars?    forum.springsource.org

where can I find the needed jars? Hello, I have a question concerning spring and more especially the data access : in the documentation concerning spring (in books or in the ...

60. What is the best way to handle apps spread across multiple jars?    forum.springsource.org

What is the best way to handle apps spread across multiple jars? I am trying to build a web application using SpringMVC which allows the users to drop in jars into ...

61. Not getting springs jar in spring project    forum.springsource.org

Not getting springs jar in spring project hi i am new to STS. i am using 2.1.0. i am trying to start new spring project. i am able to create some ...

62. The description of jar files    forum.springsource.org

The Spring distribution used to come with a description of those Spring jar files (in the readme.txt). I try to find out what jar files I need and can't find the ...

63. include the servlet-api.jar?    forum.springsource.org

tomcat gets mad at me on startup because im including a servlet-api.jar file in my app. anyone know why? i thought my app needed this to be included? maybe it should ...

64. Reading from META-INF in a specific jar when I have a class    forum.springsource.org

Hi. Suppose I have an instance of org.springframework.core.type.classreading.Metadat aReader This means that I have the name of a class. This class is in some jar. This jar might have a META-INF ...

65. Jar-dependecies / minimum requirement?    forum.springsource.org

Hello, I'm just starting with Spring RCP and looked into the "lib" directory. Is there any information about those dependencies? My concrete questions are, which are the minimum requirements (which Jars) ...

66. newbie question concerning aspectjweaver.jar    forum.springsource.org

newbie question concerning aspectjweaver.jar Hello Community, Im new to Spring-AOP and have a question concerning aspectjweaver.jar. first the story: I tried to do some performance-logging with the JamonPerformanceMonitorInterceptor which is included ...

67. Which jar file contains AbstractTransactionalDataSourceSpringContextTests    forum.springsource.org

I am using Spring2.5 and JDK6.0. Please let me know which jar file shall I included in the class path to use AbstractTransactionalDataSourceSpringContextTests? Thanks!

68. Including multiple XML files from other jars    forum.springsource.org

Hi all, What is the best practice to initialize container with multiple container definitions from other jars? I want to declare my common beans in another jar and I want to ...

69. ResourceLoader to load files from a jar on file system    forum.springsource.org

ResourceLoader to load files from a jar on file system I'm currently working on an application which scans a directory that contains deployed java applications (jars) and reads a number of ...

70. Mixing versions of Spring jars in my app    forum.springsource.org

Mixing versions of Spring jars in my app Hi, I would like to move to Spring 3.0 however my application is using JSR 168 and i have found that Spring-webmvc-portlet 3.0 ...

71. Missing jar?    forum.springsource.org

Feb 5th, 2010, 05:36 PM #1 Kristofer View Profile View Forum Posts Private Message Member Join Date Jan 2010 Posts 34 Missing jar? I'm trying create a Spring mvc application and ...

72. Import resource from external JAR or classpath    forum.springsource.org

Import resource from external JAR or classpath Hi, My issue is this. I want to define some beans in a central jar to be used by several other projects in my ...

73. Spring 1.0.2 missing jar errors in generated application    forum.springsource.org

Spring 1.0.2 missing jar errors in generated application Hi , am a new user to ROO , thought I'd give it a try since its gaining a lot of momentum but ...

74. Where is my JAR ?    forum.springsource.org

Hello, I'm currently trying to change from Spring 2.5.x to Spring 3.0.x. My project use Maven to fetch dependencies, and I'm facing a small problem : How can I find the ...

75. Could not find JAR files    forum.springsource.org

I have SpringFramework3.0.0 running. An older project was looking for JAR files that I could not find for my download: "...SEVERE: Exception sending context initialized event to listener instance of class ...

76. Incomplete spring.handlers/schemas after jar generation    forum.springsource.org

Incomplete spring.handlers/schemas after jar generation Hi, Im currently struggling with a jar-with-dependencies generation. The problem as the title says, my spring.handlers and spring.schemas are not complete which causes that some frameworks, ...

77. Use of Spring in library jar    forum.springsource.org

Hi, We want to build a library of common business functions that will be used by different projects in their standalone or web applications. If we use Spring to build this ...

78. WARNING: VM does not contain a valid jre/lib/rt.jar    forum.springsource.org

WARNING: VM does not contain a valid jre/lib/rt.jar Hi, Sample Roo project "wedding" runs fine in Eclipse. However, an Eclipse-recompile after a small change resulted in failure, essentially complaining about missing ...

79. Unable to read TLD "META-INF/c.tld" from JAR file    forum.springsource.org

Mar 23rd, 2010, 06:19 PM #1 cotede2 View Profile View Forum Posts Private Message Junior Member Join Date Apr 2008 Posts 3 Unable to read TLD "META-INF/c.tld" from JAR file Hello ...

80. Having difficulty with new 3.0 jar packaging    forum.springsource.org

When trying to determine where VelocityEngineFactoryBean is packaged I realized that it is not always easy to map package names to jar files. Some package/jar mappings are obvious, but others are ...

81. Determining which spring framework jars are needed    forum.springsource.org

Determining which spring framework jars are needed How can I systematically determine which jars I'll need, and thus should include in my pom.xml file (I'm using maven as my project management ...

82. javax.persistence jar missing    forum.springsource.org

javax.persistence jar missing Below is my pom.xml and within it I have spring-orm (3.0.2.RELEASE) as a dependency. I thought that as a result of having spring-orm as a dependency, javax.persistence would ...

83. Can't resolve artifact: gmaven-runtime-1.5:jar:1.0-rc-4    forum.springsource.org

Can't resolve artifact: gmaven-runtime-1.5:jar:1.0-rc-4 In Roo 1.0.2, when I run "mvn selenium:selenese" I get the error below. I am unable to find this jar file anywhere. Any thoughts? [ERROR] BUILD ERROR ...

84. Spring.jar    forum.springsource.org

85. spring.jar    forum.springsource.org

spring.jar After I placed the spring.jar file to the WEB-INF/lib directory, if I refer the ModelAndView object, like: ModelAndView model = ... The system can automatically find: import org.springframework.web.servlet.*; This is ...

86. how to get application context in already jar file    forum.springsource.org

how to get application context in already jar file Hi i am new to spring.In my application i had to call .net webservice .but i was not able to pass the ...

87. Spring 3 jar    forum.springsource.org

Hi Can someone tell me what jar I need for the latest version of Spring. I've gone to the download page and downloaded spring-framework-3.0.2.RELEASE and when I added all the jars ...

88. Context Scan when deploying to JAR    forum.springsource.org

I wrote an application that uses the AnnotationConfigApplicationContext. While writing and debugging my code in Eclipse all works well. As soon as I go to deploy it to a jar file ...

89. spring-core.jar and spring.jar missing directory entries?    forum.springsource.org

spring-core.jar and spring.jar missing directory entries? In working with the twdata PackageScanner project I discovered that the spring-core.jar and spring.jar files (2.5.6) appear to be "different" than the rest of the ...

90. How does Bundle export in Jar with Ant?    forum.springsource.org

hi, I have a easy question. Now I have a Bundle. Bundle's name is authorization. The Structure is following: src/authorization/java/....(source code) /META-INF/MENIFEST.MF / .......hbm.xml /spring/... /build.xml /test/... /lib/.. How can I ...

91. How to install spring (or get the jar files)    forum.springsource.org

Hi all, I downloaded the spring distribution with dependencies but that does not contain any spring jar files..there is a directory called org.springframework with directories for individual modules like aop etc. ...

92. loading hbm from an external jar    forum.springsource.org

loading hbm from an external jar Hi everyone. I have refactored a project to make it more modular. I have problem loading hibernate mapped object that are defined in a jar ...

93. WHat happend to Spring DM 2.0.0.M1 snapshot jars in EBR?    forum.springsource.org

Hi! The current version (0.2) of the Grails OSGi plugin depends on the 2.0.0.M1 snapshot of Spring DM, but it seems, that this snapshot has recently been removed from EBR. Could ...

94. Probably facing a Jar hell    forum.springsource.org

Hi. I have checked the spring dependencies that ship with it. I can see several outdated dependencies, and I think that I am facing a Jar hell. Is this possible ? ...

95. "perform package" fails on simple JAR project with no persistence    forum.springsource.org

"perform package" fails on simple JAR project with no persistence I'm creating a simple project which will be just a JAR archive that will be shared by a few web applications. ...

96. Spring claspath scanning inside jars    forum.springsource.org

Spring claspath scanning inside jars I wrote my own utility based on spring's ClassPathScanningCandidateComponentProvider to scan the classpath for all classes that extend or implement a given class. It works great ...

97. missing org.springframework.commons:spring-commons-serializer:jar:1.0.0.BUILD-SNAPSHO    forum.springsource.org

I'm trying to build the latest code and getting a message indicating missing org.springframework.commons:spring-commons-serializer:jar:1.0.0.BUILD-SNAPSHOT. Where can I get this?

98. Where is the Spring JSTL TLD jar?    forum.springsource.org

The Spring Framework Reference says "The tag library descriptor (TLD) is included in the spring-webmvc.jar" Where is this jar? It's not in the Spring 3.0 download found here I'm trying to ...

99. Read jar file in contextConfigLocation    forum.springsource.org

Hi, How can I read a jar file in contextConfigLocation, like this: contextConfigLocation /WEB-INF/lib/projetopadrao-negocio.jar!/*-ac.xml I want do this because inside this jar there are my business beans. Thanks

100. NodeMapper & XPathOperations jar files    forum.springsource.org

i would like to use org.springframework.xml.xpath.NodeMapper; and org.springframework.xml.xpath.XPathOperations; classes in my application. but, even after putting all the org.springframework jars of version 3.0.4 into my lib folder, these classes are not ...