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

  • Home
  • SEARCH
  • 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 5942283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:13:53+00:00 2026-05-22T16:13:53+00:00

Greetings, I have a web application that uses spring and JPA . logs tell

  • 0

Greetings, I have a web application that uses spring and JPA. logs tell me everything is running fine. However, I used Netbeans to create this application and so am using it for deployment on the server too.

During deployment I get this error:

Starting Tomcat process...
Waiting for Tomcat...
Tomcat server started.
In-place deployment at /root/NetBeansProjects/FYPTest/build/web
Deployment is in progress...
deploy?config=file%3A%2Ftmp%2Fcontext9072106357139916321.xml&path=/FYPTest
Server returned HTTP response code: 400 for URL: http://localhost:8084/manager/deploy?config=file%3A%2Ftmp%2Fcontext9072106357139916321.xml&path=/FYPTest
/root/NetBeansProjects/FYPTest/nbproject/build-impl.xml:706: The module has not been deployed.
BUILD FAILED (total time: 50 seconds)

My applicationContext.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:p="http://www.springframework.org/schema/p"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">

    <!--bean id="propertyConfigurer"
          class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
          p:location="/WEB-INF/jdbc.properties" />
    -->

<!--    Container Manager Persistence (CMP) Config using Spring+JPA and EclipseLinkProvider-->
<!--
Container Provider: Spring
Persistence Provider: EclipseLinkJPAProvider
SPI: Weaving Done by Tomcat (included tomcat-spring-weaver.jar in /lib)
-->

<bean id="userService" class="org.seecs.beans.UserDAO"/>

<bean id="fileService" class="org.seecs.beans.FileDAO"/> <!--Automatic injection of entityManager by container-->

<!--Bean to load application.properties file -->
<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="classpath:application.properties"/>
</bean>


    <bean id="dataSource"
          class="org.springframework.jdbc.datasource.DriverManagerDataSource"
          p:driverClassName="${driverClass}"
          p:url="${dbURL}"
          p:username="${dbUserName}"
          p:password="${dbPassword}" />

    <!-- ADD PERSISTENCE SUPPORT HERE (jpa, hibernate, etc)LocalContainerEntityManagerFactoryBean -->

    <bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
    <property name="persistenceXmlLocation" value="classpath:META-INF/persistence.xml"/>
       <property name="persistenceUnitName" value="entity-PU"/>
       <property name="dataSource" ref="dataSource"/>
       <property name="loadTimeWeaver">
           <bean class="org.springframework.instrument.classloading.ReflectiveLoadTimeWeaver"/>
       </property>
       <property name="jpaVendorAdapter" ref="vendorAdapter"/>
    </bean>

<!--PlaceHolder Values are taken from /classes/application.properties-->


<bean id="vendorAdapter" class="org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter">
<!--placeholder:${platform}-->
      <property name="databasePlatform" value="${platform}"/>
       <property name="showSql" value="true"/>
       <!--property name="generateDdl" value="true"/ recreares DB schema each time when loaded-->
    </bean>


  <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
       <property name="entityManagerFactory" ref="entityManagerFactory"/>
    </bean>

<bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/>

<!-- To tell spring to look for @Transactional <tx:annotation-driven mode="aspectj" />  -->
<tx:annotation-driven/>
<!-- If you don't add this, entityManager is not injected and throws NullPointerException-->
<context:annotation-config />

  <!--<context:load-time-weaver aspectj-weaving="on" >-->

<!--tx:jta-transaction-manager-->
<context:load-time-weaver aspectj-weaving="on"/>

</beans>

My context.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--Context antiJARLocking="true" path="/FYP"/-->
<Context docBase="FYPTest" path="/FYPTest">
        <Loader loaderClass="org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader"/>
</Context>

My persistence.xml

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
  <persistence-unit name="entity-PU" transaction-type="RESOURCE_LOCAL">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <properties>
    </properties>
  </persistence-unit>
</persistence>

Its causing me inconvenience because I have to restart the server every time I make changes to any one of my servlets.

  • 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-22T16:13:54+00:00Added an answer on May 22, 2026 at 4:13 pm

    right im gonna answer this myself. probably a netbeans bug. It deploys fine on another version of netbeans on windows.

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

Sidebar

Related Questions

I have a web application set up on our intranet that uses windows authentication
Greetings! I have some troubles enabling OAuth authentication for my web application running on
greetings all i have a web application using (spring-hibernate) frameworks and when tried to
I have a Java web application that uses CometD. The workflow is simple: I
Greetings, I'm working on a JS-based application that does some complex work and logs
Greetings all... I have a simple, yet annoying question regarding Spring Web MVC. I
Greetings: I have put together a RESTful web service in .NET 3.5 that takes
Greetings. I would like to have my application have a function so that when
Greetings, I have a Cuke test that is testing a rest web service w/
Greetings: I have the metaphor of Parent Transactions in my JSP web application. I

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.