jar 2 « Development « Spring Q&A





1. Problems creating jar    forum.springsource.org

Problems creating jar I'm trying to create a jar file for a command-line program that makes use of the Spring framework. I'm getting the following error (from my log file, this ...

2. Import config across jar files    forum.springsource.org

I have a project that exposes a bean to client apps. I'd like to drop a jar onto my classpath and have my project a Spring config contained in that ...

3. ApplicationContextAware class in separate JAR    forum.springsource.org

ApplicationContextAware class in separate JAR I have an EAR with a WAR and a JAR. The WAR has a simple web app, and the JAR has my service layer as well ...

4. Application context reference in a jar    forum.springsource.org

Application context reference in a jar Hey there First of all Spring is awesome and we love it here We have a webapp that references the Spring context from the struts-config.xml ...

5. how do I build full jar file?    forum.springsource.org

You're following http://spring-rich-c.sourceforge.net...mentSetup.html right? We have a "full" module, which basically merges all other modules (except tiger and the samples), but this module isn't included in the default module set of ...

6. Loading applicationContext.xml on different jar    forum.springsource.org

Loading applicationContext.xml on different jar Hi All I am very new in Spring development. currently i have task to develop a system that using spring, hibernate, and tomcat. now i break ...

7. Resource getFile problem with JAR    forum.springsource.org

Hello Im having problem doing resource.getFile() for resources residing inside a JAR. I have a classFinder, with parameter config: Code: classpath*:my/test/**/*.class Giving the Exception: Code: Caused by: java.io.FileNotFoundException: ...

8. spring.handlers and spring.schemas in classpath w/o jar    forum.springsource.org

spring.handlers and spring.schemas in classpath w/o jar Hi- I'm working on a spring-based project that uses the namespacing functionality in Spring 2.0. I'm trying to find the ideal unit testing strategy, ...

9. Stupid question: Loading resources - classpath*: - from JAR files    forum.springsource.org

Stupid question: Loading resources - classpath*: - from JAR files Hi, Here is a very stupid question I believe. I've just packaged my app into a jar file together with appropriate ...





10. NoClassFoundError when classes are into WEB-INF\lib\some.jar    forum.springsource.org

NoClassFoundError when classes are into WEB-INF\lib\some.jar Hello, I am using XMLBeans to generate some classes that implements their XMLObject interface. All these classes are packaged into a xmltypes.jar file located into ...

11. Distribution with deps contains old standard.jar    forum.springsource.org

Distribution with deps contains old standard.jar I'm running through the MVC tutorial here: http://www.springframework.org/docs/...ep-Part-2.html and did this step: We will make use of JSP Standard Tag Library (JSTL) so I will ...

12. wildcard matching and contexts in external jars    forum.springsource.org

wildcard matching and contexts in external jars Hi, I've found a problem with loading Spring context files from external jars. Originally, it was a Maven mailing list discussion (http://www.nabble.com/-M2--Differenc....html#a5362647) but I've ...

13. Can WebApplicationContext load files from WEB-INF/lib/*.jar? classpath*: doesn't work    forum.springsource.org

Can WebApplicationContext load files from WEB-INF/lib/*.jar? classpath*: doesn't work Hi, I was wondering if WebApplicationContext can load resources (ie, applicationContext xml files) from inside jar files deployed in web application (under ...

14. How to refer a applicationContext.xml contain in a jar?    forum.springsource.org

In my Web application, some beans spring are define in a xml file applicationContext-fwk.xml. This xml file is in a jar : fwk.jar. How I should configure the contextConfigLocation to refer ...

15. Best Practice with Multiple Jars    forum.springsource.org

Best Practice with Multiple Jars New user to spring: What is the best practices for accessing beans from multiple jars? I have a fairly simple web app consiting of a Jar ...

16. Loading XML defined in JAR files    forum.springsource.org

Loading XML defined in JAR files Hello all, I'm wondering if it's possible to load my Spring's XMLs which are placed in a JAR file. Let me clarify: project X has ...





17. Standard.jar    forum.springsource.org

Hello, I recently upgraded to 2.0-RC3 (from 2.0-M3) and I have a problem with standard tag library (standard.jar). I choose to switch from old version of the library (1.1.2) to the ...

18. Using views inside JAR files    forum.springsource.org

Using views inside JAR files Hi ALL, Nowadays I store my JSPs in the directory WEB-INF\jsp and configure the view resolver like this:

19. Can't enable weaving (aspectjweaver.jar)    forum.springsource.org

Sep 11th, 2006, 09:52 AM #1 hakimm View Profile View Forum Posts Private Message Member Join Date Dec 2004 Posts 54 Can't enable weaving (aspectjweaver.jar) Hi ! I am using spring2.0rc2 ...

20. Spring runtime dependencies - what jars for what Spring modules?    forum.springsource.org

Basically, I'm trying to find some sort of list or graph explaining what jars are needed by Spring. I have the /lib directory that comes with the distribution, but I'd like ...

21. applicationContext.xml in jar file    forum.springsource.org

applicationContext.xml in jar file Hi All I have created a Java application that starts up a Jetty server that invokes springs httpinvoker to start. In short a Spring http invoker is ...

22. Where did spring-ojb.jar go?    forum.springsource.org

Where did spring-ojb.jar go? I am trying out Bea Workshop for JSP 3.2 as a plug-in for Eclipse. For the first 30 days, it will function as the complete uber-Workshop product, ...

23. WebApplicationContext with configuration from jar    forum.springsource.org

WebApplicationContext with configuration from jar I've run into an interesting problem. I am creating a jar file that contains some custom continence spring-related classes for use in a group of projects ...

24. How to init Spring without config file in jar?    forum.springsource.org

Hello everyone, here is my file structure src --packages --applicationContext.xml Now I want to put applicationContext.xml into another config folder so I can modify some application parameters without repack my application. ...

25. package to jar    forum.springsource.org

package to jar Hello, I used the simple app as a starting point for my application. Now it's complete and I want to export it to jar. When I run the ...

26. Missing gigaspaces:gigaspaces:jar:5.1m2    forum.springsource.org

Missing gigaspaces:gigaspaces:jar:5.1m2 Hello. I am trying to deploy gigaspaces application to BEA web server using maven2. I can't find above mentioned library gigaspaces-5.1m2.jar. I downloaded spring-modules-0.6-with-dependencies and successfully manally installed all ...

27. Use views from external jars    forum.springsource.org

Use views from external jars Hey! As the title suggests, i have 2 projects: the first has a jsp and an InternalResourceViewResolver bean declaration in an xml config file the second ...

28. Junit errors when using spring-mock.jar    forum.springsource.org

Nov 29th, 2006, 06:27 PM #1 afothergill View Profile View Forum Posts Private Message Junior Member Join Date Nov 2006 Posts 1 Junit errors when using spring-mock.jar Hi I'm new to ...

29. Package config/jsp files in jar    forum.springsource.org

Q1) Is there any way in which we can pack the config files (*.xml) in a jar ?. Q2) Configure view resolver to look up the files in jar ? Thanks ...

30. ClassPathResource with jar file spring upgrade bugs    forum.springsource.org

ClassPathResource with jar file spring upgrade bugs I recently upgraded to spring 2 and am seeing some different behavior with the classpathresource. My application is not a webapp, i run it ...

31. Load context from a jar in /WEB-INF/lib    forum.springsource.org

Hi! Heres the situation: Portlet MVC 2.0 IBM Portal 5.0 The DAO and all other persistence-related classes are packed in a jar that is deployed inside the /WEB-INF/lib of the portlet ...

32. Minimal SpringRCP jar    forum.springsource.org

Hello, I'd like to use the Spring RCP in application that will be run via the JAVA WEB STARTER.... due to the project requirements the SPRING RCP jar shouls be as ...

33. Minimal SpringRCP jar    forum.springsource.org

Hello, I'd like to use the Spring RCP in application that will be run via the JAVA WEB STARTER.... due to the project requirements the SPRING RCP jar shouls be as ...

34. Spring don't see application context in another jar file...    forum.springsource.org

Spring don't see application context in another jar file... Hello all !!! I have next problem with spring. 1. I use maven 2 + testng + Spring framework 2.0.2. 2. I ...

35. Best pratice for using spring in jars?    forum.springsource.org

Best pratice for using spring in jars? Hi all, I have several questions about using spring in jar components. We are experiencing some issues and we are not sure if its ...

36. Load ojdbc14.jar problems    forum.springsource.org

Load ojdbc14.jar problems Hi all, We are deploying an application in Jboss 4.0.3, in the lib dir of our .war we have the file ojdbc14.jar corresponding to 10.2.0.1 of Oracle datebase, ...

37. Jar and packaging question/suggestion    forum.springsource.org

Are there any plans to provide a consolidated spring-ws.jar that would include spring-ws-core, spring-oxm, and spring-ws-security? Will Spring ws eventually become a Spring package (instead of a subproject) and be included ...

38. Source jars for individual modules?    forum.springsource.org

39. com.foo.domain containing jar file    forum.springsource.org

Hello, Could you please anyone tell me where can i found the jar file containig the package "com.foo.domain.Genre". I have spring-aaspect.jar file but that jar doesn't this packege. Regards, Bhaskar

40. Accessing application-context residing in a jar    forum.springsource.org

Accessing application-context residing in a jar Hi, I am developing a web application using Spring and Struts. I am seperating the framework of my application from the rest of the application, ...

41. getting noClassDef found error eventhough correct jar is present    forum.springsource.org

getting noClassDef found error eventhough correct jar is present Hi, I am getting following exception during deployment of application Exception stacktrace: Code: Exception:weblogic.management.ApplicationException: start() failed. Module: LIKE Error: weblogic.management.DeploymentException: Error registering ...

42. what jar are needed for jap?    forum.springsource.org

hi.. i'm doing a tutorial on JPA and spring, and i need to know the needed jars for jpa, i allready have persistence.jar, (btw what's the difference between that and ejb3-persistence) ...

43. jar conflicts between frameworks?    forum.springsource.org

jar conflicts between frameworks? hi ... we have a home grown web framework which uses hibernate 2.1.7c in conjunction with spring 1.2.8 for transaction managment, we are currently working on introducing ...

44. Many jars are missing from fortune demo?    forum.springsource.org

Many jars are missing from fortune demo? I am new to Spring and just tyring to play with Spring 2.0.5. I built fortune.war in samples\showcases\dynamvc on Windows XP, copied it to ...

45. Managing JARs when upgrading from 1.x to 2.y    forum.springsource.org

Managing JARs when upgrading from 1.x to 2.y After starting an upgrade from Spring 1.2.6 to 2.0.2, I am wondering how to treat the different JAR files that Spring needs. Section ...

46. File not found problem when loading file inside jar    forum.springsource.org

File not found problem when loading file inside jar Hello guys, I am encountering Could not retrieve File for class path resource [jsms.conf]: class path resource [jsms.conf] cannot be resolved to ...

47. How to create Spring Project from .jar file of project    forum.springsource.org

How to create Spring Project from .jar file of project Hi, I am new to Spring. Can anyone tell me How to create Spring project from .jar file of project?...I have ...

48. How to create Spring Project from .jar file of project    forum.springsource.org

How to create Spring Project from .jar file of project Hi, I am new to Spring. Can anyone tell me How to create Spring project from .jar file of project?...I have ...

49. How to create Spring Project from .jar file of project ?    forum.springsource.org

How to create Spring Project from .jar file of project ? Hi, I am new to Spring. Can anyone tell me How to create Spring project from .jar file of project?...I ...

50. Rendering JSP that resides in a JAR    forum.springsource.org

51. Dependency Injection in a jar file    forum.springsource.org

Dependency Injection in a jar file HI, We have a spring project that will do something (say a serviceA) and want to be able to use it a .jar file in ...

52. Loading XSD from Jar file    forum.springsource.org

Loading XSD from Jar file Hi, I am new to spring IDE and recently installed spring IDE 2.0 with my Eclipse 3.3. I am developing CXF web service application which uses ...

53. spring + xbean-spring2.5.jar + weblogic92 + jrockit problem    forum.springsource.org

Jul 27th, 2007, 01:12 AM #1 sami25 View Profile View Forum Posts Private Message Senior Member Join Date Mar 2006 Location Bangalore, India Posts 242 spring + xbean-spring2.5.jar + weblogic92 + ...

54. Which Jar has the spingframework.test classes?    forum.springsource.org

I am trying to find which jar has the org.springframework.test* classes so i can set the dependency inside maven2. Sorry if this is not the correct forum topic, but nothing seemed ...

55. spring portlet jar    forum.springsource.org

hi, The following error occured when i deployed a portal application. /************ java.lang.NoSuchMethodError: org.springframework.web.portlet.context.Configurab lePortletApplicationContext.addApplicationListener **************/ The configurableportletapplicationcontext class doesn't have the addApplicationListener() . can you just post me the appropraite ...

56. ApplicationContext within jar    forum.springsource.org

ApplicationContext within jar A jar-file implements a client as described here: Code: public class ToolsClient { private ApplicationContext applicationContext; public ToolsClient( ApplicationContext parentContext ) { applicationContext = new ClassPathXmlApplicationContext(new String[]{"classpath:spring.xml"}, parentContext ...

57. Bundling spring configuration files in a jar file    forum.springsource.org

RE: Bundling spring configuration files in a jar file Hi there, this is not an answer to your question but an extension to see if I can get some help too ...

58. applicationContext inside a .jar file????    forum.springsource.org

59. MalformedURLException no protocol: apache.jar    forum.springsource.org

Sep 7th, 2007, 08:11 AM #1 sudimk View Profile View Forum Posts Private Message Junior Member Join Date Sep 2007 Posts 2 MalformedURLException no protocol: apache.jar Dear team, I am trying ...

60. Class Path Scanning from JAR files    forum.springsource.org

RESOLVED: Class Path Scanning from JAR files Hi I am attempting to use the new 2.1 Class Path Scanning functionality, but have hit a problem when running aginst JAR files - ...

61. Need Spring/XWork Jar file    forum.springsource.org

Need Spring/XWork Jar file Hey folks. I've just inherited a project that I have to rebuild and redeploy. I only have source code for this project. I was given none of ...

62. required jars for spring and tiles    forum.springsource.org

Hi, I would like to integrate spring and tiles for my project so then what are the required jars for developing tiles with spring. Do i need to use struts.jar file. ...

63. spring jars    forum.springsource.org

spring jars Hello there, could anyone tell me if there is a documentation or confluence page where we have the all the versions of Spring jars that we can use together. ...

64. spring-full-1.0M1.jar needed    forum.springsource.org

spring-full-1.0M1.jar needed hi , i m developing a application velocity+spring but i m getting error Code: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'parentVelocityView' defined in ServletContext resource [/WEB-INF/velocityspring-views.xml]: Error setting property ...

65. weird error with a missing jar, the jar is there!    forum.springsource.org

Hello guys all my classes files are located in my package classes (com.project. ......) and with ant i create a jar with all them inside of the myproject.jar so Code: webapps ...

66. Q: How to point to a file resource from an appContext located in a JAR?    forum.springsource.org

Q: How to point to a file resource from an appContext located in a JAR? I want to configure some bean properties using org.springframework.beans.factory.config.PropertyP laceholderConfigurer, but the configuration (currently loaded as ...

67. Possible to import resource from a jar?    forum.springsource.org

Possible to import resource from a jar? Can't really find anything in the document..... I have two spring projects, one is model layer and the other one is web layer. I ...

68. ContextLoaderPlugIn missing from spring.jar in 2.5?    forum.springsource.org

Silly question - I've upgraded my JARs to Spring 2.5, but the following.... java.lang.ClassNotFoundException: org.springframework.web.struts.ContextLoaderPlugIn ...indicates that the ContextLoaderPlugIn could not be located. Having picked apart the 2.5 Spring.jar, I see ...

69. Export META-INF of modules/spring-*.jar?    forum.springsource.org

Export META-INF of modules/spring-*.jar? Hi, we plan to use Spring 2.5 in an Eclipse RCP environment. The jars are those of dist/modules/spring-*.jar (already packed as OSGi-Bundles). At this point we have ...

70. Dynamic language support: refresh-check-delay when source is packaged in JAR    forum.springsource.org

Dynamic language support: refresh-check-delay when source is packaged in JAR Hello, It seems that there is a limitation as the refresh-check-delay option requires that the script source files cannot live in ...

71. Manifest problem in spring-agent.jar    forum.springsource.org

Manifest problem in spring-agent.jar Hi, I think that the MET-INF/MANIFEST.MF might contain an error. Here is the content: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 1.6.0_03-b05 (Sun Microsystems Inc.) Implementation-Title: Spring ...

72. Problem with 2.5 loadTimeWeaver and spring-agent-2.5.jar    forum.springsource.org

Problem with 2.5 loadTimeWeaver and spring-agent-2.5.jar Hi, After fixing the problem I was having with the Premain-Class property of the META-INF/MANIFEST.MF - I am still having trouble with the java.lang.instrument implementation ...

73. Configuration of Jars which are Spring dependent    forum.springsource.org

Configuration of Jars which are Spring dependent This is probably a silly question in most spring minded minds ;-) , but something i only recently came upon: I have a libary, ...

74. 2.5 upgrade jar missing    forum.springsource.org

2.5 upgrade jar missing I upgraded and our app to 2.5. In compile/test time, it is happy, yet when I deploy to an app server, it seems a whole package is ...

75. load dtd from jar file    forum.springsource.org

Does anyone know how to load dtd from jar file using spring? I am using ibatis with spring and I want to load ibatis dtd from ibatis jar file instead of ...

76. Jar file for org.springframework.web.context.scope.RequestAttri butes    forum.springsource.org

Which Spring jar file has the below class org.springframework.web.context.scope.RequestAttri butes I am not able to find it in Spring 2.0.7

77. load applicationContext from jar    forum.springsource.org

78. error trying to scan , How to solve it.    forum.springsource.org

Jan 14th, 2008, 12:42 AM #1 guofeng View Profile View Forum Posts Private Message Member Join Date Oct 2006 Posts 32 error trying to scan , How to solve it. I ...

79. Reference applicationContext which resides in a jar    forum.springsource.org

Reference applicationContext which resides in a jar I have a web application in spring which initially was built using ant. I now changed it to be built using maven. However the ...

80. Upgraded spring.jar, some classes not resolved    forum.springsource.org

I've updated the spring.jar for an application I built with Spring 1.2. Now Eclipse is telling me that a number of classes in the org.springframework.web.servlet package (LocaleResolver, ModelAndView) aren't resolving. Other ...

81. load file in jar with ResourceLoader    forum.springsource.org

Does anyone know how to load a file that resides in a jar ?? I have some velocitytemplates that are packaged in a jar. I tried classpath, but, as i read ...

82. spring-web.jar updated to 2.5.2 causes context initialization failure    forum.springsource.org

spring-web.jar updated to 2.5.2 causes context initialization failure I updated to Spring 2.5 and started to implement some annotation based controllers. Most of it works fine in 2.5 but I ran ...

83. Can't find schema mappings when jar is named spring-2.5.1.jar    forum.springsource.org

Can't find schema mappings when jar is named spring-2.5.1.jar All, I'm using Maven2 to build a project using JDK 1.6.0_03 on Linux. Maven is pulling in spring with a filename of ...

84. Does component-scan work against JAR files?    forum.springsource.org

I have a context file that has the following lines: Code: package2 is in a jar file. I believe package1 objects are being ...

85. Accessing file which is located in a JAR    forum.springsource.org

Accessing file which is located in a JAR Hi *, I already posted this thread in another categorie. may be it fits better here... I'm writing a Junit test using the ...

86. I run -javaagent:spring-agent.jar but spring tell me this:Must start with Java agent    forum.springsource.org

Feb 20th, 2008, 09:57 AM #1 benzin View Profile View Forum Posts Private Message Junior Member Join Date Apr 2006 Posts 12 I run -javaagent:spring-agent.jar but spring tell me this:Must start ...

87. Container definition in the jar    forum.springsource.org

Container definition in the jar Hi, We are using Spring Batch as a dependency in Maven 2. Because the jars do not contain a simple-container-definition.xml I got the file from fish-eye, ...

88. I need jars in web context    forum.springsource.org

Hello, I have my applicationContext.xml in my app. In this file I need to import some bean definition file that a have in many jars in my app claspath. When I ...

89. Contents of spring.jar in 2.5.2 (vs. 2.0.8)    forum.springsource.org

Hello I am being forced to upgrade an application from 2.0.8 to 2.5.2. The 2.0.8 spring.jar contains package "org.springframework.web.bind" that is not included in 2.5.2 spring.jar (I did find out that ...

90. ServletRequestUtils not in dist string.jar    forum.springsource.org

I downloaded spring-framework-2.5.2 and for some reason the ServletRequestUtils is not in the Spring jar. Is there a reason for this? Thank you. Benno

91. How to find out version of spring from jar file?    forum.springsource.org

I am trying to find the version of spring used in a project and I can see the spring.jar file is 2,568,189 bytes size and it has the stamp of Oct ...

93. Spring Jars    forum.springsource.org

94. More than one applicationContext.xml in many Jar-Files    forum.springsource.org

More than one applicationContext.xml in many Jar-Files We use Spring on our EJB: public class ExampeEJB extends AbstractStatelessSessionBean implements Example { private Example delegate; protected void onEjbCreate() throws CreateException { this.delegate ...

95. Folders and jar-files    forum.springsource.org

Folders and jar-files Which jar-files should be stored in WEB-INF/lib when you are working on a project where you are using Spring, Acegi, JSTL,Ajax? I'm using acegi, and I've put the ...

96. Where to put jar-files    forum.springsource.org

Where should you put jar-files that you might use in several different projects. I'm using Glassfish, Netbeans, Spring and Acegi . Do you put it in the Glassfish lib-folder or where ...

97. Using Spring from a JAR    forum.springsource.org

Using Spring from a JAR I'm pretty new to Spring, but have been trying to apply it to a simple test project I'm doing. I've got it properly working through my ...

98. Is use of spring-agent.jar slow?    forum.springsource.org

Is use of spring-agent.jar slow? Hi, Spring 2.0 provides 2 weavers: spring-agent.jar and spring-tomcat-weaver.jar. Ref. 12.6.1.2 mentions that Hooking ClassTransformers through a JDK 5.0 agent is typically not efficient As the ...

99. Placing schema's in seperate jar    forum.springsource.org

Is it possible to place the schemas for the service contracts in a separate jar, and if so how do you reference this location. I've tried just depending on this new ...

100. Pet Clinic, what jar files?    forum.springsource.org

Pet Clinic, what jar files? Hi All, I've started learning about the Spring Framework and have completed the Spring MVC application step-by-step tutorial. Now I want to get the Pet Clinic ...