facebook

WebProject: class files not being ‘deployed’

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #229153 Reply

    Unknown Author
    Participant

    I’ve got a couple of java source files in src/java that Eclipse compiles and places in target/classes. (the target location is this way because I am using maven outside of eclipse for builds)

    I’ve defined a deployment for my project, and I see the MyEclipse builders running. The deployment builder copies over my jsps, and other resources, but the classes are never copied.

    What’s wrong?

    
    <?xml version="1.0" encoding="UTF-8"?>
    <projectDescription>
        <name>SampleJSF</name>
        <comment>
      </comment>
        <projects>
        </projects>
        <buildSpec>
            <buildCommand>
                <name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>org.eclipse.jdt.core.javabuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>com.ibm.etools.validation.validationbuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>com.ibm.sse.model.structuredbuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
        </buildSpec>
        <natures>
            <nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
            <nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
            <nature>org.eclipse.jdt.core.javanature</nature>
            <nature>com.genuitec.eclipse.jsf.jsfnature</nature>
        </natures>
    </projectDescription>
    
    
    <?xml version="1.0" encoding="UTF-8"?>
    <project-module
       type="WEB"
       name="SampleJSF"
       id="myeclipse.1115236083881"
       context-root="/SampleJSF"
       j2ee-spec="1.4"
       archive="SampleJSF.war">
       <attributes>
          <attribute name="webrootdir" value="/src/webapp" />
       </attributes>
    </project-module>
    
    
    
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
        <classpathentry kind="src" path="src/java"/>
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
        <classpathentry kind="var" path="MAVEN_REPO/myfaces/jars/myfaces-1.0.9rc3.jar"/>
        <classpathentry kind="var" path="MAVEN_REPO/myfaces/jars/myfaces-extensions-1.0.9rc3.jar"/>
        <classpathentry kind="var" path="MAVEN_REPO/myfaces/jars/myfaces-impl-1.0.9rc3.jar"/>
        <classpathentry kind="var" path="MAVEN_REPO/myfaces/jars/myfaces-xdoclet-1.0.9rc3.jar"/>
        <classpathentry kind="var" path="MAVEN_REPO/oracle-adf/jars/adf-faces-api-ea15.jar"/>
        <classpathentry kind="var" path="MAVEN_REPO/oracle-adf/jars/adf-faces-impl-ea15.jar"/>
        <classpathentry kind="con" path="com.genuitec.eclipse.j2eedt.core.J2EE14_CONTAINER"/>
        <classpathentry kind="lib" path="src/webapp/WEB-INF/lib/adf-faces-api-ea15.jar"/>
        <classpathentry kind="lib" path="src/webapp/WEB-INF/lib/adf-faces-impl-ea15.jar"/>
        <classpathentry kind="lib" path="src/webapp/WEB-INF/lib/jsf-api.jar"/>
        <classpathentry kind="lib" path="src/webapp/WEB-INF/lib/jsf-impl.jar"/>
        <classpathentry kind="output" path="target/classes"/>
    </classpath>
    
    #229154 Reply

    Unknown Author
    Participant

    I also just noted in my “Problems” view, that I have the following message, not sure if it is related:

    
     Severity    Description    Resource    In Folder    Location    Creation Time
    1    Undeployment failure on JBoss 4. File C:\jboss-4.0.1sp1\server\default\deploy\SampleJSF.war\WEB-INF\lib\standard.jar unable to be deleted. If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment at C:\jboss-4.0.1sp1\server\default\deploy\SampleJSF.war    SampleJSF            May 5, 2005 3:20:07 PM
    
    
    #229220 Reply

    Scott Anderson
    Participant

    First, just to be clear, synchronized deployment only works for exploded deployments, not packaged, just in case you’re trying that.

    To test exploded deployment class file updating, I created a simple web project and deployed it to a “custom location” in my temp directory. The web application contained one java servlet and some JSPs. After deployment, I noted the timestamps on the class files. I waited a minute, made a modification to the servlet to force a recompile, then changed the deployed .class file’s timestamp and noted that it was updated as expected. Is your output directory ‘target/classes’ in your workspace directory? Is ‘target/classes’ set as the output directory for your Java source directory? Is ‘Build Automatically’ selected for the workspace?

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: WebProject: class files not being ‘deployed’

You must be logged in to post in the forum log in