Problem with WorkShop 3.2 when lanching tomcat

hi!I met a problem with debugging projects in WorkShop.
I'm using tomcat 5.5.17 in WorkShop studio 3.2.All my server configurations are default!When debugging,I just right clicked on the project and chose "debug on server",then tomcat lanched.During that time,something weird happened.I found my project was deployed twice,and I also found that one was deployed as context "dms"(project's directory name),another as context "web"(project's real context).
I tried all means to solve this problem.Finally I got one.I set two attributes of host tag to false from server.xml,deployOnStartup and autoDeploy.It works.But I don't think it is the best way.so my questions is: is this a workshop deploy bug?
I guess it is.This is what I found from tomcat document.I think it may help us to slove this problem.
"When using automatic deployment, the docBase defined by an XML Context file should be outside of the appBase directory. If this is not the case difficulties may be experienced deploying the web application or the application may be deployed twice.
Finally, note that if you are defining contexts explicitly, you should probably turn off automatic application deployment. Otherwise, your context will be deployed twice each, and that may cause problems for your app. "
Maybe workshop should use the web context name as project directory name when deploying and do not define the context explicitly in server.xml.

hi, I just do the same thing as you do!The problem still exists!
if you go to Tomcat Web Application Manager page and have a look at the applications you deployed. You will find your project is deployed twice with two different context(context root and project directory name as context root).
note:if you don't have access to the manager page,you can try the following:
-edit the settings for the server
-find 'Run modules directly from the workspace(do not modify the Tomcat installation)' setting and uncheck the checkbox before it
-then save your changes.
Doing this you can deploy your project directly to the appbase of your tomcat server directory.Then you will have access to the manager page with the url "http://localhost:8080/manager/html".
Also you may take a closer look at the output of your workshop console,you will find some output messages duplicated.
This problem originally starts from workshop 3.1.There is no such issue before 3.0 and lower versions.
Workshop studio was once an fatastic tool.But after integrated with WTP things have been changed.The biggest trouble is it costs too much memory.and some import features such as AJAX support,javascript debugger aren't available to us.I feel a little disappointed.:(
Hope you guys will fix those defects.
Regards!

Similar Messages

  • Problem with application server shutdown when connecting

    Hi Friends,
    I am new to J2EE applications.
    I developed a web application that uses jxl and mysql for reading excel sheets. The host I am working on is supposed to be the server. The application I am running is working absolutely fine, by creating a directory and saving the excel file in my webapps folder and inserting the data to the database. But the minute I send the file from client system, there is a sudden shutdown in my server.
    I am sending the jsp and java code related to this application and related log file..
    I guess the main problem is with sending the exact path from the remote client, rest all is fine including excel and database interactions.
    I commented the database interaction class just for now as I don't think there is a problem with it.
    I am using Tomcat 4.1, MySQL 3.23
    ====================================================
    JSP FILE
    =====================================================
    <%@ page language="java" import="pdss.*"%>
    <html>
    <head><title>File Upload</title></head>
    <body>
    <%     String action=request.getParameter("go");
    String message=request.getParameter("msg");
    String str="";
    if(message!=null)
         str="Please enter valid filename!";
    ExcelInteraction xlInt=new ExcelInteraction();
    if(action==null)
    %>
    <center><font color="red"><%=str%></font></center>
    <form name="myform" method="post">
    <input type="file" name="filename"></input>
    <input type="submit" name="go" value="Send">
    </form>
    <%
    else if("send".equalsIgnoreCase(action))
         String filename=request.getParameter("filename");
         int ex=0;
         System.out.println("************"+filename.endsWith(".xls"));
         if(filename!=null && (filename.endsWith(".xls")))
              ex=xlInt.fileTransfer(filename, getServletContext());
         else if(filename==null || ("".equals(filename)) || filename.endsWith(".xls")==false)
              response.sendRedirect("uploadFile.jsp?msg=a");
         if(ex>0)
    %>          DONE
    <%     }
         else
    %>          Data Inconsistency found
    <%     }
    %>
    </body>
    </html>
    ======================================================
    JAVA FILES
    ======================================================
    ExcelInteraction:
    package pdss;
    import pdss.*;
    import java.io.*;
    import java.lang.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ExcelInteraction
         //PDSSUtilities pdsUtil=new PDSSUtilities();
         public int fileTransfer(String readFile, ServletContext app) throws Exception
              int i=0, j=0;
              String strDirectory = "pdssexcelfiles";
              System.out.println("..............ReadFile..."+readFile);
              File srcFile=new File(readFile);
              System.out.println(".................Created source file."+srcFile.getAbsolutePath());
              File destFile=null;
              String newDirStr="",srcFileName="",destFileLoc="", realPath="";
              try{
                   realPath=app.getRealPath("/");
                   System.out.println("newDirStr..........."+realPath);
                   newDirStr=realPath+strDirectory;
                   System.out.println("newDirStr..........."+newDirStr);
                   if((new File(newDirStr)).exists()==false)
                        boolean success = (new File(newDirStr)).mkdir();
                        System.out.println("....................success..."+success);
                        if (success) {
                             System.out.println(".................Directory...: " + strDirectory + " created");
                   srcFileName = srcFile.getName();
                   destFileLoc=newDirStr+"\\"+srcFileName;
                   System.out.println("DestFileLoc............"+destFileLoc);
                   if(srcFile.exists()){
                        destFile=new File(destFileLoc);
                        InputStream in = new FileInputStream(srcFile);
                        OutputStream out = new FileOutputStream(destFile);
                        byte[] buf = new byte[1024];
                        int len=0;
                        while ((len = in.read(buf)) > 0){
                             out.write(buf, 0, len);
                        in.close();
                        out.close();
                   System.out.println("............File copied to... "+destFile.getAbsolutePath());
                   System.out.println("......Closing Streams......");
                   /*if(destFile.exists())
                        j=pdsUtil.readXlData(destFileLoc);
                        System.out.println("..........j::"+j+"rows affected");
              catch(Exception e)
                   e.printStackTrace();
                   System.exit(0);
              return j;
    =====================================================
    LOG FILE FROM HOST SYSTEM:
    =====================================================
    2008-09-16 16:53:52 StandardContext[pdss]: Mapping contextPath='/pdss' with requestURI='/pdss/uploadFile.jsp' and relativeURI='/uploadFile.jsp'
    2008-09-16 16:53:52 StandardContext[pdss]: Trying exact match
    2008-09-16 16:53:52 StandardContext[pdss]: Trying prefix match
    2008-09-16 16:53:52 StandardContext[pdss]: Trying extension match
    2008-09-16 16:53:52 StandardContext[pdss]: Mapped to servlet 'jsp' with servlet path '/uploadFile.jsp' and path info 'null' and update=true
    2008-09-16 16:54:01 StandardContext[pdss]: Mapping contextPath='/pdss' with requestURI='/pdss/uploadFile.jsp' and relativeURI='/uploadFile.jsp'
    2008-09-16 16:54:01 StandardContext[pdss]: Trying exact match
    2008-09-16 16:54:01 StandardContext[pdss]: Trying prefix match
    2008-09-16 16:54:01 StandardContext[pdss]: Trying extension match
    2008-09-16 16:54:01 StandardContext[pdss]: Mapped to servlet 'jsp' with servlet path '/uploadFile.jsp' and path info 'null' and update=true
    =====================================================
    LOG FILE FROM CLIENT SYSTEM:
    2008-09-16 16:54:41 StandardContext[pdss]: Mapping contextPath='/pdss' with requestURI='/pdss/uploadFile.jsp' and relativeURI='/uploadFile.jsp'
    2008-09-16 16:54:41 StandardContext[pdss]: Trying exact match
    2008-09-16 16:54:41 StandardContext[pdss]: Trying prefix match
    2008-09-16 16:54:41 StandardContext[pdss]: Trying extension match
    2008-09-16 16:54:41 StandardContext[pdss]: Mapped to servlet 'jsp' with servlet path '/uploadFile.jsp' and path info 'null' and update=true
    2008-09-16 16:54:42 StandardContext[pdss]: Stopping
    2008-09-16 16:54:42 StandardContext[pdss]: Stopping filters
    2008-09-16 16:54:42 StandardContext[pdss]: Processing standard container shutdown
    2008-09-16 16:54:42 ContextConfig[pdss]: ContextConfig: Processing STOP
    2008-09-16 16:54:42 StandardWrapper[pdss:jsp]: Waiting for 1 instance(s) to be deallocated
    2008-09-16 16:54:42 StandardContext[pdss]: Sending application stop events
    2008-09-16 16:54:42 StandardContext[pdss]: Stopping complete
    =====================================================
    Regards
    Vasumitra

    The VERY FIRST message in the server log gives you a hint as to what the problem might be. The server thinks you have spaces in your PATH to the application server. Therefore, the solution is to kill the server however you need to (task manager, whatever) and then reinstall it in a path that doesn't contain spaces. That's the low-hanging fruit here; if that doesn't work, well, then we will have to find some other solution.

  • When I turn my computer on I receive a message that Apple wants to make a change to the hardware. I click on yes but nothing happens. I think this has something to do with Apple "push". I had a problem with this in iTunes when I tried to sync my iPod Touc

    When I turn my computer on (Windows 7) I receive a message that Apple wants to make a change to the hardware. I click on yes but nothing happens. The change has something to do with Apple "push". I recently had a problem with"push" on iTunes when I tried to sync my iPod Touch. I have latest software for iTunes and iPod. Can anyone tell me what to do to get this change to install?

    ptford wrote:
    When I turn my computer on (Windows 7) I receive a message that Apple wants to make a change to the hardware
    Since hardware cannot be changed with software, perhaps you would be so kind as to post the exact wording of the message?

  • I have some problem with my computer because when i turn it up, the screen turns in a blue colour and the sound doesn't work and in this way i can't hear anything

    i have some problem with my computer because when i turn it up, the screen turns in a blue colour and the sound doesn't work and in this way i can't hear anything

    Will u help me or not?

  • I have Windows 7 and just recently experienced a problem with itunes freezing up when I clicked on the "apps" tab.  Everything else seems to work okay in itunes.  I have uninstalled it and reloaded it 4 or 5 times, but still freezes up.

    I have Windows 7 and just recently experienced a problem with itunes freezing up when I clicked on the "apps" tab which shows the apps that are loaded on my phone.  Everything else in the itunes software seems to be working okay.  The problem is in the part where you sync the newly purchased apps.  The apps will all be blank that are downloaded and that part of the software crashes itunes or freezes up.  I can get out of itunes okay after the freeze up, but it just stops me from syncing anything that I have newly added.  If anyone has had this problem before or knows someone that has, please let me know how I can fix it.  I have uninstalled and reloaded itunes 4 or 5 times, but the problem is still there.  I might add that I have been using itunes and purchasing apps for 2 to 3 years without any problems.  HELP.

    You would get better response from the iTunes community forum.
    Have a nice day!

  • I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server wher

    I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server where the PDFs open fine) I get an error 'There was an error processing a page. Invalid function resource' The other one just doesn't open at all. Can anyone help with this please?

    Hello,
    Are the pdf linked correctly in the website? Is this a public website? If yes, please post the link here.
    ~Deepak

  • Trying to get my fcp project to burn to dvd at the highest quality? Ive used compressor and then tried to put it in dvdsp put its not working. I am having problems with the audio or when i burn it , i cant play the dvd? any help would be appreciated

    Ive used compressor and then tried to put it in dvdsp put its not working. I am having problems with the audio or when i burn it , i cant play the dvd? any help would be appreciated

    I suspect you are attempting to burn an HD DVD, which will not play on a DVD player...
    But if you provide more details such as the settings you are applying in Compressor, then we would be able to provide you more accurate information.
    How are you adding the files to Compressor?
    In FCP, what are your footage properties (command-9) and sequence settings (command-0)

  • Anyone having problems with Elements organiser 13 when try to import photos from Mac photos which was an upgrade from Iphotos on 9th April 2015. Before when I was using Iphotos all was ok...

    Anyone having problems with Elements organiser 13 when try to import photos from Mac photos which was an upgrade from Iphotos on 9th April 2015. Before when I was using Iphotos all was ok...

    hi I have been trying to do this, but PE13 comes up with a fail message saying that file types are not supported, am only trying to import jpeg files so can't understand this.  So far have been unable to use PE13 at all, any ideas anyone please!

  • Im have a problem with my adobe id when i try to covert pdf files.

    Im have a problem with my adobe id when i try to covert pdf files.

    I think your question should go in the ExportPDF forum,
    http://forums.adobe.com/community/exportpdf

  • Hello I have encounted a problem with Photoshop. Normally when you start a new documant, you are given the options to have A4, A3, ect page set ups. These inbuilt page set ups seem to have disapeared, does anyone please know how to fix this? Many thanks

    Hello I have encounted a problem with Photoshop. Normally when you start a new documant, you are given the options to have A4, A3, ect page set ups. These inbuilt page set ups seem to have disapeared, does anyone please know how to fix this? Many thanks Ben  [email protected]

    Hello Trevor
    Thanks for your message. You can custom set pages but there are no preset of page sizes like A4, A3, ect. I cannot click the size preference, nothing comes up
    Ben

  • Hi, i have problem with my apple id when i want purchase app even free one, asked me for complete my card informations... but i don't want to use debit card because already i have gift card and charge it in my id... please help

    hi, i have problem with my apple id when i want purchase app even free one, asked me for complete my card informations... but i don't want to use debit card because already i have gift card and charge it in my id... please help me.
    when i unchek the card information it was show me an error!

    Though you are being asked for card details it doesn't necessarily mean that the card will be charged for the purchase (unless you want to gift content). Have you tried entering your card's details to confirm the account ? You should then be able to remove it.
    From http://support.apple.com/kb/HT5582 :
    When making purchases, content credits are used first, followed by Gift Certificate, iTunes Card, or Allowance Account credits; your credit card or PayPal account is then charged for any remaining balance
    Is it a new account ? If it is then unless a new account is created by following the instructions on this page (the instructions won't work with existing accounts) : http://support.apple.com/kb/HT2534
    then you will need to enter card details (debit cards are no longer accepted in all countries) before the account can be used to download any item from the store.

  • I have a problem with elements 8. When ever I start a new project, the program searches for the old, latest used filmmaterial, I have used before. That means, if I use a different DVD, it take so much time, until the program starts. So how can I stopp the

    I have a problem with elements 8. When ever I start a new project, the program searches for the old, latest used filmmaterial, I have used before. That means, if I use a different DVD, it take so much time, until the program starts. So how can I stopp the automatically uploading of old material?
    Thanks

    You have 2 unreachable statements in this method.
    public static int eval(String s2, String op, String s3) {
    return lookup(s2);
    return lookup(op);
    return lookup(s3);
    } You're missing a } at the end of this method:
    public static int lookup(String s) {
        for(int k = 0; k < symbols.length; k++){
            String symbol = symbols[k];
            if(s.equals(symbol))
                return k;
        }You have some loose } and ; at the end of the file:
    public static void main(String args[])
    commandline();
    }

  • I am having problem with lighroom cc brushe when i have GPU TURN ON WHEN OFF I HAVE NO PROBLE,CAN ANYONE HELP?

    IS ANY ONE HAVING PROBLEM WITH LIGHTROOM CC BRUSH WHEN THE GPU IS TURN ON

    F. McLion wrote:
    Update your graphic card driver to the latest version.
    btw.: Rule number 2 - Do not use all caps - Netiquette Wiki
    And for a very practical reason from your point of view: using all caps looks like SHOUTING, and people will concentrate more on the SHOUTING than on answering your question.  Some will just ignore you for this reason.
    If updated drivers don't fix the problem, perhaps you can tell us what is the "PROBLEM WITH LIGHTROOM CC BRUSH WHEN THE GPU IS TURN ON" that you are having. 

  • My daughter's older Ipod Touch is having a problem with images becoming pixilated when taken from an e-mail and placed into her camera roll. ( She wants to put on Instagram ) Any help?

    My daughter's older Ipod Touch is having a problem with images becoming pixilated when taken from an e-mail and placed into her camera roll. ( She wants to put on Instagram ) Any help?

    I think that may be a consequence of the email provider she is using. Some services (AOL is one example) inspect and modify email attachments, particularly photos, resulting in reduced resolution compared to the email that was sent.
    The iPod does not do this. The resolution of the picture in the email she receives will be identical to what is imported.

  • İ have a problem with my itunes accounts.when i want to buy in-app features i got an error

    İ have a problem with my itunes accounts.when i want to buy in-app features i got an error that;
    "Please comtact with itunnes support for completing this process"
    İ checked my device settings and tried my account with another ios device but result not changed.i still get same error.my credit card address info and my account address info same with each other.i tried my other credit cards but i got same error.
    Please check my account details for solving this issue.
    My account details :
    email: [email protected]

    These are user-to-user forums, you are not talking to Apple here.
    You can contact iTunes support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, the try selecting Purchases, Billing & Redemption

Maybe you are looking for

  • List of tax code with tax rate

    I need a list that give the tax code with the tax rate. I can view this in SAP or witch table i look this. Moderator: please do not log issues twice and crosspost into different (and wrong) forums. Thread relocated to ERP Financials and locked.

  • High Logical I/O

    Hello, The system we use is a kind of OLTP thing. platform - linux version - 10.2 here, in the statspack everything seems okay to me except the logical reads.(if not tell) the problems is, the cpu grows gradually and reaches 100. i need the cpu to be

  • ITunes video playback quality is not that smooth

    Hello: Two questions-- 1. Why do the music videos I purchase on iTunes (and then play on iTunes) freeze up for a few seconds after I push play, but then otherwise playback is OK? 2. Why does the "spinning beachball" appear almost everytime I press pl

  • Using SharePoint 2013 Document Library for Office 2010 Workgroup Templates

    Dear all, we are about to introduce SharePoint 2013 and are looking for a way to use it as location for our Office 2010 workgroup templates. But when I try to configure it with in Word options it tells me that URLs are not allowed here. I've searched

  • Moving Average Price and Total Stock not updated for MTO scenario

    We are using MTO with planning strategy 20, individual collective indicator is 1 (individual requirement only) and price control is V for finished goods. We are facing the following problems after we perform GR of above FG from MFBF (Repetitive -run