Cannot locate spring-jee.xsd file - spring

I am new to Spring. Can someone please tell me in which jar file is the XSD file spring-jee.xsd located?
Thanks!

Managed to find it - its located in the spring-context jar file

Related

How to externalize .property file from classpath?

Is there any way to keep struts ApplicationResource.property file outside of project directory and add location in Websphere jvm argument or custom property?
Property file contains the following info:-
Error.uname= ***
Error.pwd=xxx
It is configured in struts-config.xml file using message resources.
Any suggestions would be really helpful. Thanks in advance.

Wrapping a text file in a war and in a jar format

I have a springboot program that reads from a text file present inside the project. I use eclipse IDE. I want to share the project. While packaging the project in war format the text file was missing. Can someone tell me how do I package it so as to have the text file inside the package ?
I want to know the steps for both war and jar packaging which will include the text file in them.
This will let the user who unpacks it finds the text file and it can be used by the springboot service directly.
Thanks
Put any resources (files) used at runtime in src/main/resources. They should be available in all packages.

Pointing wsdl file from pom.xml in webapp

I want to refer to a WSDL file from my POM file of Maven Webapp.
It is situated at ..WebApp\src\main\webapp\WSDL\NewWebService.wsdl.
WSDL/NewWebService.wsdl
This gives me error, please suggest.
Thanks in advance!
You can refer path, using maven property ${basedir}.
<wsdl>${basedir}/src/main/webapp/WSDL/NewWebService.wsdl</wsdl>
or
<file>${basedir}/src/main/webapp/WSDL/NewWebService.wsdl</file>
or something else. (You didn't say anything about used maven-plugin)

Could not find fetcher.properties on classpath

I am working to implement RSS feed using the spring integration as mentioned in the article http://comdynamics.net/blog/295/spring-integration-rss-feed-reader/. However, when I run the application I am getting the following error:
Could not find fetcher.properties on classpath
Can you point me in the right direction?
Can you verify that you have the folder that contains this property file in the classpath of the project? You would have to look at .classpath file to verify this.
Ideally you would want to keep this file in a config folder and must be added to the classpath just like your source folder.
create an empty file named fetcher.properties on classpath. You don't have to add any entry to it.That will solve the problem

ClassNotFoundException on Tomcat Server

I am using this tutorial to set up Tomcat Server. After I have put the HelloServlet.java in classes and Web.xml in the WEB-INF folder and I'm giving the command
localhost:9999/hello/sayhello
On the browser. I'm always getting ClassNotFoundException. If anyone can tell me where am I going wrong.
I'm using JDK1.6.0_30, and Tomcat7 for my sample application.
You need to put the compiled HelloServlet.class file (not the .java file) in the WEB-INF/classes folder.
Compile HelloServlet.java and place the output class file HelloServlet.class into
<TOMCAT_HOME>\webapps\hello\WEB-INF\classes\HelloServlet.class
One thing you should check is that, the HelloServlet.class should be in a package. Looks like you have a long way to go with Servlet and JSP... I recommend Head First Servlet and JSP for your reference.
In your 'WEB-INF' of 'classes' folder place the .class files and if your using JDBC, jsp's just Copy the .jar executable files into 'lib' folder. and make sure that xml file should contain the proper information.
you should follow below Web Application Directory Structure
WEB-INF/ --
web.xml --xml file
classes/ ---classes folder here we keep .class files Myservlet.class
lib/ ---lib folder here we keep all .jar files. Myapp.jar
Welcome.html
Welcome.jsp

Resources