小编Th0*_*ike的帖子

为什么我的发布在Tomcat v7.0服务器中由于另一个进程的锁定而失败?

我在我的eclipse(helios)环境中设置了Tomcat v7.0服务器,用于测试Web应用程序.目前我在我的工作区中有一个struts web-app,它正确地加载到服务器中,以及我试图上传的两个动态web项目.主要是,我想为第一个项目转换为axis2的web服务,为第二个项目转换为简单的html页面(用于测试此问题).

但是,没有人在服务器内正确加载,我看到另一个进程错误导致锁定.

服务器控制台给出的错误是:

    Publishing failed with multiple errors
Could not delete C:\Documents and Settings\xgeneric\workspaceSkillInventory\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\WStest3\WEB-INF\lib\activation-1.1.jar. May be locked by another process.

Could not delete C:\Documents and Settings\xgeneric\workspaceSkillInventory\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\WStest3\WEB-INF\lib\antlr-2.7.7.jar. May be locked by another process.
Could not delete C:\Documents and Settings\xgeneric\workspaceSkillInventory\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\WStest3\WEB-INF\lib\axiom-api-1.2.11.jar. May be locked by another process.
Could not delete C:\Documents and Settings\xgeneric\workspaceSkillInventory\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\WStest3\WEB-INF\lib\axiom-dom-1.2.11.jar. May be locked by another process.
Could not delete C:\Documents and Settings\xgeneric\workspaceSkillInventory\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\WStest3\WEB-INF\lib\axiom-impl-1.2.11.jar. May be locked by another process.
Could not delete C:\Documents and Settings\xgeneric\workspaceSkillInventory\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\WStest3\WEB-INF\lib\axis2-adb-1.6.0.jar. May be locked by …
Run Code Online (Sandbox Code Playgroud)

java eclipse web-services tomcat7

25
推荐指数
3
解决办法
4万
查看次数

Jquery Mobile复选框点击?

我在复选框上单击使用下面的代码.它可以在本地主机上运行,​​但是当我取消选中复选框时,它无法在移动设备上运行任何一个解决方案吗?

$("#checkbox-1a").change (function(){
    var chkstatus = $(this).attr('checked'); 
    alert(chkstatus);
    if (chkstatus != 'checked') {
        $('#locationdiv').slideUp();
        $('#address').val('');
        $('#zip').val('');
    } else {
        $('#locationdiv').slideDown();
    }
});
Run Code Online (Sandbox Code Playgroud)

提前致谢

checkbox jquery jquery-mobile

4
推荐指数
1
解决办法
2738
查看次数

将子href的点击功能绑定到父div

<div class="parent">
   <a href="#">download link</a>
</div>


$(".parent").bind("click", function(){

alert('test');

});
Run Code Online (Sandbox Code Playgroud)

想绑定href click函数,以便在单击.parent时,它会转到嵌套链接的位置.

html javascript jquery

2
推荐指数
2
解决办法
2794
查看次数

Date.getTime()为同一时间戳提供两个不同的值

我有两个变量.weekStartDate和startDate.它们都基本上保持相同的时间戳:

this.startDate  Date {Mon Mar 26 2012 00:00:00 GMT+0530 (IST)}
this.weekStartDate   Date {Mon Mar 26 2012 00:00:00 GMT+0530 (IST)}
Run Code Online (Sandbox Code Playgroud)

问题是:当我尝试getTime()时,它们显示的值略有不同:

this.startDate.getTime()    1332700200000
this.weekStartDate.getTime()    1332700200506
Run Code Online (Sandbox Code Playgroud)

我怎样才能解决这个问题?

javascript date

1
推荐指数
1
解决办法
1577
查看次数

在jquery中设置HTML的文本框?

下面我使用这个脚本来设置文本框值..

    $('#sub').click(function(){

     var num1 = $('#text1').val(); 
     var num2 = $('#text2').val();

     var newVal = (num1+2)*(num2/4);
     var nextVal =(num1+4)*(num2/2);
     $(#text1).val(newVal); //setting the textbox value here    
Run Code Online (Sandbox Code Playgroud)

jquery jquery-selectors

-4
推荐指数
1
解决办法
69
查看次数