企业应用程序build-impl.xml引发错误 [英] Enterprise application build-impl.xml throws error

查看:385
本文介绍了企业应用程序build-impl.xml引发错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Glassfish-4.0,Netbeans-8。我开始尝试一个示例企业应用程序。我曾尝试过这个相同的教程,尝试了解问题在应用程序中注入的时间和地点。令我惊讶的是,这是从一开始。一旦我在Netbeans中创建一个新的应用程序:
Project => J2EE => Enterprise Application =>输入项目名称=>选择glassfish和JDK-7并单击完成。我尝试按原样运行此应用程序,它会在build-impl.xml文件中抛出此错误。在这一行:
这是在ContactProject-ejb项目中。

I am using Glassfish-4.0, Netbeans-8. I started trying out a sample enterprise application. I have tried this same tutorial a couple of times trying to get where and when exactly the problem got infused in the application. To my surprise, it is from the onset. Once I create a new application by doing this in Netbeans: Project => J2EE => Enterprise Application => Entered the project name => selects glassfish and JDK-7 and clicked finished. I tried running this application as is and it throws this error in the build-impl.xml file. on this line: This is in the ContactProject-ejb project.

934 <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>

在ContactProject文件中出现类似的错误

While a similar error throws up in the ContactProject file

<target name="-run-deploy-am" unless="no.deps">
        <!-- Task to deploy to the Access Manager runtime. -->
        <ant antfile="${project.ContactApp-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
        <ant antfile="${project.ContactApp-war}/build.xml" inheritall="false" target="-run-deploy-am"/>
    </target>
    <target depends="-init-cos,dist-directory-deploy,pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,post-run-deploy" name="run-deploy"/>
    <target if="netbeans.home" name="-run-deploy-nb">
        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
    </target>
    <target name="-init-deploy-ant" unless="netbeans.home">
        <property name="deploy.ant.archive" value="${dist.jar}"/>
        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
        <property name="deploy.ant.enabled" value="true"/>
    </target>
    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
    <target if="netbeans.home" name="-run-undeploy-nb">
        <fail message="Undeploy is not supported from within the IDE"/>
    </target>
    <target depends="dist" name="verify">
        <nbverify file="${dist.jar}"/>
    </target>

这究竟是什么问题?谢谢。
抱歉,这是我尝试运行ejb文件时的错误。我搜索了Glassfish的日志,它是空白的,所以没有任何迹象表明是否正在进行。

what exactly could be the problem with this? Thanks. Sorry, this is the error when I try running the ejb file. I have searched the log of Glassfish, it's blank, so no indication if whatsoever is going on.

pre-run-deploy:
In-place deployment at C:\Users\Ken4ward\Documents\NetBeansProjects\ContactApp\ContactApp-ejb\build\classes
GlassFish Server 4, deploy, null, false
C:\Users\Ken4ward\Documents\NetBeansProjects\ContactApp\ContactApp-ejb\nbproject\build-impl.xml:935: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 1 minute 10 seconds)


推荐答案

您甚至没有提供错误消息...

You are not even providing the error message...

看起来问题是您没有构建子模块(即EJB和WAR项目)因此Maven无法在本地存储库中找到工件。

It looks like the problem is that you didn't build the submodules (i.e. the EJB and the WAR project) and therefore Maven can't find the artifacts in your local repository.

要解决此问题,请构建父Maven项目(EAR项目的父项)或右键单击您的EAR项目,然后单击使用依赖项构建

To fix this either build the parent Maven project (the parent of the EAR projecT) or right-click on your EAR project and click "Build with Dependencies".

如果这不能解决问题,请更新问题真正的错误消息(提示:包含 build-impl.xml 中的行号的消息不是真正的错误消息)。

If this doesn't fix the problem, update the question with the real error message (Hint: The message containing the line number in the build-impl.xml is not the real error message).

这篇关于企业应用程序build-impl.xml引发错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