Hello World web service tutorial - weblogic.developer.interest.webservices.general(Archived)

I am trying to build the hello world tutorial at http://www.manojc.com/?sample1 but am getting the following error:
build.xml:43: The following error occurred while executing this line:
build-webss.xml:10: Could not create task or type of type: source2wsdd.
Looking in the build.xml and build-webss.xml files I cannot find a taskdef definition for source2wsdd. I admit that my knowledge of ant is limited, but I user defined tasks like source2wsdd require taskdef. What am I missing here that would get this tutorial to work? Do you know of other tutorials which you would recommend which work as advertised? 

hmm it looks like the ant build file in the tutorial was designed to be run with WebLogic's distribution of ant. I now have the build file buildig switched to WebLogics ant dist and created some directories for the buiild file which it was too dumb to create for itself. I am curious though how I would build the file using a normal distribution of ant anyone know? 

trying to do the same thing generating a web service...
added the taskdefs to the beginning of the file and tried to recompile. Now I get a ClassDefNotFound error for my main web service class, which I can see right there in the hierarchy.
The weird thing is, if I run ant within the WLS examples shell, the build works perfectly. 

Hi friend,.....I do have the same problem. Please let me know when u solve that issue.
I am trying to build the hello world tutorial at http://www.manojc.com/?sample1 but am getting the following error:
build.xml:43: The following error occurred while executing this line:
build-webss.xml:10: Could not create task or type of type: source2wsdd.
Looking in the build.xml and build-webss.xml files I cannot find a taskdef definition for source2wsdd. I admit that my knowledge of ant is limited, but I user defined tasks like source2wsdd require taskdef. What am I missing here that would get this tutorial to work? Do you know of other tutorials which you would recommend which work as advertised?
Thanks
Sunish 

Open a DOS window,
1. after created the new domain, you must run setEnv.cmd first.
2. add 2 lines in that build.xml.
<target name="clean" description="delete generated stuff" >
<delete dir="${output_dir}" />
<delete dir="${client_classes}" />
<!-- add this line -->
<delete dir="${temp_dir}/wlws/config/mydomain/applications" />
</target>
<target name="setup" description="create output directories" >
<mkdir dir="${server_classes}" />
<mkdir dir="${client_classes}" />
<!-- add this line -->
<mkdir dir="${temp_dir}/wlws/config/mydomain/applications" />
</target>
3. after you type c:${tutorial_root}/sampleXXX/>ant, everything should OK
Message was edited by:
offertojames#yahoo.ca 

make sure u include this taskdef it should be fine..don't know why the ant task of weblogic gives this error probably it needs some SP.
<taskdef name="servicegen" classname="weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask">
     <classpath path="webservices.jar"/>
     <classpath path="weblogic.jar"/>
</taskdef>
     
<taskdef name="source2wsdd" classname="weblogic.ant.taskdefs.webservices.autotype.JavaSource2DD">
<classpath path="webservices.jar"/>
     <classpath path="weblogic.jar"/>
</taskdef>
u may put one of them depending upon it is servicegen or source2wsdd..
cheers
rajendra 

Another common mistake is to not put the .class structure (Web-inf/classes) on your classpath

Related

Problem using ant for deploying: Could not create task of type: wldeploy

