Bnaresh Yad

Greenhorn
+ Follow
since Jan 27, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bnaresh Yad

i mean to say is add that jar file into your classpath
download mysql-connector-java-5.1.12-bin.jar and place it in your lib folder. your problem will be solved

Philippe Desrosiers wrote:Not sure this is the right forum for this question, but here goes...

I need to develop a web app (Spring MVC, if you must know, but the question is not spring-specific), that will allow a user to upload a JAR file that they have developed. The servlet needs to scan the JAR for compatible classes that implement a specific "plugin" interface, and add those classes to it's classPath. Essentially, this should allow the user of the site to upload, enable, and configure plugins.

Is this possible? And if so, how can I add these uploaded JARs to the classpath for the webapp in a way that they won't be deleted next time I deploy my WAR file (ie: I can't store the uploaded JARs in the WEB-INF folder, etc.)?

thanks,

14 years ago

Prabhat Ranjan wrote:Hi,

In Web Application 1st Web.xml file loaded and while loading the context of the web-application.

We use DispatcherServlet to load the ApplicationContext.xml file for Spring configuration file at start-up also we load faces-config.xml for JSF faces context.

How can we load any another xml file or properties file at start-up and how to configure it in web.xml file.


Regards,
prabhat


14 years ago