Java build-impl.xml:1048:模块尚未部署。有关详细信息,请参阅服务器日志。构建失败(总时间:36 秒)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22298118/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 14:48:24  来源:igfitidea点击:

build-impl.xml:1048: The module has not been deployed. See the server log for details. BUILD FAILED (total time: 36 seconds)

javajsptomcatubuntunetbeans-7

提问by vishal-mote

I am using ubuntu, tomcat apache, NetBeans with java web based project. I am correctly able to default file of tomcat7 but trying to build a project; it is building correctly when I try to run a project I am getting above error. I didn't find any solution online found lot question like this, but none of them provide me resolution.

我正在使用 ubuntu、tomcat apache、NetBeans 和基于 java web 的项目。我能够正确地默认 tomcat7 文件,但正在尝试构建一个项目;当我尝试运行一个我遇到上述错误的项目时,它正在正确构建。我没有在网上找到任何解决方案,发现了很多这样的问题,但没有一个为我提供解决方案。

Please give me the solution.

请给我解决方案。

回答by Pawel

See the log file, that you type in Netbeans when you configured connection. Maybe Username and password are incorrect or someone in team modified it?? It's mine first published solution. It's good for most begginers. Watch video tutorials for more details. Look here: Services/Databases/right click on (for example) MySQL connection and next Properties.

查看配置连接时在 Netbeans 中键入的日志文件。也许用户名和密码不正确或团队中有人修改了它??这是我的第一个发布的解决方案。这对大多数初学者都有好处。观看视频教程了解更多详情。看这里:服务/数据库/右键单击(例如)MySQL 连接和下一个属性。

If basic properties are empty write username and password exactly that you use in MySQL database OR YOUR FRIEND'S username and password if he add new user for this project. See phpMyAdmin/config.inc.php for actual username and password. Login to database managing program for example phpMyAdmin and If it is different data for root user than in Netbeans change it twice in phpMyAdmin users tab and in config.inc.php 2) or create new user the same as your friend -ask him for details. You don't have to put new user in config.inc.php. So now you have the same username and password as in Netbeans. Make a connection to the table in Netbeans with new username and password (right click properties find user on list and add coma spacebar new user: root, newuser). type and remember in program password for newuser. Disconnect table and base. Connect again and click Run project. Next time it will run with no bugs.

如果基本属性为空,则写入您在 MySQL 数据库中使用的用户名和密码,或者您朋友的用户名和密码,如果他为此项目添加新用户。有关实际用户名和密码,请参阅 phpMyAdmin/config.inc.php。登录到数据库管理程序,例如 phpMyAdmin,如果 root 用户的数据与 Netbeans 中的数据不同,请在 phpMyAdmin 用户选项卡和 config.inc.php 中更改两次 2) 或创建与您的朋友相同的新用户 - 向他询问详细信息. 您不必将新用户放入 config.inc.php。所以现在您拥有与 Netbeans 相同的用户名和密码。使用新的用户名和密码连接到 Netbeans 中的表(右键单击属性在列表中查找用户并添加昏迷空格键新用户:root,newuser)。键入并记住 newuser 的程序密码。断开桌子和底座。再次连接并单击运行项目。下次它将运行没有错误。

If advanced properties are empty watch tutorial for a program you use. There you can find exactly files.

如果高级属性为空,请观看您使用的程序的教程。在那里你可以找到确切的文件。

回答by user5450677

I had the same problem as you, and I found a solution that is start from glassfish cmd administrator mode: 1. cd C: \ Program Files \ glassfish-4.1 \ bin, 2. execute asadmin.bat after startup of glassfish. START netbeans in administrator mode and execute your application, I hope that my answer will be beneficial for you.

我和你遇到了同样的问题,我找到了一个从glassfish cmd管理员模式启动的解决方案: 1. cd C:\Program Files\glassfish-4.1\bin, 2. glassfish启动后执行asadmin.bat。以管理员模式启动 netbeans 并执行您的应用程序,希望我的回答对您有所帮助。

回答by charlinagnes

I got the exact same error code as you and I am running GlassFish server 4 in Netbean IDE. I just resolve it by cleaning and rebuilding the project.

我得到了与您完全相同的错误代码,并且我在 Netbean IDE 中运行 GlassFish server 4。我只是通过清理和重建项目来解决它。

For Netbean is just Run > Clean and Build Project.

对于 Netbean,只是运行 > 清理并构建项目。

Give it some time to do its work and ta daaaa! It just works for me. Do let me know if this works for you.

给它一些时间来完成它的工作,然后 ta daaaa!它只对我有用。请告诉我这是否适合您。

Thanks!

谢谢!