Hello all,
I have installed weblogic server 7.0 SP2 and I am trying to deploy an application
through ant scripts. Following is a portion of the ant script which I am using:
<target name="deploy">
<wldeploy action="deploy" source="${dist}/ejb20_basic_statelessSession.jar"
name="ejbapp" user="weblogic" password="weblogic" verbose="true" adminurl="t3://dscp00712:7001"
debug="true" targets="cluster_elsewhere" />
</target>
Before I run this script, I run setWLSEnv.cmd, and it runs without giving an error
and sets the classpath. After this, when I run the above and script, I get:
build.xml:93: Could not
create task of type: wldeploy. Common solutions are to use taskdef to declare
your task, or, if this is an optional task, to put the optional.jar in the lib
directory of your ant installation (ANT_HOME).
I have also tried adding the following to my build.xml:
<taskdef name="wldeploy"
classname="weblogic.ant.taskdefs.management.WLDeploy"/>
However in this case I get an error:
build.xml:12: taskdef class weblogic.ant.taskdefs.management.WLDeploy cannot be
found
I am getting similar errors in case of wlcompile/wlserver, etc.
This seems to be some classpath problem, but since I am running setWLSEnv.cmd,
I do not know what else needs to be put in the classpath.
Kindly help me regarding this.
Thanks a lot.
~Shan
Fwd'ing to deployment group for any help.
-satya
Shan wrote:
Hello all,
I have installed weblogic server 7.0 SP2 and I am trying to deploy an application
through ant scripts. Following is a portion of the ant script which I am using:
<target name="deploy">
<wldeploy action="deploy" source="${dist}/ejb20_basic_statelessSession.jar"
name="ejbapp" user="weblogic" password="weblogic" verbose="true" adminurl="t3://dscp00712:7001"
debug="true" targets="cluster_elsewhere" />
</target>
Before I run this script, I run setWLSEnv.cmd, and it runs without giving an error
and sets the classpath. After this, when I run the above and script, I get:
build.xml:93: Could not
create task of type: wldeploy. Common solutions are to use taskdef to declare
your task, or, if this is an optional task, to put the optional.jar in the lib
directory of your ant installation (ANT_HOME).
I have also tried adding the following to my build.xml:
<taskdef name="wldeploy"
classname="weblogic.ant.taskdefs.management.WLDeploy"/>
However in this case I get an error:
build.xml:12: taskdef class weblogic.ant.taskdefs.management.WLDeploy cannot be
found
I am getting similar errors in case of wlcompile/wlserver, etc.
This seems to be some classpath problem, but since I am running setWLSEnv.cmd,
I do not know what else needs to be put in the classpath.
Kindly help me regarding this.
Thanks a lot.
~Shan
Those ant tasks were added in 8.1.
For wldeploy, you'll have to use a java ant task that calls
weblogic.Deployer. Be sure to pass -noexit if you run it in-process.
-- Rob
Satya Ghattu wrote:
Fwd'ing to deployment group for any help.
-satya
Shan wrote:
Hello all,
I have installed weblogic server 7.0 SP2 and I am trying to deploy an
application
through ant scripts. Following is a portion of the ant script which I
am using:
<target name="deploy">
<wldeploy action="deploy"
source="${dist}/ejb20_basic_statelessSession.jar"
name="ejbapp" user="weblogic" password="weblogic" verbose="true"
adminurl="t3://dscp00712:7001"
debug="true" targets="cluster_elsewhere" /> </target>
Before I run this script, I run setWLSEnv.cmd, and it runs without
giving an error
and sets the classpath. After this, when I run the above and script, I
get:
build.xml:93: Could not
create task of type: wldeploy. Common solutions are to use taskdef to
declare
your task, or, if this is an optional task, to put the optional.jar in
the lib
directory of your ant installation (ANT_HOME).
I have also tried adding the following to my build.xml:
<taskdef name="wldeploy"
classname="weblogic.ant.taskdefs.management.WLDeploy"/>
However in this case I get an error:
build.xml:12: taskdef class weblogic.ant.taskdefs.management.WLDeploy
cannot be
found
I am getting similar errors in case of wlcompile/wlserver, etc.
This seems to be some classpath problem, but since I am running
setWLSEnv.cmd,
I do not know what else needs to be put in the classpath.
Kindly help me regarding this.
Thanks a lot.
~Shan
I am also facing the same problem.
Can someone please send an example script to create a domain and server on weblogic7 using ant script?
How is it mentioned in bea docs about wlserver and wldeploy tasks in weblogic7 docs when these tasks are there only in weblogic8?
http://e-docs.bea.com/wls/docs70/adminguide/ant_tasks.html

workshop 10.3 build script issues

