怎么设置Weblogic6.1?(50分)

  • 主题发起人 主题发起人 fx_lion
  • 开始时间 开始时间
F

fx_lion

Unregistered / Unconfirmed
GUEST, unregistred user!
当我在会话Bean里调用实体Bean时(用lookup()),编译通过,发布通过,但是,在测试时不能通过,
怎么回事?
是不是要对Weblogic6.1进行设置?怎么设置?
(我的环境是:Jbuilder5 + Weblogic6.1)
 
你没有贴出错误信息。
所以我只能是估计你的错误。
启动你的weblogic server
打开weblogic console
分别创建 JDBC->CONNECTION POOLS
JDBC->DATA SOURCES
然后测试
 
你上面说的我都作了,单个的实体bean,我测试通过了的,就是在会话bean
中用lookup()调用实体bean时出错,听说要修改Weblogic的配置文件,把被调
用的实体bean加到当前目录中:下面就是这个配置文挡:
////就是在下面的文挡的set CLASSPATH后面修改,把被调用的实体Bean放到
这个来,我在上面加了ddtest.jar和ddxtest.jar请问你用过吗?
@echo off
@rem This script can be used to start WebLogic Server. This script ensures that
@rem the server is started using the config.xml file found in this directory and
@rem that the CLASSPATH is set correctly. This script contains the following variables:
@rem
@rem JAVA_HOME - Determines the version of Java used to start
@rem WebLogic Server. This variable must point to the
@rem root directory of a JDK installation and will be set
@rem for you by the WebLogic Server installer. Note that
@rem this script uses the hotspot VM to run WebLogic Server.
@rem If you choose to use a JDK other than the one
@rem included in the disribution, make sure that the JDK
@rem includes the hotspot VM. See the WebLogic platform support
@rem page (http://e-docs.bea.com/wls/platforms/index.html)
@rem for an up-to-date list of supported JVMs on Windows NT.
@rem
@rem When setting these variables below, please use short file names (8.3).
@rem To display short (MS-DOS) filenames, use "dir /x". File names with
@rem spaces will break this script.
@rem
@rem jDriver for Oracle users: This script assumes that native libraries
@rem required for jDriver for Oracle have been installed in the proper
@rem location and that your system PATH variable has been set appropriately.
@rem For additional information, refer to Installing and Setting up WebLogic
@rem Server (http://e-docs.bea.com/wls/docs61/install/index.html).
SETLOCAL
cd ../..
@rem Set user-defined variables.
set JAVA_HOME=C:/bea/jdk131
@rem Check that script is being run from the appropriate directory
if not exist lib/weblogic.jar goto wrongplace
goto checkJDK

:wrongplace
echo startWebLogic.cmd must be run from the config/mydomain directory. 1>&2
goto finish
:checkJDK
if exist "%JAVA_HOME%/bin/javac.exe" goto runWebLogic
echo.
echo Javac wasn't found in directory %JAVA_HOME%/bin.
echo Please edit the startWebLogic.cmd script so that the JAVA_HOME
echo variable points to the root directory of your JDK installation.
goto finish
:runWebLogic
echo on
set PATH=./bin;%PATH%
////就是在这儿修改,把被调用的实体Bean放到这个来,请问你用过吗?
set CLASSPATH=./lib/crack.jar;.;./lib/weblogic_sp.jar;./lib/weblogic.jar;./source/ddtest.jar;./source/ddxtest.jar
echo off
echo.
echo ***************************************************
echo * To start WebLogic Server, use the password *
echo * assigned to the system user. The system *
echo * username and password must also be used to *
echo * access the WebLogic Server console from a web *
echo * browser. *
echo ***************************************************
@rem Set WLS_PW equal to your system password for no password prompt server startup.
set WLS_PW=
@rem Set Production Mode. When set to true, the server starts up in production mode. When
@rem set to false, the server starts up in development mode. The default is false.
set STARTMODE=true
set WLS_PW = 11111111
echo on
"%JAVA_HOME%/bin/java" -hotspot -ms64m -mx64m -classpath %CLASSPATH% -Dweblogic.Domain=mydomain -Dweblogic.Name=myserver "-Dbea.home=C:/bea" -Dweblogic.management.password=11111111 -Dweblogic.ProductionModeEnabled=%STARTMODE% "-Djava.security.policy==C:/bea/wlserver6.1/lib/weblogic.policy" weblogic.Server
goto finish

:finish
cd config/mydomain
ENDLOCAL
 
在哪下的告诉一下
 
后退
顶部