Missing java class with RTC buildy utility's task
![](http://jazz.net/_images/myphoto/ff4a4b18cc3a5ceb84b1f81780a791ef.jpg)
Hi everyone,
I'm trying to use the build utility but I'm getting the error below:
in the task:
At the development time, RAD takes this class from the com.ibm.ws.runtime_6.1.0.jar jar file.
Also the project is set to use the WebSphere Application Server v6.1 at the RAD's Java Build Path.
And in the server side I have base_stub and base_v61_stub folders.
Is there a way to set the the missing java package to the projectBuild task?
Or, is there a way to set the location of the container runtime?
Or, is there another way to solve this issue?
Thanks!
I'm trying to use the build utility but I'm getting the error below:
[projectGetErrors] 1. ERROR in /CSQSWebService_Latest/src/com/ibm/csearch/search/csqs/core/CSQSBean.java
[projectGetErrors] (at line 33) org.eclipse.jdt.core.problem
[projectGetErrors] The import com.ibm.ws.webservices.engine.transport.http.HTTPConstants cannot be resolved
[projectGetErrors] ----------
[projectGetErrors] 2. ERROR in /CSQSWebService_Latest/src/com/ibm/csearch/search/csqs/core/CSQSBean.java
[projectGetErrors] (at line 720) org.eclipse.jdt.core.problem
[projectGetErrors] HTTPConstants cannot be resolved
in the task:
<target name="buildWar">
<projectBuild ProjectName="${project.war}" BuildType="${type}" DebugCompilation="${debug}" />
</target>
At the development time, RAD takes this class from the com.ibm.ws.runtime_6.1.0.jar jar file.
Also the project is set to use the WebSphere Application Server v6.1 at the RAD's Java Build Path.
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.ibm.ws.ast.st.runtime.runtimeTarget.v61/was.base.v61"/>
And in the server side I have base_stub and base_v61_stub folders.
Is there a way to set the the missing java package to the projectBuild task?
Or, is there a way to set the location of the container runtime?
Or, is there another way to solve this issue?
Thanks!
8 answers
![](http://jazz.net/_images/myphoto/ff4a4b18cc3a5ceb84b1f81780a791ef.jpg)
Hi Nick (and everyone),
First of all, thanks for your help.
My problem is not to find the projectBuild ant task but to find the HTTPConstants.
HTTPConstants is present in the com.ibm.ws.runtime_6.1.0.jar and this is the package that I'm not able to use at the build time :(.
Is there another way to build a EAR project without the projectBuild ant task?
Thanks!
First of all, thanks for your help.
My problem is not to find the projectBuild ant task but to find the HTTPConstants.
HTTPConstants is present in the com.ibm.ws.runtime_6.1.0.jar and this is the package that I'm not able to use at the build time :(.
Is there another way to build a EAR project without the projectBuild ant task?
Thanks!
![](http://jazz.net/_images/myphoto/ff4a4b18cc3a5ceb84b1f81780a791ef.jpg)
> HTTPConstants is present in the com.ibm.ws.runtime_6.1.0.jar and this is the package that I'm not able to use at the build time :(.
Why can't you use it at build time? If the projectBuild Ant task requires that missing class, then it seems like you need that jar on the classpath for Ant. This can be done using the -lib argument.
Sorry, I'm not familiar with the projectBuild task or how to build EARs otherwise. Maybe someone from Websphere, or from the web tools project, can help in their forums.
Why can't you use it at build time? If the projectBuild Ant task requires that missing class, then it seems like you need that jar on the classpath for Ant. This can be done using the -lib argument.
Sorry, I'm not familiar with the projectBuild task or how to build EARs otherwise. Maybe someone from Websphere, or from the web tools project, can help in their forums.
![](http://jazz.net/_images/myphoto/ff4a4b18cc3a5ceb84b1f81780a791ef.jpg)
Hi Nick (and everyone),
I've tried the -lib and got the following error message.
Do you have any idea? How can I set the global Ant runtime classpath or classpath for a particular build?
Thanks!
I've tried the -lib and got the following error message.
-lib not supported
Configure the Ant runtime classpath using either the global Ant runtime classpath or the Ant runtime classpath for this particular build
Do you have any idea? How can I set the global Ant runtime classpath or classpath for a particular build?
Thanks!