I am running Workshop 10.3 with 9.2 runtime.
Getting the following error when running build through ant.
I am setting the classpath using commEnv.cmd and setWlsEnv.sh in the 9.2 environment
C:\_falcon\source\workflow>ant -Dworkspace=c:\_falcon\workspace\wms -Dworkshop.h
ome=c:\bea103\workshop_10.3 -Dworkshop.lib.dir=c:\_falcon\workspace\wms\workshop
-lib build
Buildfile: build.xml
init.env:
check.params:
check.versions:
init.typedefs:
[echo] Using Workshop Libraries located in the "c:\_falcon\workspace\wms\wo
rkshop-lib" directory.
Trying to override old definition of task for
Trying to override old definition of task jspc
init:
[mdimport] Could not resolve apt factory path entry:
[mdimport] KIND: PLUGIN
[mdimport] ID: com.bea.workshop.wls.ejb.core
Thanks
Srinivas 
There are issues with the generated build scripts
It is not calling ejbgen in the build.xml for ejb 2.1 projects
If we modify the generated build.xml to add the ejbgen task, it is working 
I am having the same problem. I tried to upgrade the weblogic workshop 8.1 application to WOrkshop 10.3. We are using the 10.3 runtime environment. I got the error
Then I created a whole new 10.3 application . But I am still getting the error
I have 3 Java projects(One with XML schemas), 1 EJB Project(3.0) & 1 Webservices project.
I created an EAR project and tried to create a package.
When I run the build.xml on the EAR prject, I am getting a nullpointerexception in the mdimport task of the EJBProject's build.xml.
Every other project works well.
But I am able to build in the Workshop
Can you please help.
Edited by: user3392375 on Nov 23, 2008 5:48 PM
Edited by: user3392375 on Nov 23, 2008 6:53 PM 
I'm seeing the same error from the Ant build (and no EJB classes are generated).
It looks like the build.xml script produced by Workshop 10.3 for an EJB project includes an apt annotation processing task within the "build" target instead of calling EJBGen directly. This task depends on an "apt.factory.path" reference that evidently is supposed to be defined when mdimport is run. The error we're seeing from mdimport seemingly indicates that the ejbgen annotation processing factory could not be loaded for the project. Doing the ejbgen manually would work, but doesn't explain why the apt process is not working.
The ejbgen annotation processing evidently works in the IDE because the com.bea.workshop.wls.ejb.core plugin is included in the APT factory path (in the Java Compiler options for the project).
It seems like the build script should work correctly if the APT factory path is initialized correctly (and the ejbgen annotations are thereby processed by apt).
How is this supposed to work? Where is the failure? Can anyone from Oracle/BEA weigh in on this?
Thanks,
Eric 
bump...
Has anyone else solved this issue? It's preventing us from upgrading from BEA AquaLogic/WebLogic to Oracle Service Bus.
I would recommend that you open a case with Oracle Support.
- Konstantin 
Try the following, it should work:
1) set the following variable before starting ant:
export LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar
2) before the build task in ant build xml, put the following:
<path id="ejbgen.path">
<fileset dir="${workshop.lib.dir}" includes="*.jar"/>
<fileset dir="${bea.home}/modules" includes="*.jar"/>
<fileset dir="${wl.home}/server/lib" includes="*.jar"/>
</path>
<taskdef name="ejbgen"
classname="com.bea.wls.ejbgen.ant.EJBGenAntTask" classpathref="ej
bgen.path"/>
<ejbgen outputDir="${apt.src.output.dir}"
descriptorDir="${apt.src.output.dir}/META-INF"
forceGeneration="yes" source="1.5" remoteHomeSuffix="RemoteHome"
remoteSuffix="Remote">
<fileset dir="src" includes="**/*.java" />
<classpath refid="ejbgen.path"/>
</ejbgen> 
Hi there,
I tried your suggestion for one of my WLP10.3 EJB project (I put what you have suggested before "build task" in build.xml generated by workshop for my EJB project) and got the following error. It is not generating any ejb classes.
--------------------------------------------------------------------------------------------------------------------------------------
Buildfile: build.xml
[ejbgen] EJBGen WebLogic Server 10.3 SP0 Fri Jul 25 16:30:05 EDT 2008 1137967
[ejbgen] Warning: No EJBGen file found!
init.env:
check.params:
check.versions:
init.typedefs:
[echo] Using Workshop Libraries located in the "C:/devapps/stsource/EAS/mySPEI-dev10gR3/source/BuildFiles/workshop-lib" directory.
Trying to override old definition of datatype jspc
init:
[mdimport] Could not resolve apt factory path entry:
[mdimport] KIND: PLUGIN
[mdimport] ID: com.bea.workshop.wls.ejb.core
build:
-------------------------------------------------------------------------------
Regards,
JT 
I encountered the same issue...I even opened a ticket with Oracle Support only to find they have no fix in place for this nor did they indicate this was a known issue. At any rate, I was able to fix this problem on my own by merging in the missing pieces from the build.xml file generated by Workshop 10MP1 for my ejb project into the build.xml Workshop 10gR3 generated and my deployment onto my remote development servers works now.
All I did is update the 'init' target so it looks like this, I've bolded the section that was added, all the rest is the default generated by Workshop 10gR3:
<target name="init" depends="init.env,check.params,check.versions,init.typedefs" unless="init.executed">
<property name="init.executed" value="true"/>
<dirname property="project.dir" file="${ant.file}"/>
<property name="echo.metadata" value="false"/>
<mdimport workspace="${workspace}" pjdir="${project.dir}" echo="${echo.metadata}">
</mdimport>
<property name="archive.name" value="${project.name}.jar"/>
<property name="uri" value="${archive.name}"/>
*<taskdef name="ejbgen" classname="com.bea.wls.ejbgen.ant.EJBGenAntTask">*
*<classpath>*
*<pathelement location="${patch.home}/weblogic_patch.jar"/>*
*<pathelement location="${wl.home}/server/lib/weblogic.jar"/>*
*<pathelement location="${wl.home}/../modules/com.bea.core.i18n_1.0.0.0.jar"/>*
*</classpath>*
*</taskdef>*
</target>
Next I went down to the 'build' target and changed that so it looks like this now, sections I added are surrounded by <========= ... =========> (I tried blding them buit the ejbgen section has '*'s in them and was screwing up the Oracle Forum "formatting"), the rest is the default generated by Workshop 10gR3:
<target name="build" depends="init" description="compiles the source files; does not package the results">
<=========
<ejbgen
source="1.5"
outputDir = "${apt.src.output.dir}"
wls9="true"
descriptorDir = "${apt.src.output.dir}/META-INF"
forceGeneration = "true"
ejbSuffix = "."
localSuffix = "Local"
localHomeSuffix = "LocalHome"
remoteSuffix = "Remote"
remoteHomeSuffix = "RemoteHome"
valueObjectSuffix = "Value"
fork="yes">
<classpath>
<pathelement location="${patch.home}/weblogic_patch.jar"/>
<pathelement location="${wl.home}/server/lib/weblogic.jar"/>
<pathelement path="${java.class.path}"/>
</classpath>
<fileset dir="${project.dir}">
<include name="${java.src.0.relative}/**/*.java"/>
<include name="${java.src.1.relative}/**/*.java"/>
<or>
<contains text="#Session"/>
<contains text="#Entity"/>
<contains text="#MessageDriven"/>
<contains text="#weblogic.ejbgen.Session"/>
<contains text="#weblogic.ejbgen.Entity"/>
<contains text="#weblogic.ejbgen.MessageDriven"/>
</or>
</fileset>
</ejbgen>
=========>
<if>
<isreference refid="apt.factory.path"/>
<then>
<mkdir dir="${apt.src.output.dir}"/>
<for-each-java-src-path>
<if>
<available file="${.java.src.dir}"/>
<then>
<mkdir dir="${.java.src.output}"/>
<apt
sourcepath="${java.sourcepath}"
srcdir="${.java.src.dir}"
includes="${.java.src.include}"
excludes="${.java.src.exclude}"
destdir="${.java.src.output}"
preprocessdir="${apt.src.output.dir}"
classpathref="java.classpath"
factorypathref="apt.factory.path"
options="${apt.options}"
compile="false"
memoryMaximumSize="1024m"/>
</then>
</if>
</for-each-java-src-path>
</then>
</if>
<for-each-java-src-path>
<if>
<available file="${.java.src.dir}"/>
<then>
<mkdir dir="${.java.src.output}"/>
<javac
sourcepath="${java.sourcepath}"
srcdir="${.java.src.dir}"
includes="${.java.src.include}"
excludes="${.java.src.exclude}"
destdir="${.java.src.output}"
classpathref="java.classpath"
debug="on"/>
</then>
</if>
</for-each-java-src-path>
<=========
<java classname="weblogic.ejbc"
failonerror="true"
fork="yes">
<classpath>
<pathelement location="${wl.home}/../modules/com.bea.core.xml.beaxmlbeans_2.1.0.0.jar"/>
<pathelement location="${patch.home}/weblogic_patch.jar"/>
<pathelement location="${wl.home}/server/lib/wlxbean.jar"/>
<pathelement location="${wl.home}/server/lib/weblogic.jar"/>
<path refid="java.classpath"/>
</classpath>
<arg value="-classpath"/>
<arg value="${java.outpath}"/>
<arg value="-compiler"/>
<arg value="/opt/jrmc/bin/javac"/>
<arg value="${apt.src.output.dir}"/>
<arg value="${apt.src.class.dir}"/>
</java>
=========>
</target>
Then I checked out my projects from CVS onto my Linux box, ran the ant build and ant stage tasks using the files generated by workshop with the tweaks above for my EJB project and the application successfully generated all of the necessary code and deployed without a problem. I hope this helps anyone else out there having a similar problem. The above changes in bold are the only changes I made...although, and I don't know if this makes adifference to you guys, but I also noticed now that Workshop asks if you'd like to export the workshop libraries into a workshop-lib directory...I chose to do this and have that directory available alongside the workshop.xml metadata file when running the build...
Good luck! 
Hi SSurapan,
The info that you have provided is very very helpful. I must thank you a lot for this. I was able to build the ejb files. Few things I noticed while doing build.
1. Ant gives a message that weblogic.appc should be used instead of weblogic.ejbc. Does it mean in WLP10.3 we should use weblogic.appc should be used. Do you have any idea around this.
2. my EJB methods throw exception called javax.ejb.ApplicationException, this is giving error. If I change it to Exception, build works. However, it builds fine with javax.ejb.ApplicationException declaration in EJB methods in Workshop 10.3 env.
3. Also, I noticed that compile.jsp=true, supplying this variable as part of ant build, is actually not reporting any jsp error. Have you noticed that.
Your reply is much awaited.
Regards,
JT 
Thanks.Worked for me as well. 
Hi,
It work well for me too.
That suggestion is really great. it really helps me to resolve my problem.
Thanks Again,
Kal. 
Hi Kalyan,
is this build script working for you?
I am facing the problem with the build script, will u help regarding this?
thanks
Ram 
Hi Ram,
Deftly I can help you please past your ant script so that I can help you on this issue.
Regards,
Kal. 
Hi Ram,
Even though now there is patch available for this issue.
and here is patch details.
fixed EJB midimport issue in bug:8309004.
init:
[mdimport] Could not resolve apt factory path entry:
[mdimport] KIND: PLUGIN
[mdimport] ID: com.bea.workshop.wls.ejb.core
Request you to open a Workshop SR with weblogic support and ask them to give this patch details.
Regards,
Kal.

