CLASSPATH Name
how do we set the classpath name for a package?
i have a folder that contains .jar file called mail, in the import section i type import javax.mail.*; but it states that package not found, i know i have to set the pathname of the package and i even know how to set it, D:> set CLASSPATH=Program Files;jdk1.3.1;javamail;mail.jar; but i dun know where to put this code, please any help will be appreciated
asrar
What window are you using? In windows 2000 you can set classpath:
Start -> Setting -> Control Panel -> System ->Advanced -> Environment variables ->Click system variables new...name variable CLASSPATH and give it proper path value eg C:\java\mail\mail.jar;
Similar Messages
-
I copy ant code from http://middlewaremagic.com/weblogic/?p=2504 and change it as follow. I use weblogic 10.3.4
New datasources can be created. However, the JNDI name is not complete. It doesn't contain jdbc/
<?xml version="1.0" ?>
<project name="deploy" default="makeDataSource" basedir=".">
<property name="wls.username" value="weblogic" />
<property name="wls.password" value="welcome1" />
<property name="wls.url" value="t3://localhost:7001" />
<property name="wls.targetServer" value="AdminServer" />
<property name="wls.domainName" value="SOAdomain5" />
<!--<property name="database.url" value="jdbc:pointbase:server://localhost:9092/demo" />-->
<property name="database.url" value="jdbc:oracle:thin:@localhost:1521:orcl"/>
<!--<property name="database.driver" value="com.pointbase.jdbc.jdbcUniversalDriver" />-->
<property name="database.driver" value="oracle.jdbc.xa.client.OracleXADataSource"/>
<property name="database.user" value="dstest" />
<property name="database.password" value="dstest" />
<property name="weblogic.jar" value="E:\Jdeveloper_11115\wlserver_10.3\server\lib" />
<echo message="${weblogic.jar}\weblogic.jar"/>
<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
<classpath>
<pathelement location="${weblogic.jar}\weblogic.jar"/>
</classpath>
</taskdef>
<taskdef name="wlconfig" classname="weblogic.ant.taskdefs.management.WLConfig">
<classpath>
<pathelement location="${weblogic.jar}\weblogic.jar"/>
</classpath>
</taskdef>
<target name="makeDataSource">
<wlconfig username="${wls.username}" password="${wls.password}" url="${wls.url}">
<query domain="${wls.domainName}" type="Server" name="${wls.targetServer}" property="x" />
<create type="JDBCConnectionPool" name="TestDS">
<set attribute="CapacityIncrement" value="1"/>
<set attribute="DriverName" value="${database.driver}"/>
<set attribute="InitialCapacity" value="1"/>
<set attribute="MaxCapacity" value="10"/>
<set attribute="Password" value="${database.password}"/>
<set attribute="Properties" value="user=${database.user}"/>
<set attribute="RefreshMinutes" value="0"/>
<set attribute="ShrinkPeriodMinutes" value="15"/>
<set attribute="ShrinkingEnabled" value="true"/>
<set attribute="TestConnectionsOnRelease" value="false"/>
<set attribute="TestConnectionsOnReserve" value="true"/>
<set attribute="TestTableName" value="SYSTABLES"/>
<set attribute="URL" value="${database.url}"/>
<set attribute="Targets" value="${x}" />
</create>
<create type="JDBCDataSource" name="TestDS" >
<set attribute="JNDIName" value="jdbc/TestDS"/>
<set attribute="PoolName" value="TestDS"/>
<set attribute="Targets" value="${x}" />
</create>
</wlconfig>
</target>
</project>Thank you. But I get errors. Could you help me to change the code?
Java_home in my computer is C:\Program Files\Java\jdk1.6.0_24
The password and username as well as url are correct. And I can login to wlst using connect('weblogic', 'welcome1', 't3://localhost:7001') in command line
How to start CompatabilityMBeanServer?
------------------------------------------error-----------------------------------
Buildfile: C:\JdevWorkspace\ANTdatasource\Project3\build.xml
[echo] ---13---
[echo] ---16---
makeDataSource:
[echo] ---18---
[wlst] ---1---
[wlst] Connecting to t3://localhost:7001 with userid weblogic ...
[wlst]
[wlst] The CompatabilityMBeanServer is not initialized properly.
[wlst] This might happen if the CompatabilityMBeanServer is
[wlst] disabled via the JMXMBean.
[wlst]
[wlst] To view the root cause exception use dumpStack()
[wlst]
[wlst] WLST detected that the RuntimeMBeanServer is not enabled. This
[wlst] might happen if the RuntimeMBeanServer is disabled via the JMXMBean.
[wlst] Please ensure that this MBeanServer is enabled. Online WLST cannot
[wlst] function without this MBeanServer.
[wlst] Exception in thread "main" java.lang.IllegalStateException: Traceback (innermost last):
[wlst] File "makeDS.py", line 2, in ?
[wlst] File "<iostream>", line 22, in connect
[wlst] File "<iostream>", line 646, in raiseWLSTException
[wlst] WLSTException: Error occured while performing connect : "Cannot connect to WLST."
[wlst] Use dumpStack() to view the full stacktrace
[wlst]
[wlst] at weblogic.management.scripting.WLSTInterpreterInvoker.printError(WLSTInterpreterInvoker.java:110)
[wlst] Traceback (innermost last):
[wlst] File "makeDS.py", line 2, in ?
[wlst] File "<iostream>", line 22, in connect
[wlst] File "<iostream>", line 646, in raiseWLSTException
[wlst] WLSTException: Error occured while performing connect : "Cannot connect to WLST."
[wlst] Use dumpStack() to view the full stacktrace
[wlst]
[wlst] at weblogic.management.scripting.WLSTInterpreterInvoker.executePyScript(WLSTInterpreterInvoker.java:103)
[wlst] at weblogic.management.scripting.WLSTInterpreterInvoker.main(WLSTInterpreterInvoker.java:27)
BUILD FAILED
C:\JdevWorkspace\ANTdatasource\Project3\build.xml:21: Java returned: 1
Total time: 19 seconds
<?xml version="1.0" encoding="UTF-8" ?>
<project name="makeDataSource" default="makeDataSource" basedir=".">
<path id="wl.classpath">
<fileset dir="E:\Jdeveloper_11115\wlserver_10.3\server\lib">
<include name="*.jar"/>
</fileset>
<!--
<fileset dir="E:\Jdeveloper_11115\modules">
<include name="*.jar"/>
</fileset> -->
</path>
<echo message="---13---"/>
<taskdef classpathref="wl.classpath" name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask" >
</taskdef>
<echo message="---16---"/>
<target name="makeDataSource">
<echo message="---18---"/>
<!--<wlst debug="false" failOnError="true" executeScriptBeforeFile="true" fileName="makeDS.py" classpathref="wl.classpath">-->
<wlst fileName="makeDS.py" debug="false" failOnError="true" executeScriptBeforeFile="true" classpathref="wl.classpath">
<!--<script>
print 'In the target loop'
connect('weblogic','welcome1','t3://localhost:7001')
</script>-->
</wlst>
<echo message="---21---"/>
</target>
</project>
print '---1---'
connect("weblogic","welcome1", "t3://localhost:7001")
edit()
print '---4---'
# Change these names as necessary
dsname="TestDS"
server="AdminServer"
cd("Servers/"+server)
target=cmo
cd("../..")
startEdit()
# start creation
print 'Creating JDBCSystemResource with name '+dsname
jdbcSR = create(dsname,"JDBCSystemResource")
theJDBCResource = jdbcSR.getJDBCResource()
theJDBCResource.setName( dsname )
connectionPoolParams = theJDBCResource.getJDBCConnectionPoolParams()
connectionPoolParams.setConnectionReserveTimeoutSeconds(25)
connectionPoolParams.setMaxCapacity(100)
connectionPoolParams.setTestTableName("dual")
dsParams = theJDBCResource.getJDBCDataSourceParams()
dsParams.addJNDIName("jdbc/TestDs")
driverParams = theJDBCResource.getJDBCDriverParams()
driverParams.setUrl("jdbc:oracle:thin:@localhost:1521:ORCL")
driverParams.setDriverName("oracle.jdbc.driver.OracleDriver")
driverParams.setPassword("welcome1")
driverProperties = driverParams.getProperties()
proper = driverProperties.createProperty("user")
proper.setValue("hr")
jdbcSR.addTarget(target)
save()
activate(block="true")
print 'Done configuring the data source' -
Setting Custom CLASSPATH in BPEL
I want to know How to add classpath to BPEL PM. we have proprietory java packages and jar files( there are huge) that are located in a different location but the same middleware linux server where BPEL s installed. I have developed BPEL proceess (which is using bplex:java code and imports proprietory packages) in Jdeveloper which compiles fine as I have added all these packages/jar files to project library.
However, when I deploy the bpel process to server. It is unable to find the classpath. I came to know that I have 2 options fo rthis to work
1. Add all these jars and packages in the BPEL-INF dir
2. Copy all the Jars and packages to orabpel/system/classes in server
Option 1 is very inefficient as these jars/libs are huge. we have many BPEL processes to develop
Option 2 is also not a viable solution as there will be duplicate copies of classes and there is lot of maintenance involved to sync there custom jars/libs.
Is there any I can include our proprietory classes in BPEL global classpath?
Please help. We are running on BPEL 10.1.2.0.2What about the documentation:
http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/appx_ref.htm#CIABBDAE
1. Add the files into the BPEL client bpelc CLASSPATH:
1. Open SOA_Oracle_Home\bpel\bin\obsetenv.bat. For UNIX operating systems, the file is named obsetenv.sh.
2. Edit the file as follows:
@REM set MY_CLASSES_DIR=%CLASSPATH%
set MY_CLASSES_DIR=%OB_HOME%\system\classes
set MY_CLASSPATH=%MY_CLASSES_DIR%;your_jar_files
2. Add the files into the Oracle BPEL Server bpelc CLASSPATH in either of two ways:
1. Open SOA_Oracle_Home\bpel\domains\default\config\domain.xml (if the default domain is being used).
2. Edit the file as follows:
<property id="bpelcClasspath">
<name>BPEL process compiler classpath</name>
<value>your_jar_files;...</value>
<comment>...</comment>
</property>
3. Restart Oracle BPEL Server.
or
1. Go to Manage BPEL Domain > Configuration on Oracle BPEL Control.
2. Go to the bpelcClasspath property.
3. Enter your_jar_files; in the Value field.
4. Click Apply.
5. Restart Oracle BPEL Server.
3. Add the files into the Oracle Application Server CLASSPATH:
1. Open application.xml, which is in SOA_Oracle_Home\j2ee\home\config\
2. Edit the file as follows:
<library path=your_jar_files/>
<library path="C:\Ora_Home\bpel\system\classes"/> -
Classpath Changes for WebLogic 6.0
Hi.
WebLogic 6.0 requires jdk1.3, which upon installation will modify the classpath
of my machine. There are applications running on the same machine which requires
the older version of jdk (specifically jdk 1.1.7 or jdk1.2). So modifying the
classpath may cause some problems with the other apps.
Is there any way to avoid this or a work-around for this?
thanks.
SelenaWe didn't observe that in our practice. Whether you use NT, W2K or Solaris, you
only need define weblogic classpath (name it as anything you like, for example,
wl_classpath) for weblogic in your startWeblogic script and append all classes
explicitly to this classpath. When you invoke your server, remember to use full
path of JDK java command and pass your classpath (wl_classpath here) as argument
of -classpath.
"Selena" <[email protected]> wrote:
>
Hi.
WebLogic 6.0 requires jdk1.3, which upon installation will modify the
classpath
of my machine. There are applications running on the same machine which
requires
the older version of jdk (specifically jdk 1.1.7 or jdk1.2). So modifying
the
classpath may cause some problems with the other apps.
Is there any way to avoid this or a work-around for this?
thanks.
Selena -
Problem in creating ear file using weblogic 10....Pls help
Hi,
part of build.batwhere error occure::
@echo off
echo.
echo -------------Hub 2.0 Core Build System-------------
echo.
echo.
@set JAVA_HOME=C:\Program Files\Java\jdk1.5.0_13
set JAVA_HOME=C:\Program Files\Java\jdk1.5.0_13
set PATH=C:\Program Files\Java\jdk1.5.0_13\bin;%PATH%
if "%JAVA_HOME%"=="" goto no_java_home
if "%ANT_HOME%"=="" goto no_ant_home
:anthomeset
echo Using Ant at %ANT_HOME%
goto dobuild
:no_ant_home
set ANT_HOME=C:\ant1.6.1
set ANT_OPTS=-Xms1024m -Xmx2048m
set CLEAR_ANT_HOME=yes
echo ANT_HOME was not set - setting to %ANT_HOME% for current build
goto dobuild
:dobuild
set BUILD_CLASSPATH=D:\Projects\Quadriga\Hub20\HUB\buildscripts\core\build\classes;D:\Projects\Quadriga\Hub20\HUB\buildscripts\estate\build\classes;D:\Projects\Quadriga\Hub20\HUB\buildscripts\application\build\classes;D:\Projects\Quadriga\Hub20\HUB\buildscripts\application\dist;
set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar;C:\bea\wlserver_10.0\server\lib\**/*.jar;D:\projects\Quadriga\Hub20\HUB\lib\bea.weblogic\**/*.jar;
echo.
echo CLASSPATH=%CLASSPATH%
call %ANT_HOME%\bin\ant.bat -debug -buildfile buildscripts\application\build.xml %1
if "%CLEAR_ANT_HOME%"=="yes" goto clear_ant
goto end
:no_java_home
echo Please set the environment variable JAVA_HOME on your box.
goto end
:clear_ant
set ANT_HOME=
goto end
:end
set CLEAR_ANT_HOME=
the error in console is:
The ' characters around the executable and arguments are
not part of the command.
[java] Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/
utils/compiler/Tool
[java] at java.lang.ClassLoader.defineClass1(Native Method)
[java] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
[java] at java.security.SecureClassLoader.defineClass(SecureClassLoader
.java:124)
[java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[java] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[java] at weblogic.appc.main(appc.java:14)
[ant] Exiting D:\projects\Quadriga\Hub20\HUB\buildscripts\core\build.xml.
BUILD FAILED
D:\projects\Quadriga\Hub20\HUB\buildscripts\application\build.xml:104: The follo
wing error occurred while executing this line:
D:\projects\Quadriga\Hub20\HUB\buildscripts\core\build.xml:447: Java returned: 1
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.java:539)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: D:\projects\Quadriga\Hub20\HUB\buildscripts\core\build.xml:447: Java
returned: 1
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
... 12 more
--- Nested Exception ---
D:\projects\Quadriga\Hub20\HUB\buildscripts\core\build.xml:447: Java returned: 1
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Total time: 37 seconds
Pls help me.....
Thanks,
AnindyahI,
I ll send the bild.xml file:
part of build.xml in 1st file:
<target name="build-core" depends="init" unless="core.nobuild">
<ant antfile="build.xml" dir="${buildscripts.home}/core" target="build-deployment-units" inheritAll="false"/>
</target>
part of build.xml of 2nd file:
<!-- ================================================================= -->
<!-- classpath settings -->
<!-- ================================================================= -->
<path id="lido.classpath">
<fileset dir="${lib}/lido">
<include name="*.jar"/>
</fileset>
</path>
<path id="compile.classpath">
<pathelement location="${lib}/jakarta.apache/log4j-1.2.9.jar"/>
<pathelement location="${lib}/jakarta.apache/jakarta-regexp-1.2.jar"/>
<pathelement location="${lib}/bea.weblogic/webservices.jar"/>
<pathelement location="${lib}/bea.weblogic/weblogic.jar"/>
<pathelement location="${lib}/bea.weblogic/wls-api.jar"/>
<pathelement location="${lib}/bea.weblogic/api.jar"/>
<pathelement location="${lib}/bea.weblogic/wljmsclient.jar"/>
<pathelement location="${lib}/bea.weblogic/wljmxclient.jar"/>
<pathelement location="${lib}/bea.weblogic/wlxbean.jar"/>
<pathelement location="${lib}/bea.weblogic/wlutil.jar"/>
<pathelement location="${lib}/bea.weblogic/xquery.jar"/>
<pathelement location="${lib}/bea.weblogic/xqrl.jar"/>
<pathelement location="${lib}/bea.weblogic/xmlx.jar"/>
<pathelement location="${lib}/bea.weblogic/wsse.jar"/>
<pathelement location="${lib}/bea.weblogic/wseeclient.jar"/>
<pathelement location="${lib}/bea.weblogic/weblogic-container-binding.jar"/>
<pathelement location="${lib}/bea.weblogic/classes12.zip"/>
<pathelement location="${lib}/jdom.org/jdom.jar"/>
<pathelement location="${lib}/java.sun/jmxtools.jar"/>
<pathelement location="${lib}/mindterm/mindterm.jar"/>
<pathelement location="${lib}/java.sun/jsse1.0.3/jcert.jar"/>
<pathelement location="${lib}/java.sun/jsse1.0.3/jnet.jar"/>
<pathelement location="${lib}/java.sun/jsse1.0.3/jsse.jar"/>
<pathelement location="${lib}/mindterm/Qmindterm.jar"/>
<pathelement location="${lib}/mindterm/java40.jar"/>
<pathelement location="${lib}/mindterm/jtStubs.jar"/>
<pathelement location="${lib}/junitee/junit.jar"/>
<pathelement location="${lib}/junitee/junitee.jar"/>
<pathelement location="${lib}/enterprisedt/ftp-1.2.2/ftp.jar"/>
<pathelement location="${lib}/jakarta-commons/commons-collections-3.1.jar"/>
<pathelement location="${lib}/xml-writer-0.2.jar"/>
<fileset dir="${lib}/jaxb">
<include name="*.jar"/>
</fileset>
<path refid="lido.classpath"/>
</path>
<path id="built.classpath">
<pathelement location="${classes}"/>
<path refid="compile.classpath"/>
</path>
<path id="jdos.classpath">
<pathelement location="${classes}"/>
</path>
<taskdef classpathref="compile.classpath" name="wlappc" classname="weblogic.ant.taskdefs.j2ee.Appc"/>
<java classname="weblogic.appc" fork="yes" failonerror="yes">
<sysproperty key="weblogic.home" value="C:/bea/wlserver_10.0/server"/>
<arg line="-keepgenerated -compiler javac ${dist}/${wl-entity-jarfile}.jar"/>
<classpath>
<path refid="built.classpath"/>
</classpath>
</java>
eroor in console now:
[java] Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/
descriptor/BeanUpdateListener
[java] at java.lang.ClassLoader.defineClass1(Native Method)
[java] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
[java] at java.security.SecureClassLoader.defineClass(SecureClassLoader
.java:124)
[java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[java] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:164)
[java] at weblogic.logging.MessageLogger.<clinit>(MessageLogger.java:45
[java] at weblogic.logging.WLMessageLogger.log(WLMessageLogger.java:51)
[java] at weblogic.j2ee.J2EELogger.logAppcFailedWithError(J2EELogger.ja
va:5257)
[java] at weblogic.application.compiler.Appc.runBody(Appc.java:174)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
[java] at weblogic.application.compiler.Appc.main(Appc.java:183)
[java] at weblogic.appc.main(appc.java:14)
[ant] Exiting D:\projects\Quadriga\Hub20\HUB\buildscripts\core\build.xml.
BUILD FAILED
D:\projects\Quadriga\Hub20\HUB\buildscripts\application\build.xml:103: Following
error occured while executing this line
D:\projects\Quadriga\Hub20\HUB\buildscripts\core\build.xml:460: Java returned: 1
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.java:537)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:385)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
Caused by: D:\projects\Quadriga\Hub20\HUB\buildscripts\core\build.xml:460: Java
returned: 1
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:80)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
... 10 more
--- Nested Exception ---
D:\projects\Quadriga\Hub20\HUB\buildscripts\core\build.xml:460: Java returned: 1
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:80)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
Total time: 14 seconds
pls reply... -
Just a primitive Message Driven Bean doen not work!
I have a simple Message EJB and can't make it recive messages. For two days I can't
get what's wrong - I've read already three tutorials, but... still nothing. No
exceptions... but no messages.
Here is it.
all files are in attach too...
Thank you!!!
The bean:
package JMSTest;
import javax.ejb.*;
import javax.jms.*;
import weblogic.ejb.*;
import EntityTest.TestEntHome;
import EntityTest.TestEntLocal;
import javax.naming.InitialContext;
import javax.naming.NamingException;
* @ejbgen:message-driven initial-beans-in-free-pool="1" transaction-type="Container"
clients-on-same-server="false"
* ejb-name = TestJMS
* destination-jndi-name = jmstest
* destination-type = javax.jms.Queue
* @ejbgen:ejb-local-ref
* name="ejb/testlink" local="EntityTest.TestEntLocal" link="testentlink"
* home="EntityTest.TestEntLocalHome"
* type="Entity"
* jndi-name="ent.TestEntLocalHome"
public class TestJMS
extends GenericMessageDrivenBean
implements MessageDrivenBean, MessageListener
private TestEntHome teh;
public void ejbCreate() {
try {
System.out.println("in create");
javax.naming.Context ic = new InitialContext();
teh = (TestEntHome)ic.lookup("ejb.TestEntLocalHome");
catch(NamingException ne) {
System.out.println("Encountered the following naming exception: "
+ ne.getMessage());
public void onMessage(Message msg) {
System.out.println("in onMessage");
MapMessage tmsg = (MapMessage)msg;
try{
TestEntLocal tel = teh.create(tmsg.getString("message"));
} catch(JMSException e){
e.printStackTrace();
} catch(CreateException e){
e.printStackTrace();
// Your code here
And The Client. I run client in Idea - not in workshop...:
import javax.naming.*;
import javax.ejb.CreateException;
import javax.ejb.EJBException;
import javax.ejb.FinderException;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.jms.*;
import java.util.Hashtable;
import weblogic.jms.client.JMSConnectionFactory;
import weblogic.jms.client.JMSSession;
import weblogic.jms.client.JMSConnection;
public class Main
private static QueueConnectionFactory factory;
private static Queue queue;
private static Context getInitialContext() throws NamingException {
Hashtable environment = new Hashtable();
environment.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
// environment.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
environment.put(Context.PROVIDER_URL, "t3://localhost:7001");
return new InitialContext(environment);
public static void main(String argsp[]){
try {
javax.naming.Context ic = getInitialContext();
factory = (JMSConnectionFactory) ic.lookup("QueueFactory");
queue = (Queue) ic.lookup("jmstest");
catch (NamingException ne) {
throw new EJBException(ne);
try {
//send a message
QueueConnection connect = factory.createQueueConnection();
QueueSession session = connect.createQueueSession(true,Session.AUTO_ACKNOWLEDGE);
QueueSender sender = session.createSender(queue);
MapMessage recordingMsg = session.createMapMessage();
recordingMsg.setString("message", "Im here");
connect.start();
sender.send(recordingMsg);
connect.close();
catch(JMSException ne) {
throw new EJBException(ne);
/* catch(CreateException ce) {
throw new EJBException(ce);
catch(FinderException fe) {
throw new EJBException(fe);
With classpath:
<root type="composite">
<root type="output" />
<root type="jdk" rootType="classPath" name="BEA java version "1.4.1_05""
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/avalon-framework.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/batik.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/certificate.war!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/debugging.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/EccpressoAsn1.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/EccpressoCore.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/EccpressoJcae.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/ejbgen.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/fop.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/jconn2.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/jConnect.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/JDIProxy.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/knex.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/mssqlserver4v65.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/ojdbc14.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/QueueTransportEJB.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/uddi.war!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/uddiexplorer.war!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/webserviceclient+ssl.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/webserviceclient+ssl_pj.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/webserviceclient.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wl-j2ee-client.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlai-control.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlcipher.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlclient.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wldb2.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wleorb.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlepool.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wli.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlinformix.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wljmsclient.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wljtaclient.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wloracle.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlspy.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlsqlserver.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlsybase.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlutil.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlw-lang.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlxbean.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wsclient81.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/wsse.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/xbean.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/xbeansrc.zip!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/xmlstream.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/xmlx.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/xqrl.jar!/"
/>
<root type="simple" url="jar://D:/bea/weblogic81/server/lib/weblogic.jar!/"
/>
<root type="simple" url="jar://D:/bea/user_projects/applications/Test4JMS/JMSandEntity.jar!/"
/>
</root>
</classPath>
[tests.rar]
Hi,
Your sender is transacted!
But the sender client never calls
"session.commit()" - which is required
to commit the work for transacted sessions.
So the sender message never gets sent.
If you don't want a transacted session,
pass "false" to "createQueueSession()" rather
than "true" and the send
will occur immediately.
Tom
P.S. For more info on transacted
sessions see the JMS FAQ and the
JMS Programmer's Guide.
Mikler wrote:
> I have a simple Message EJB and can't make it recive messages. For two days I can't
> get what's wrong - I've read already three tutorials, but... still nothing. No
> exceptions... but no messages.
> Here is it.
>
>
>
> all files are in attach too...
>
> Thank you!!!
>
> The bean:
>
> package JMSTest;
>
> import javax.ejb.*;
> import javax.jms.*;
> import weblogic.ejb.*;
>
> import EntityTest.TestEntHome;
> import EntityTest.TestEntLocal;
> import javax.naming.InitialContext;
> import javax.naming.NamingException;
>
> /**
> * @ejbgen:message-driven initial-beans-in-free-pool="1" transaction-type="Container"
> clients-on-same-server="false"
> * ejb-name = TestJMS
> * destination-jndi-name = jmstest
> * destination-type = javax.jms.Queue
> *
> * @ejbgen:ejb-local-ref
> * name="ejb/testlink" local="EntityTest.TestEntLocal" link="testentlink"
> * home="EntityTest.TestEntLocalHome"
> * type="Entity"
> * jndi-name="ent.TestEntLocalHome"
> *
> *
> */
> public class TestJMS
> extends GenericMessageDrivenBean
> implements MessageDrivenBean, MessageListener
> {
>
> private TestEntHome teh;
>
> public void ejbCreate() {
> try {
> System.out.println("in create");
> javax.naming.Context ic = new InitialContext();
> teh = (TestEntHome)ic.lookup("ejb.TestEntLocalHome");
>
> }
> catch(NamingException ne) {
> System.out.println("Encountered the following naming exception: "
> + ne.getMessage());
> }
> }
>
> public void onMessage(Message msg) {
> System.out.println("in onMessage");
> MapMessage tmsg = (MapMessage)msg;
> try{
> TestEntLocal tel = teh.create(tmsg.getString("message"));
> } catch(JMSException e){
> e.printStackTrace();
> } catch(CreateException e){
> e.printStackTrace();
> }
> // Your code here
> }
> }
>
>
> And The Client. I run client in Idea - not in workshop...:
>
>
> import javax.naming.*;
> import javax.ejb.CreateException;
> import javax.ejb.EJBException;
> import javax.ejb.FinderException;
> import javax.naming.InitialContext;
> import javax.naming.NamingException;
> import javax.jms.*;
> import java.util.Hashtable;
>
> import weblogic.jms.client.JMSConnectionFactory;
> import weblogic.jms.client.JMSSession;
> import weblogic.jms.client.JMSConnection;
>
> public class Main
> {
> private static QueueConnectionFactory factory;
> private static Queue queue;
>
> private static Context getInitialContext() throws NamingException {
> Hashtable environment = new Hashtable();
>
> environment.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
> // environment.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
> environment.put(Context.PROVIDER_URL, "t3://localhost:7001");
>
> return new InitialContext(environment);
> }
>
> public static void main(String argsp[]){
> try {
> javax.naming.Context ic = getInitialContext();
> factory = (JMSConnectionFactory) ic.lookup("QueueFactory");
> queue = (Queue) ic.lookup("jmstest");
> }
> catch (NamingException ne) {
> throw new EJBException(ne);
> }
> try {
> //send a message
> QueueConnection connect = factory.createQueueConnection();
> QueueSession session = connect.createQueueSession(true,Session.AUTO_ACKNOWLEDGE);
> QueueSender sender = session.createSender(queue);
> MapMessage recordingMsg = session.createMapMessage();
> recordingMsg.setString("message", "Im here");
> connect.start();
> sender.send(recordingMsg);
> connect.close();
> }
> catch(JMSException ne) {
> throw new EJBException(ne);
> }
> /* catch(CreateException ce) {
> throw new EJBException(ce);
> }
> catch(FinderException fe) {
> throw new EJBException(fe);
> }
> */
>
> }
> }
> /*
> With classpath:
> <root type="composite">
> <root type="output" />
> <root type="jdk" rootType="classPath" name="BEA java version "1.4.1_05""
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/avalon-framework.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/batik.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/certificate.war!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/debugging.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/EccpressoAsn1.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/EccpressoCore.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/EccpressoJcae.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/ejbgen.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/fop.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/jconn2.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/jConnect.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/JDIProxy.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/knex.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/mssqlserver4v65.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/ojdbc14.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/QueueTransportEJB.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/uddi.war!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/uddiexplorer.war!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/webserviceclient+ssl.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/webserviceclient+ssl_pj.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/webserviceclient.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wl-j2ee-client.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlai-control.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlcipher.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlclient.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wldb2.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wleorb.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlepool.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wli.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlinformix.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wljmsclient.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wljtaclient.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wloracle.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlspy.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlsqlserver.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlsybase.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlutil.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlw-lang.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlxbean.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wsclient81.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wsse.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/xbean.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/xbeansrc.zip!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/xmlstream.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/xmlx.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/xqrl.jar!/"
> />
> <root type="simple" url="jar://D:/bea/weblogic81/server/lib/weblogic.jar!/"
> />
> <root type="simple" url="jar://D:/bea/user_projects/applications/Test4JMS/JMSandEntity.jar!/"
> />
> </root>
> </classPath>
> */
-
Use Admin Server to Manage multiple managed servers through Nodemanager
hi guys,
Iam trying to simulate the production environment for a Weblogic based application.
I want to use one Admin Server(adminServer) to control 2 managed servers(weblogic,Bizarro).
adminServer & weblogic sit on windows machine (prod1) and Bizarro sits on OakStage(unix
machine).
I have nodeManagers running on both machines. They were started using the default
start scripts that were provided.
I can sucessfully start&stop instance weblogic (the instance that resides on the
same machine as adminServer). When I try to start Bizarro i get the following
error in the console
<Oct 18, 2002 7:59:22 AM PDT> <Error> <NodeManager> <Could not start server 'Bizarro'
via Node Manager - reason: '[SecureCommandInvoker: Could not create a socket to
the NodeManager running on host '192.168.0.97:5555' to execute command 'online
Bizarro', reason: Operation timed out: connect. Ensure that the NodeManager on
host '192.168.0.97' is configured to listen on port '5555' and that it is actively
listening]'>
but iam sure node manager is running on port 5555 on that box.
Here is my config.xml file. Is there something Iam missing?
I have also modified the hosts file to only have the ip address of the admin server.
<?xml version="1.0" encoding="UTF-8"?>
<!--If your domain is active, please do not edit the config.xml file. Any changes
made to that file while the domain is active will not have any effect on the domain's
configuration and are likely to be lost. If your domain is inactive, you may edit
this file with an XML editor. If you do so, please refer to the BEA Weblogic Server
Configuration Reference documentation available from http://edocs.bea.com/wls/docs61/reference.html.
In general, we recommend that changes to your configuration file be made through
the Administration Console.-->
<Domain Name="adminDomain">
<Security Name="adminDomain" PasswordPolicy="wl_default_password_policy" Realm="wl_default_realm"/>
<PasswordPolicy Name="wl_default_password_policy"/>
<FileRealm Name="wl_default_file_realm"/>
<StartupClass ClassName="com.ias.hub.weblogic.WeblogicStartup" Name="hubStartup"
Targets="weblogic"/>
<CustomRealm ConfigurationData="user.filter=(&(uid=%u)(objectclass=person));user.dn=ou=people,
o=beasys.com;server.principal=uid=admin, ou=Administrators, ou=TopologyManagement,
o=NetscapeRoot;membership.filter=(&(uniquemember=%M)(objectclass=groupofuniquenames));group.filter=(&(cn=%g)(objectclass=groupofuniquenames));server.host=ldapserver.example.com;group.dn=ou=groups,
o=beasys.com" Name="defaultLDAPRealmForNetscapeDirectoryServer" Notes="This is
provided as an example. Before enabling this Realm, you must edit the configuration
parameters as appropriate for your environment." Password="{3DES}CqUY0ZB2q6DOFOH3DpKGnQ=="
RealmClassName="weblogic.security.ldaprealmv2.LDAPRealm"/>
<Server ListenPort="9000" Machine="Prod1" Name="weblogic" StdoutDebugEnabled="true"
StdoutSeverityLevel="64">
<ServerStart ClassPath="my correct claspath" Name="weblogic" OutputFile="weblogic.log"/>
<SSL ListenPort="9001" Name="weblogic"/>
<ServerDebug Name="weblogic"/>
<KernelDebug Name="weblogic"/>
<Log FileName="weblogic.log" Name="weblogic"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<WebServer LogFileName="./config/adminDomain/logs/access.log" LoggingEnabled="true"
Name="weblogic"/>
</Server>
<JDBCConnectionPool CapacityIncrement="2" DriverName="weblogic.jdbc.oci.Driver"
InitialCapacity="15" LoginDelaySeconds="1" MaxCapacity="15" Name="IasPool" Properties="user=stage2;password=******;server=ORCL_STAGE.INTERASSET.COM"
RefreshMinutes="25" Targets="weblogic" TestTableName="DUAL" URL="jdbc:weblogic
racle"/>
<SNMPAgent Name="adminDomain"/>
<Application Deployed="true" Name="certificate" Path=".\config\adminDomain\applications">
<WebAppComponent Name="certificate" Targets="adminServer" URI="certificate.war"/>
</Application>
<JDBCDataSource JNDIName="IAS_DATA_SOURCE" Name="IasDataSource" PoolName="IasPool"
Targets="weblogic"/>
<Application Deployed="true" Name="DefaultWebApp" Path=".\config\adminDomain\applications">
<WebAppComponent Name="DefaultWebApp" Targets="adminServer" URI="DefaultWebApp"/>
</Application>
<CustomRealm ConfigurationData="user.filter=(&(uid=%u)(objectclass=person));user.dn=ou=people,
dc=example, dc=com;server.principal=cn=Manager, dc=example, dc=com;membership.filter=(&(uniquemember=%M)(objectclass=groupofuniquenames));group.filter=(&(cn=%g)(objectclass=groupofuniquenames));server.host=ldapserver.example.com;group.dn=ou=groups,
dc=example, c=com" Name="defaultLDAPRealmForOpenLDAPDirectoryServices" Notes="This
is provided as an example. Before enabling this Realm, you must edit the configuration
parameters as appropriate for your environment." Password="{3DES}CqUY0ZB2q6DOFOH3DpKGnQ=="
RealmClassName="weblogic.security.ldaprealmv2.LDAPRealm"/>
<Machine Name="Prod1">
<NodeManager Name="Prod1"/>
</Machine>
<Application Deployed="true" Name="entity" Path=".\config\adminDomain\applications">
<EJBComponent Name="entity" Targets="weblogic" URI="entity.jar"/>
</Application>
<Application Deployed="true" Name="hub" Path=".\config\adminDomain\applications">
<WebAppComponent Name="hub" Targets="weblogic" URI="hub"/>
</Application>
<Server ListenAddress="192.168.0.97" ListenPort="7000" Machine="OakStage" Name="Bizarro">
<ServerStart ClassPath="my correct classpath" Name="Bizarro" OutputFile="bizarro.log"/>
<SSL Name="Bizarro"/>
<ServerDebug Name="Bizarro"/>
<KernelDebug Name="Bizarro"/>
<Log Name="Bizarro"/>
<WebServer Name="Bizarro"/>
</Server>
<Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
<ApplicationManager Name="adminDomain"/>
<CustomRealm ConfigurationData="server.host=ldapserver.example.com;membership.scope.depth=1;microsoft.membership.scope=sub;membership.filter=(|(&(memberobject=%M)(objectclass=memberof))(&(groupobject=%M)(objectclass=groupmemberof)));group.dn=ou=Groups,
o=ExampleMembershipDir;group.filter=(&(cn=%g)(objectclass=mgroup));server.principal=cn=Administrator,
ou=Members, o=ExampleMembershipDir;user.dn=ou=Members, o=ExampleMembershipDir;user.filter=(&(cn=%u)(objectclass=member))"
Name="defaultLDAPRealmForMicrosoftSiteServer" Notes="This is provided as an example.
Before enabling this Realm, you must edit the configuration parameters as appropriate
for your environment." Password="{3DES}CqUY0ZB2q6DOFOH3DpKGnQ==" RealmClassName="weblogic.security.ldaprealmv2.LDAPRealm"/>
<JTA Name="adminDomain"/>
<Server ListenPort="7000" Name="adminServer" NativeIOEnabled="true" TransactionLogFilePrefix="config/adminDomain/logs/">
<ServerStart Name="adminServer"/>
<Log FileName="config/adminDomain/logs/weblogic.log" Name="adminServer"/>
<ServerDebug Name="adminServer"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<KernelDebug Name="adminServer"/>
<WebServer DefaultWebApp="DefaultWebApp" LogFileName="./config/adminDomain/logs/access.log"
LoggingEnabled="true" Name="adminServer"/>
<SSL Enabled="true" ListenPort="7005" Name="adminServer" ServerCertificateChainFileName="config/adminDomain/ca.pem"
ServerCertificateFileName="config/adminDomain/democert.pem" ServerKeyFileName="config/adminDomain/demokey.pem"/>
</Server>
<UnixMachine Name="OakStage">
<NodeManager ListenAddress="192.168.0.97" Name="OakStage"/>
</UnixMachine>
<Log FileName="adminDomain.log" Name="adminDomain"/>
</Domain>
Thanks guys
regards
sydCan this be done when you set up your domain along with admin and managed servers the very first time ? Even if you set up a domain with bunch of managed servers why does the library still get installed on admin server??? Also, for the method you described dont we have to update targets for statup and shutdown classes and work managers?
Also, what is the other method to do it from the console?
METHOD 2 (Other than the one you described- Please tell me if this is correct method and if we need to go to till level)
Step1:
I went to deployments base_domain (in admin console) > deployments chose each library and changed targets manually and activate the changes
Step2
Go to Startup and shutdown classes and change targets there
Step 3
Go to work managers and change targets there.
Please let me know
Edited by: user9021545 on May 12, 2011 10:18 AM -
Hi,
Please let me know if bpm 11g worklist API jars comes default with oracle bpm and the location of the jar files.
Regards,
SamModify domain.xml to include bpm-services.jar in bpelcClasspath.
Steps
1. Shutdown server
2. cd $ORABPEL_HOME\domains\default
cd D:\BPELPM1012\integration\orabpel\domains\default
notepad domain.xml
append D:\BPELPM1012\integration\orabpel\system\services\lib\bpm-services.jar to bpelcClasspath element value
After modifying bpelclasspath element becomes
<property id="bpelcClasspath">
<name>BPEL process compiler classpath</name>
<value>C:/work/JbossBPELPM/system/classes;C:/work/JbossBPELPM/lib/j2ee_1.3.01.jar;D:/BPELPM1012/integration/orabpel/system/services/lib/bpm-services.jar</value>
<comment>
<![CDATA[Server-side BPEL process compiler classpath. Any user-specific classes/libraries used by a BPEL java exec node (that have not been packaged in the BPEL archive) need to be specified here so that the server-side BPEL process compiler can successfully compile the BPEL process.]]>
</comment>
</property>
4. If you need more classes, append required jars
3. start the server and deploy again -
Head First book & Tomcat setup
I am currently reading Head First Servlets & JSP. In the first chapter it gives you a sample servlet to run(Ch1Servlet.java). It tells you to setup a directory OUTSIDE of /tomcat.
/Project1
/Project1/src
/Project1/classes
/Project1/etc
On my computer it is setup as C:/Java/Project1
Then it tells you to compile it from the command line like this:
javac -classpath /your path/tomcat/common/lib/servlet-api.jar -d classes src/Ch1Servlet.java
Here is what I used
javac -classpath /Program Files/Apache Software Foundation/Tomcat 5.5/common/lib/servlet-api.jar -d classes src/Ch1Servlet.java
This causes an error
javac usage invalid: Files/Apache
I am guessing this is because there are spaces in the classpath name. I copied the servlet-api.jar to the C:/Java folder and it compiled successfully. Without having to copy files to other folders how can I get around this error?
Once you get it compiled it tells you to add the class files to the WEB-INF/classes directory and add the web.xml to the WEB-INF/etc directory. The book didn't explain where this directory is. I only imagined it being on its own in the Tomcat5.5 directory but it wasn't there. I looked under webapps and there is not a WEB-INF directory. What is the book trying to tell me?
It also tells me once Tomcat is started to type in http://localhost:8080/ch1/Serv1. Under the web.xml file the mapping url is set to /Serv1 but the other description in servlet mapping is Chapter 1 Servlet. I don't see where the ch1 directory is. Can anyone help me with this?
My system OS: Windows XP
It also didn't explain why you would setup a directory outside of tomcat and then have to deploy your compiled classes back into tomcat. I am fairly new to Java and brand new to JSP. This part of the book seems to assume I know all this. Can anyone put me in the right direction?I am currently reading Head First Servlets & JSP. In
the first chapter it gives you a sample servlet to
run(Ch1Servlet.java). It tells you to setup a
directory OUTSIDE of /tomcat.
/Project1
/Project1/src
/Project1/classes
/Project1/etc
On my computer it is setup as C:/Java/Project1
Then it tells you to compile it from the command line
like this:
javac -classpath /your
path/tomcat/common/lib/servlet-api.jar -d classes
src/Ch1Servlet.java
Here is what I used
javac -classpath /Program Files/Apache Software
Foundation/Tomcat 5.5/common/lib/servlet-api.jar -d
classes src/Ch1Servlet.java
This causes an error
javac usage invalid: Files/Apache
I am guessing this is because there are spaces in the
classpath name. I copied the servlet-api.jar to the
C:/Java folder and it compiled successfully. Without
having to copy files to other folders how can I get
around this error?
Add double quotes around your class path (e.g. javac -classpath "c: /Program Files/Apache Software Foundation/Tomcat 5.5/common/lib/servlet-api.jar ")
Foundation/Tomcat 5.5/common/lib/servlet-api.jar -d
classes src/Ch1Servlet.java
Once you get it compiled it tells you to add the
class files to the WEB-INF/classes directory and add
the web.xml to the WEB-INF/etc directory. The book
didn't explain where this directory is. I only
imagined it being on its own in the Tomcat5.5
directory but it wasn't there. I looked under webapps
and there is not a WEB-INF directory. What is the
book trying to tell me?
You want to create a directory called ch1 under tomcat's webapps directory.
Under the ch1 directory create a WEB-INF directory. And under WEB-INF create a
classes directory.
It also tells me once Tomcat is started to type in
http://localhost:8080/ch1/Serv1. Under the web.xml
file the mapping url is set to /Serv1 but the other
description in servlet mapping is Chapter 1 Servlet.
I don't see where the ch1 directory is. Can anyone
help me with this?
The url-pattern in the web.xml is what is used to access your servlet.
Chapter1 Servlet is just a way to map from the servlet-class to the url-pattern.
If you read further in the book all this will be explained.
My system OS: Windows XP
It also didn't explain why you would setup a
directory outside of tomcat and then have to deploy
your compiled classes back into tomcat. I am fairly
new to Java and brand new to JSP. This part of the
book seems to assume I know all this. Can anyone put
me in the right direction?You want your source to be outside of tomcat. Once you have compiled everything,
you then deploy to your container. Hope this helps -
[new] Groovy 1.0 beta 7
Groovy is a new Java based scripting language
it installs into /opt
PKGBUILD
pkgname=groovy
pkgver=1.0
pkgrel=7
pkgdesc="Groovy is a Java based scripting language, similar to Python,Ruby and Smalltalk"
url="http://groovy.codehaus.org"
license="BSD/Apache style licence"
depends=('j2sdk>=1.4.0')
source=(http://dist.codehaus.org/groovy/distributions/$pkgname-$pkgver-beta-$pkgrel.tar.gz)
md5sums=('ad0b92eb160c74e7692254942314ce03')
build() {
mkdir $startdir/pkg/opt
cd $startdir/pkg/opt
mv $startdir/src/$pkgname-$pkgver-beta-$pkgrel $pkgname
rm $startdir/pkg/opt/$pkgname/bin/*.bat
chmod 755 $startdir/pkg/opt/$pkgname/bin/*
install -D -m755 $startdir/${pkgname}.profile $startdir/pkg/etc/profile.d/${pkgname}.sh
groovy.profile
export GROOVY_HOME=/opt/groovy
export PATH=$PATH:$GROOVY_HOME/bin
export CLASSPATH=$CLASSPATH:$GROOVY_HOME/lib
check out the groovy homepage for more info and tutorials
edit.. updated the PKGBUILD due to some minor flawsI find that it doesn't work to use compiled groovy classes with Java unless you add some classes to the classpath. Since I don't know what classes these are, I just added all of them, resulting in the following groovy.profile:
export GROOVY_HOME=/opt/groovy
export PATH=$PATH:$GROOVY_HOME/bin
for name in $GROOVY_HOME/lib/*.jar ; do
CLASSPATH=$CLASSPATH:$name
done
export CLASSPATH
(it's PROBABLY only groovy-version.jar and asm-version.jar that need to be on the classpath, but I don't know).
Dusty -
[NEW] libdc1394-1.0.0
This is my first package, but it works fine over here, if you experience any problems with it, please let me know.
http://arch.grabler.net/libdc1394/libdc … pkg.tar.gz
The filelist and PKGBUILD can be found at
http://arch.grabler.net/libdc1394
STiI find that it doesn't work to use compiled groovy classes with Java unless you add some classes to the classpath. Since I don't know what classes these are, I just added all of them, resulting in the following groovy.profile:
export GROOVY_HOME=/opt/groovy
export PATH=$PATH:$GROOVY_HOME/bin
for name in $GROOVY_HOME/lib/*.jar ; do
CLASSPATH=$CLASSPATH:$name
done
export CLASSPATH
(it's PROBABLY only groovy-version.jar and asm-version.jar that need to be on the classpath, but I don't know).
Dusty -
2 Jars with same class name. NoSuchMethod. Can't change classpath
I have overloaded a method in a class that came with an openSource package.
Things were fine until I implemented my components in a new version of the Server application; when I discovered that the it uses the same openSource package bundled in its classpath.
This results into a NoSuchMethod exception since I have overloaded the method with new argument types.
1. I cannot remove or shuffle this JAR from the Server's classpath, since that would stop something else.
2. I cannot change my code since it is implemented in a lot of places.
Has anyone called a specific method of a jar? like E.g. "someJar.jar".SomeClass.someMethod (arg);
If yes how?
The above code is not possible syntactically, but I have put it for ease in interpreting the problem.
Any input will be appreciated.
NOTE: I cannot disclose the names of products for company policy issues.Just some ideas...
1. I cannot remove or shuffle this JAR from the
Server's classpath, since that would stop something
else.Some servers allow for multiple classpaths - i.e. you can separately specify the classpath that the server itself uses from the one that your hosted applications will be using.
Also, if your changes to the openSource code are only the addition of an overloaded method, why couldn't you just substitute your jar for the one the server is using, why would that break the server?
2. I cannot change my code since it is implemented in
a lot of places.That sounds lame. You can't do a global replace? How about just changing the package name?
Has anyone called a specific method of a jar? like
E.g. "someJar.jar".SomeClass.someMethod (arg);
If yes how?Yes, but it's not as simple as your pseudo-code...
You can use URLClassLoader to load a specific class from a specific jar file URL, and then use reflection to get the method you want from it, and then call it.
good luck
j -
Jar and classpath with space in folder name?
Hi, all.
Just for fun: what if I have a jar file that is dependant on the other jar file which is placed in folder with space in its name? How would I link it in manifest file?
Thanks.Havae you tried quoting the Class-Path value?
-
Classpath error while building the web dynpro project
Hi
I have created an application in which on clicking the button on one view , next view opens and data is displayed in the tables. This data i am giving as static, and for that i have created a java file. this java file is located in the subfolder i have created in the package path i have given. While building the application, i get these two errors :
1) The project was not built due to classpath errors (incomplete or involved in cycle).
2) Missing required source folder 'BPOutageTable/BPOT'
BPOutageTable is the application name, and BPOT is the subfolder in which java file is present.
This application is similar to "The Master/Detail Viewer Application" example in the tutorials.
Can anybody please help in this?
Thanks & regards,
AnupreetHi,
You have give your classpath in your "lib" folder of the Dynpro application.
check your lib folder shows exact class path or not.
if you wish to add any jar files import it to your lib folder so you will not have compilation problem.
Hope it helps.If it is then close this thread.
Regards,
Guru -
Error building project using kXML2 - "Class loading error: Wrong name"
Hi,
I'm testing the XML-Parser KXML2 and downloaded the latest package, but the minimal version (kxml2-min.zip). I put this file into the directory "%j2mewtk%\apps\KxmlTest\lib" and wrote the lines
import org.kxml2.io.*;
import org.xmlpull.v1.*;
When I try to build the project with the Wireless Toolkit (v1.04) it spits out the following error:
Error preverifying class kxml2.io.KXmlParser
Class loading error: Wrong name
com.sun.kvem.ktools.ExecutionException: Preverifier returned 1
Build failed
I also tried the full package "kxml2.zip" but the same error occurs.
How can I get rid of this? Thanks in advance!Okay, finally worked it out (hopefully). I unpacked the archive to a directory (say "%J2MEWTK%\apps\KxmlTest\tmpclasses") and then preverified them "manually":
%J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.kxml2.io.KXmlParser
%J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.xmlpull.v1.XmlPullParser
%J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.xmlpull.v1.XmlPullParserException
Then I packed them again to a jar-file:
%J2SDK%\bin\jar.exe -cvf kxml2-min.jar %J2MEWTK%\apps\KxmlTest\tmpclasses\output\.
That was all!
Maybe you are looking for
-
HT2473 how do i remove a menu item?
i have accidentally added a menu item into a drop down menu. how can i remove it? my thanks in advance
-
Help me to make a career decision
Hi All , I am a ABAPER with 4 Years experience. I am interested in SAP functional. Few months ago I completed my certification in SAP FI ECC 6.0 When in my organization i asked for functional work they said only people with Accoutin
-
We are getting more frequent Block corruption alert from our production RAC (2 node) db. if we use dbv utility to check block corruption, everything looks normal and if we check following dictionary views, we could not find any details . GV$BACKUP_CO
-
Hellow Nokia family, I realy need your help,i'm located in Dar es Salaam,Tanzania which is in East Africa, I'm currently using Nokia X7-00, just yesterday I dropped it and the get some cracks on its display,i only have 2 months with this phone and
-
Has anyone written a driver for the Labsphere SC-5500?
I am hoping to obtain a driver for this particular instrument. I was curious to know if anyone in the past has written one.