Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 82233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:35:05+00:00 2026-05-10T21:35:05+00:00

I have a project built and packaged with a specific version of jsp-apiand servlet-api

  • 0

I have a project built and packaged with a specific version of jsp-apiand servlet-api jar files. Now I want these jars to be loaded when deploying the web project on any application server for example tomcat, WAS, Weblogic etc.

The behaviour I have seen on tomcat is that it gives messages that the packaged version of these apis are not loaded along with an offending class.

Is there any way I could override these server settings or behaviour?

My concern is that letting the default behaviour of a server may allow different behaviour on different servers or even on different versions of same app server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T21:35:06+00:00Added an answer on May 10, 2026 at 9:35 pm
    1. If you have control over the server where you want to install this webapp you can replace the core jars with yours.
    2. Additionally you can prepend the jars in the startup of the app server.

    Update:

    As for the second part, you’ll need to modify the startup file of the application server it self.

    I don’t have an installation at hand but lets suppose in the dir $YOUR_APPSERV/bin there are a bunch of scripts ( either .cmd or .sh files )

    Some of them start the app server , some other help to configure it.

    You need to modify one of those in such a way the command line look like this:

    (assume a windows installation)

    java -Xbootclasspath/p:c:\cutomjars\myJar.jar;customjars\myOtherJar.jar ..................... // the rest of the normal command line. 

    -bootclasspath/p prepends the jars to the app classpath

    -bootclasspath/a appends the jars to the app claspath

    This option let you override any class in the JVM with those specified in the jars, so you can even substitute java.lang.String if you want to.

    That’s one approach. Unfortunately -Xbootclasspath is an option for Sun JVM ( that is JRockit does not have it, nor the IBM’s VM what ever his name is )

    There was another option where you declare a folder where all the extensions are. Plus, there is an ext directory in the jre.

    Take a deep dive into your application server bin directory and find out what each script is used for, I’m pretty sure you’ll make it through.

    Here’s a more formal explanation of this topic: http://java.sun.com/j2se/1.5.0/docs/tooldocs/findingclasses.html

    I hope it helps.

    BTW, I use to do this years ago, to substitue the CORBA package with a veeeery old version. So this works for sure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 96k
  • Answers 96k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This is a good example http://docs.codehaus.org/display/GROOVY/Simple+file+download+from+URL Basically you want to… May 11, 2026 at 7:11 pm
  • Editorial Team
    Editorial Team added an answer When sendmail can't send mail, it saves the message in… May 11, 2026 at 7:11 pm
  • Editorial Team
    Editorial Team added an answer Writing your own Javascript often means reinventing the wheel when… May 11, 2026 at 7:11 pm

Related Questions

I have a Java project which will include a number of large SQL statements
First, let me use one sentence to let out some frustration: My god, developing
I've got a personal (learning) project that uses Castle Windsor (with the NHibernate facility)
I have a rather large project which contains a number of third-party dependencies which

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.