Not able to add <autotype> ANT Task

Hi there,
I am woking with XML Webservices.
In my build.xml.. I have...
<autotypea javaComponents="${webss.service.package}.${webss.service.name}"
destDir="${webss.output.dir}/WEB-INF/classes"
packageName="${webss.service.package}">
<classpath>
<pathelement location="${webss.output.dir}/WEB-INF/classes" />
<pathelement
location="${webss.output.dir}/WEB-INF/lib/${webss.service.name}.jar" />
<pathelement path="${java.class.path}" />
</classpath>
</autotype>
But when I try to run this ANT, I am getting following error...
------------------------------------
BUILD FAILED
file:C:/Siva%20Prasad/Projects/HelloWebService/build-webss.xml:10: Could not cre
ate task or type of type: autotype.
Ant could not find the task or a class this task relies upon.
This is common and has a number of causes; the usual
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file:
- You have misspelt 'autotype'.
Fix: check your spelling.
- The task needs an external JAR file to execute
and this is not found at the right place in the classpath.
Fix: check the documentation for dependencies.
Fix: declare the task.
- The task is an Ant optional task and optional.jar is absent
Fix: look for optional.jar in ANT_HOME/lib, download if needed
- The task was not built into optional.jar as dependent
libraries were not found at build time.
Fix: look in the JAR to verify, then rebuild with the needed
libraries, or download a release version from apache.org
- The build file was written for a later version of Ant
Fix: upgrade to at least the latest release version of Ant
- The task is not an Ant core or optional task
and needs to be declared using <taskdef>.
Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath
Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.
Total time: 1 second
------------------------------------
Even I tryed the following......
hmm it looks like the ant build file in the tutorial was designed to be run with WebLogic's distribution of ant. I now have the build file buildig switched to WebLogics ant dist and created some directories for the buiild file which it was too dumb to create for itself. I am curious though how I would build the file using a normal distribution of ant anyone know?
Try this may work for u...
Open a DOS window,
1. after created the new domain, you must run setEnv.cmd first.
2. add 2 lines in that build.xml.
<target name="clean" description="delete generated stuff">
<delete dir="${output_dir}" />
<delete dir="${client_classes}" />
<delete dir="${temp_dir}/wlws/config/mydomain/applications" />
</target>
<target name="setup" description="create output directories" >
<mkdir dir="${server_classes}" />
<mkdir dir="${client_classes}" />
<mkdir dir="${temp_dir}/wlws/config/mydomain/applications" />
</target>
3. after you type c:${tutorial_root}/sampleXXX/>ant, everything should OK
Pls help me out.
Thanks.
Siva Prasad

