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 7643325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:25:12+00:00 2026-05-31T09:25:12+00:00

I’ve managed to configure the maven jetty plugin to successfully deploy a jax-ws war

  • 0

I’ve managed to configure the maven jetty plugin to successfully deploy a jax-ws war with spring and an assortment of other libraries. However despite the successful deployment I’m always obtaining HTTP ERROR 404 Problem accessing /tstsrv Reason: not found.

The relevant section of my POM file bellow. I’ve commented a lot of configurations bellow that I have tried without success namely the jetty-jaxws2spi spi which I don’t know quite how to configure it.

<build>
<finalName>tstsrv</finalName>

<plugins>
  <plugin>
    <groupId>org.mortbay.jetty</groupId>
    <artifactId>jetty-maven-plugin</artifactId>
    <dependencies>
      <dependency>
        <groupId>commons-dbcp</groupId>
        <artifactId>commons-dbcp</artifactId>
        <version>1.4</version>
      </dependency>
    <!-- dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jetty-jaxws2spi</artifactId>
        <version>7.0.1.v20091125</version>
    </dependency -->    
      <dependency>  
          <groupId>com.sun.xml.ws</groupId>  
          <artifactId>jaxws-rt</artifactId>    
          <version>2.2.6</version>
      </dependency>               
    </dependencies>
    <configuration>
      <war>${basedir}/target/tstsrv.war<!-- ${basedir}/target/${project.artifactId}-${project.version}.${project.packaging}--></war>
      <webApp>
        <extraClasspath>${basedir}/src/main/custom/.</extraClasspath>
        <contextPath>/tstsrv</contextPath>
        <jettyEnvXml>${basedir}/src/test/resources/jetty-env.xml</jettyEnvXml>            
      </webApp>

      <!-- systemProperties>
        <systemProperty>
          <name>com.sun.net.httpserver.HttpServerProvider</name>
          <value>org.eclipse.jetty.jaxws2spi.JettyHttpServerProvider</value>         
        </systemProperty>
      </systemProperties -->

      <connectors>
        <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
          <port>9090</port>
          <maxIdleTime>60000</maxIdleTime>
        </connector>
      </connectors>        

      <loginServices>
        <loginService implementation="org.eclipse.jetty.security.HashLoginService">
          <name>myrealm</name>
          <config>${basedir}/src/test/resources/jetty-realm.properties</config>
        </loginService>
      </loginServices>    

     <requestLog implementation="org.eclipse.jetty.server.NCSARequestLog">
        <filename>target/tmp/yyyy_mm_dd.request.log</filename>
        <retainDays>90</retainDays>
        <append>true</append>
        <extended>false</extended>
        <logTimeZone>GMT</logTimeZone>         
     </requestLog>   
    </configuration>
  </plugin>
</plugins>    

My Spring configuration is not using com.sun.xml.ws.transport.http.servlet.WSSpringServlet. I’m extending SpringBeanAutowiringSupport. I think this is relevant because I was able to make this work but only with the WSSpringServlet. I’ve used an example in this blog and that worked.
However that solution is not a option since I’m using weblogic in production and this implies code changes

Thnks for any help.

  • 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. Editorial Team
    Editorial Team
    2026-05-31T09:25:14+00:00Added an answer on May 31, 2026 at 9:25 am

    I was able to resolve this issue by making different configurations controlled by maven profiles. One with a WSSpringServlet for testing and the original one without it.

    Tnks to commenters for the time taken to respond to this issue.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small

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.