Doubt: Java Task B2BCommandLineUtility-import operation "outputproperty"

<target name="importutility" description="Create Deployment Pre-Requisites">
          <property file="${jndi.properties}" />
          <echo message=" ==================================================================="></echo>
          <echo message="Importing the agreement into the soa server ${java.naming.provider.url}"></echo>
          <echo message=" ==================================================================="></echo>
          <echo>args=${args1}</echo>
               <!--Outcome of this Java task will be saved to build.log property-->
          *<java classname="oracle.tip.b2b.utility.B2BCommandLineUtility" classpathref="weblogic.classpath" fork="yes" outputproperty="build.log">*
               <arg line="${args1}" />
               <syspropertyset id="idsps" refid="${sysProp}"/>
          </java>
          <antcall target="importstatus">
               <param name="statusmsg" value="${build.log}" />
          </antcall>
     </target>
In the above mentioned ant target the java task is giving back the outputproperty as build.log (Outcome of the task). I have a doubt that, If the return of this Java task is writing any build.log file in the system. Or is simply using the memory. Also I am not able to find out the exact location of the file if its getting written, although I tried searching it every possible place in my system.
Can anybody plz clarify this!!!!
Thanks in Advance!!!
Ravi Prakash 
Hi Ravi,
From http://ant.apache.org/manual/Tasks/java.html -
outputproperty - The name of a property in which the output of the command should be stored. Unless the error stream is redirected to a separate file or stream, this property will include the error output.For capturing the log of an ant task, you may use ant recorder task -
http://ant.apache.org/manual/Tasks/recorder.html
Regards,
Anuj 
HI Anuj,
Thanks. We can use recorder, I have tried that too. But here in the ant file I have posted also works fine.
<java classname="oracle.tip.b2b.utility.B2BCommandLineUtility" classpathref="weblogic.classpath" fork="yes" outputproperty="*custom_msg*">
That is just a property we are creating and assigning value to it at run time. It is not writing any file, just trapping the outcome of the Java Task. I tried changing the name and it worked fine for me.
Thanks,
Ravi Prakash

taskdef class  weblogic.ant.taskdef.management.WLdeployn  cannot be found.

Hi,
we are deploying war in weblogic server but getting error like taskdef class  weblogic.ant.taskdef.management.WLdeployn  cannot be found.*
we are creating directory and copying required jars in to that directory and we referening that directory name in classpath of taskdef .
<!--property defined -->
<property name="wl_jar" value="${wllib}/weblogic.jar"/>
<!--copy jars into wllib directory -->
<target name="copylibs">
<mkdirdir="wllib"/>
<copyto dir="wllib" file="weblogic.jar" verbose="true" preservelastmodified="true" />
</target>
<!--weblogic taskdef for deploy war on weblogic server. -->
<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" >
<classpath >
<pathelement location="${wl_jar}"/>
</classpath>
</taskdef>
But getting taskdef class weblogic.ant.taskdef.management.WLdeployn cannot be found .
please give me a solution.
Thanks, 
Hi,
First execute the "$WLHOME/wlserver_10.3/server/bin/setWLSEnv.sh" to set the runtime variables.
To complete te ant task, write a shell script,
For Unix
-----------------------
export WLHOME=/data/servers/weblogicServer10.3.6.0/
source $WLHOME/wlserver_10.3/server/bin/setWLSEnv.sh
and finally execute the ant task.
For Windows
set WLHOME=c:\weblogicServer10.3.6.0
source %WLHOME%\wlserver_10.3\server\bin\setWLSEnv.sh
and finally execute the ant task. 
Hi,
Again we are getting error like java.lang.NoClassDefFound weblogic/util/debug could not found.
Thanks, 
Hi,
instead of adding setWLSenv.cmd file.
I would say include domain setDomainEnv.sh or cmd file within your domain.
This should help you.
Regards,
Kal 
Hi
This error "java.lang.NoClassDefFound weblogic/util/debug" kind of looks familiar while running some standalone Java client programs that refer to stuff deployed on Weblogic. The ideal way to fix is generate wlfullclient.jar and add that in the classpath. Adding or calling setDomainEnv.sh (.cmd) will also work, but try using this wlfullclient approach also. The below post have the links that has all the details.
Re: Corrupted JAR:C:\workspace\weblogic.jar
Thanks
Ravi Jegga

Categories

Resources