在较低配置的硬件环境下运行WebLogic WorkShop 8.1 开发环境和服务器

作者:Will Howery, BEA Principal Systems Engineer
WebLogic WorkShop 和Platform 8.1发布时的最小内存需要是512MB,这给那些计算机不能扩展到512MB内存以上的开发者带来了一个问题,开发者面临着两种选择:购买一个新的、能够支持1GB内存的计算机;或者是在现有的条件下调整优化配置参数。开发者可以做的第一件事是调整服务器和WebLogic WorkShop的Java虚拟机的内存堆的大小。当你创建一个Platform Domain,服务器的缺省的初始内存堆为256MB。这个设置使WebLogic Server启动时JVM申请并占用256MB内存。WebLogic WorkShop也是同样的配置。
降低上述配置到128MB,则可以在一共256MB物理内存的范围内启动WebLogic WorkShop和WebLogic Server实例。
这些设置可以在较小的内存条件下同时启动WebLogic WorkShop和WebLogic 服务器域而不会产生内存溢出或磁盘交换(磁盘交换大幅降低了开发进程)。进行这些设置需要定位到WebLogic WorkShop启动目录并编辑WorkShop配置文件,这个文件中定义了内存在启动时的配置参数。按照下面所示的更改相应的参数,保证启动初始只占用128MB内存。
用文本编辑器打开WebLogic Workshop的配置文件:"<BEAHOME>\weblogic81\workshop\Workshop.cfg"
-XX:-UseThreadPriorities -ea -Xmx128m -Xms64m -Xss256k……
上面的示例表示Java虚拟机的初始堆的大小属性设定为128MB。
下一步,修改WebLogic Server启动脚本中关于初始堆内存的配置。
我们以"<BEAHOME>\user_projects\platform\startWebLogic.cmd"为例,修改Platform域的配置。用文本编辑器打开启动脚本,在WebLogic Server的Java虚拟机启动之前添加如下配置:
set MEM_ARGS=-Xms128m -Xmx128m -XX:MaxPermSize=128m
当你开始使用这个域工作,你可以监视实际使用的内存堆的大小,并决定是否可以进一步减小初始堆的大小。监视可以通过WebLogic Server控制台的监视applet来完成。
如果仅仅是基本的Web页面开发并且只有你自己使用这个开发环境(一个开发者),一般不会使用超过90MB服务器的JVM堆。如果你确实做到了在基本的开发过程中把初始的堆调整到90至100MB,下一步就是从域中去掉不用的组件。例如:仅仅进行WebLogic Portal的开发,就不需要platform域中的集成和商务组件,这样在内存中就只保留WebLogic Server、WorkShop和WebLogic Portal组件。如果仅仅是进行基本的J2EE的开发,portal和integration的组件都不比保留。可以通过配置向导(configuration wizard)创建符合需要的域,而不是大而全的platform域。这里是WebLogic Server域,仅仅包含构建基本J2EE所必需的组件。
使用基本的WebLogic Server域能够有效降低服务器组件对内存的需要,可以让WebLogic WorkShop使用更多的内存。使用页面流组件开发独立的Web应用,然后把Web应用包含到门户应用中是有效可行的。开发者可以利用最小的内存需要开发独立的Web应用,然后整合在完整的门户中,在门户中整合Web应用只是组装即可。
类似的情况,如果你需要构建包含流程定义的integration应用,你不必完整的platform域,因为portal的组件并不是你所需要的,去除它们以节约内存。可以通过配置新的域或从服务器中解除portal部署。
额外的一步,你可以用Configuration Template Builder把经过你验证的优化配置创建为模板。通过选择你创建并优化配置的域创建新的可发布域模板,便于与项目组中其他开发者共享你优化并测试的域的配置。
另外,一旦你在这个域中创建了可重用的组件,你也可以通过这个定制的域来共享这些组件。
上述这些关于WebLogic Server域模板的用法鼓励配置的重用,并能够节约开发者在配置、设定开发、运行环境上的时间。多数项目开始时都采用了繁琐的配置,通过使用WebLogic域模板能够减少项目开始的配置时间,并使每个开发成员工作更有效。

Very good. 看来512的也能勉强跑了.在没看此贴前我研究了一下weblogic的启动命令,已经在setDomainEnv.cmd将初始堆改为128M了,跑的不错.只跑开发的程序是没问题的;-)

Similar Messages

  • How to open a wsdl file in Weblogic Workshop 10.3? Cannot seem to do so!

    Hello, I'm new to Weblogic Workshop 10.3 & will be working with learning how to develop and use webservices using the application. I have a WSDL file which i want to use in a project but cannot seem to import or use the file as required.
    If I click on "File -> New -> Service Control ->" I get the option to "Select the WSDL file to use" however I cannot find any WSDL files I copy into my workbench folder. Even if I close the project, close workshop, re-open workshop, reopen a project the WSDL file are not available to choose.
    Does anyone know what I may be doing wrong or how to resolve this issue?
    Any help would be appreciated!
    Thanks.

    The Adobe PDF printer is no longer available in Snow Leopard. This is an announce to this fact at the entrance to the Acrobat Macintosh forum. The old methods for doing what you want will not work in Snow Leopard. I recommend you look at Quite Imposing. It can do everything you want and more. Alas, it comes at a price.

  • Error while generating ear using ant script in weblogic workshop 10

    In my application I have to create a ear file which should have the war file inside.
    I have created the build.xml for both ear application and web application, workshop.xml using weblogic workshop option
    File->export->WorkshopAntScripts
    I have been using the following command to execute the build.xml in EARApp(ear application)
    set the environment variables by running
    D:\bea\wlserver_10.0\common\bin\commEnv.cmd
    then
    D:\Source_Code\EARApp>ant clean build archive -Dworkspace="D:\Source_Code"
    I am getting the following error,
    Buildfile: build.xml
    init.env:
    check.versions:
    init.typedefs:
    init:
    clean:
    init.env:
    check.versions:
    init.typedefs:
    init:
    clean:
    [delete] Deleting 53 files from D:\Source_Code\WebApp\.apt_src
    [delete] Deleted 14 directories from D:\Source_Code\WebApp\.apt_src
    [delete] Deleting 218 files from D:\Source_Code\WebApp\build\classes
    [delete] Deleted 42 directories from D:\Source_Code\WebApp\build\classes
    [delete] Deleting directory D:\Source_Code\WebApp\build\assembly\.src
    [delete] Deleting directory D:\Source_Code\WebApp\build\weboutput
    [mkdir] Created dir: D:\Source_Code\WebApp\build\weboutput
    init.env:
    check.versions:
    init.typedefs:
    init:
    build:
    init.env:
    check.versions:
    init.typedefs:
    init:
    build:
    [apt] [web.content.root]|[D:\Source_Code\WebApp/\WebContent]
    [apt] [web.source.roots]|[D:\Source_Code\WebApp/src]
    [apt] Compiling 113 source files to D:\Source_Code\WebApp\build\classes
    [apt] warning: Annotation types without processors: [java.lang.SuppressWarnings, org.apache.be
    ehive.controls.system.jdbc.JdbcControl.ConnectionDataSource, org.apache.beehive.controls.system.jdbc
    .JdbcControl.SQL, com.bea.control.annotations.TransactionAttribute]
    [apt] 1 warning
    [apt] warning: Annotation types without processors: [java.lang.SuppressWarnings]
    [apt] 1 warning
    [apt] [web.content.root]|[D:\Source_Code\WebApp/\WebContent]
    [apt] [web.source.roots]|[D:\Source_Code\WebApp/src]
    [apt] Compiling 53 source files to D:\Source_Code\WebApp\build\classes
    [apt] warning: Annotation types without processors: [java.lang.SuppressWarnings]
    [apt] 1 warning
    [javac] Compiling 113 source files to D:\Source_Code\WebApp\build\classes
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] Compiling 53 source files to D:\Source_Code\WebApp\build\classes
    [delete] Deleting directory D:\Source_Code\WebApp\build\weboutput
    [mkdir] Created dir: D:\Source_Code\WebApp\build\weboutput
    [copy] Copying 1 file to D:\Source_Code\WebApp\build\weboutput\WEB-INF
    [copy] Copying 1 file to D:\Source_Code\WebApp\build\weboutput\WEB-INF
    init.env:
    check.versions:
    init.typedefs:
    init:
    stage:
    [delete] Deleting directory D:\Source_Code\EARApp\.staging
    [mkdir] Created dir: D:\Source_Code\EARApp\.staging
    [copy] Copying 7 files to D:\Source_Code\EARApp\.staging
    init.env:
    check.versions:
    init.typedefs:
    init:
    stage.to.ear:
    init.env:
    check.versions:
    init.typedefs:
    init:
    stage:
    init.env:
    check.versions:
    init.typedefs:
    init:
    generated.root.init:
    assembly:
    [mkdir] Created dir: D:\Source_Code\WebApp\build\assembly\.src
    [assemble] Assembly failed - Control Assembly process failed
    [assemble] Caused by: info
    BUILD FAILED
    D:\Source_Code\EARApp\build.xml:189: The following error occurred while executing t
    his line:
    jar:file:/D:/bea/WLSERV%7e1.0/workshop/lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antl
    ib.xml:92: The following error occurred while executing this line:
    D:\Source_Code\EARApp\build.xml:201: The following error occurred while executing t
    his line:
    D:\Source_Code\WebApp\build.xml:351: The following error occurred while executing thi
    s line:
    D:\Source_Code\WebApp\build.xml:177: The following error occurred while executing thi
    s line:
    D:\Source_Code\WebApp\build.xml:424: Assembly failed.
    Some one help me solve this problem.
    Thanks in advance.

    --> some error on posting please refer to the next post...
    From the error logs we can trace it out to the web project's Build.xml file ....I was getting a similar error and by commenting out the following lines in the web project's Build.xml I am able to run the build script correctly and get a EAR file. The lines are
    <!--
    <assemble
    moduleDir="${generated.module.root}"
    moduleName="${project.name}"
    srcOutputDir="${assembly.src}"
    appRootDir="${ear.root}">
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.WebAppAssemblyContext$Factory" />
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.AppAssemblyContext$Factory" />
    <classpath refid="assembly.classpath" />
    <fileset dir="${project.dir}">
    <include name="**/*.controls.properties" />
    </fileset>
    </assemble>
         -->
    Please check it now, also if any one can let us know the function or role played by the above lines it would be great. Also if there would be any future or unseen problems by commenting out these lines please do let us know...
    Thanks
    -MiM
    Edited by prodigymonish83 at 10/22/2007 5:56 AM

  • Error when generating a Web Service from WSDL (Weblogic Workshop)

    Hi,
    I am using weblogic workshop 10 for implementing web services and its was working fine. But now when I try to generate a web service from WSDL its crashing with the following error;
    Could not find one or more classes: "org.apache.tools.ant.launch.AntMain". Please check the Ant classpath.
    org.eclipse.core.runtime.CoreException: Could not find one or more classes: "org.apache.tools.ant.launch.AntMain". Please check the Ant classpath.
         at com.bea.workshop.webservices.core.gen.JwsFromWsdlBuilder.buildJws(JwsFromWsdlBuilder.java:107)
         at com.bea.workshop.webservices.ui.wizards.jwsfromwsdl.GenerateJwsFromWsdlWizard$1.execute(GenerateJwsFromWsdlWizard.java:133)
         at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:101)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
         at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:113)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    org.eclipse.core.runtime.CoreException[4]: com.bea.workshop.webservices.core.gen.WebServicesException:
         at com.bea.workshop.webservices.core.gen.GenerationScript.runAnt(GenerationScript.java:154)
         at com.bea.workshop.webservices.core.gen.GenerationScript.createJWS(GenerationScript.java:98)
         at com.bea.workshop.webservices.core.gen.JwsFromWsdlBuilder.buildJws0(JwsFromWsdlBuilder.java:135)
         at com.bea.workshop.webservices.core.gen.JwsFromWsdlBuilder.buildJws(JwsFromWsdlBuilder.java:98)
         at com.bea.workshop.webservices.ui.wizards.jwsfromwsdl.GenerateJwsFromWsdlWizard$1.execute(GenerateJwsFromWsdlWizard.java:133)
         at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:101)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
         at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:113)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Caused by: org.eclipse.core.runtime.CoreException: Could not find one or more classes: "org.apache.tools.ant.launch.AntMain". Please check the Ant classpath.
         at org.eclipse.ant.core.AntRunner.problemLoadingClass(AntRunner.java:445)
         at org.eclipse.ant.core.AntRunner.handleInvocationTargetException(AntRunner.java:417)
         at org.eclipse.ant.core.AntRunner.run(AntRunner.java:362)
         at com.bea.workshop.webservices.core.gen.GenerationScript.runAnt(GenerationScript.java:152)
         ... 8 more
    I have checked my ANT_HOME and its pointing to the correct location bea\tools\eclipse32\eclipse\plugins\org.apache.ant_1.6.5 and the AntMain classs is present in this path: org.apache.tools.ant.launch.AntMain
    If anyone has any idea on this please suggest a solution.
    Thanks in advance
    -AKJ

    Yes, I assume you are talking about ANT_HOME:
    see this Screenshot which shows my current settings
    [http://i43.tinypic.com/nbrec6.jpg|http://i43.tinypic.com/nbrec6.jpg]
    Regards
    -AKJ

  • Getting Error while Publishing Web Application using weblogic workshop 10.2

    Hi all,
    I am trying to create a simple webapplication using the weblogic workshop studio for weblogic. I have created a domain using the configration wizard.
    when i am trying to deploy the newly created dynamic web project EAR in to the server, its throwing a error
    !MESSAGE Referenced library module 'weblogic-controls-10.0#[email protected]' failed to deploy.
    !SUBENTRY 2 com.bea.workshop.wls.core 4 4000 2008-05-21 15:32:06.117
    !MESSAGE java.net.MalformedURLException: no protocol: 10.2/wlserver_10.0/platform/lib/p13n/p13n_common.jar
    !STACK 0
    java.lang.Exception: Exception received from deployment driver. See Error Log view for more detail.
         at com.bea.workshop.wls.core.server.internal.WlsJ2EEDeploymentHelper$DeploymentProgressListener.watch(WlsJ2EEDeploymentHelper.java:1459)
         at com.bea.workshop.wls.core.server.internal.WlsJ2EEDeploymentHelper.deployLibrary(WlsJ2EEDeploymentHelper.java:1200)
         at com.bea.workshop.wls.core.server.internal.WlsJ2EEDeploymentHelper.deployLibraryModules(WlsJ2EEDeploymentHelper.java:1079)
         at com.bea.workshop.wls.core.server.internal.WlsJ2EEDeploymentHelper.deployAllLibraryModules(WlsJ2EEDeploymentHelper.java:1046)
         at com.bea.workshop.wls.core.server.internal.WlsJ2EEDeploymentHelper.deploy(WlsJ2EEDeploymentHelper.java:710)
         at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.publishWeblogicModules(WeblogicServerBehaviour.java:1195)
         at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:657)
         at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:486)
         at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:875)
         at org.eclipse.wst.server.core.internal.Server.publish(Server.java:863)
         at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:142)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
    Caused by: java.net.MalformedURLException: no protocol: 10.2/wlserver_10.0/platform/lib/p13n/p13n_common.jar
         at java.net.URL.<init>(URL.java:567)
         at java.net.URL.<init>(URL.java:464)
         at java.net.URL.<init>(URL.java:413)
         at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:747)
         at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147)
         at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
         at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
         at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
         at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
         at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
         at javax.management.remote.rmi.RMIConnectionImpl$6.run(RMIConnectionImpl.java:1595)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.management.remote.rmi.RMIConnectionImpl.unwrap(RMIConnectionImpl.java:1586)
         at javax.management.remote.rmi.RMIConnectionImpl.access$600(RMIConnectionImpl.java:81)
         at javax.management.remote.rmi.RMIConnectionImpl$7.run(RMIConnectionImpl.java:1631)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.management.remote.rmi.RMIConnectionImpl.unwrap(RMIConnectionImpl.java:1627)
         at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:766)
         at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Any help on this is welcomed
    Thanks and regards
    Vishnu

    If you don't mind can you please provide a more step-by-step instructions to reproduce.

  • Invoking web service using Weblogic Workshop (JCX)

    Invoking web service using Weblogic Workshop
    Posted: 5 Jan 2005 23:31 PM Reply
    Hi,
    I have WSDL from which I have generated a web service control (.jcx) using Weblogic Workshop.
    I need to write a client which will invoke the web service using the control.
    Can someone help me on how to go about this ?
    BTW .. I also tried the clientgen route and tried to generated the proxy jar from the WSDL but wasn't successful because of a existing clientgen bug.
    Refer bug

    Hi,
    if the consumer of the webservice is a control-aware consumer ( pageflow, control, process ) simply drag the control to this consumer and the control variable is ready for use.
    if the consumer is not control-aware, try to generate a proxy using eg. the axis tool, or handcode your proxy class.
    links :
    how to use webservice control
    http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/controls/conGettingStartedWithJavaControls.html
    axis
    http://ws.apache.org/axis/
    - Anders M.
    - Anders M.

  • Error while configuring weblogic workshop application to cruise control.

    Hi,
    I have a web application which is created through weblogic workshop 9.2 and want to configure it to cruise control.
    In that process, i had to change the web app to ear application and created build.xml for configuring it to cruise control
    but I'm getting the following error.
    It would be great if anyone could resolve the issue.
    copyConfiguration:
    [echo] No configuration directories specified
    createWorkspaceXML:
    [echo] Running createWorkspaceXMLFile
    checkout:
    build:
    [echo] Compiling using /home/cocbad/wlp92-projects/SearchApp/src/SearchApp/SearchApp/build.xml
    init.env:
    check.params:
    check.versions:
    init.typedefs:
    [echo] Using Workshop Libraries located in the "../SearchApp/ant-build-lib" directory.
    Trying to override old definition of task for
    Trying to override old definition of task jspc
    init:
    [mdimport] The workspace is missing the definition of the "BEA WebLogic Server v9.2 JRE" Java VM, which is referenced by a project.
    BUILD FAILED
    /home/cocbad/wlp92-projects/SearchApp/SearchApp_build.xml:20: The following error occurred while executing this line:
    /home/cocbad/wlp92-build/build_app.xml:44: The following error occurred while executing this line:
    /home/cocbad/wlp92-build/build_tasks.xml:110: The following error occurred while executing this line:
    /home/cocbad/wlp92-projects/SearchApp/src/SearchApp/SearchApp/build.xml:74: Metadata import failed!
    Total time: 8 seconds
    Thanks & Regards,
    Swapna

    Hi,
    Issue is resolved.
    Value for property "aia.jdev.lib.dir" was missing in my build.xml.
    Regards,
    UJ

  • Dynamic Class Loading in Weblogic Workshop

    Hi, I am developing a web service with weblogic workshop. The JWS file references
    other classes one of which is a factory for distributing various implementations
    of an interface. I am trying to dynamically load the relevant class to be distributed
    from the factory via its name, e.g. Class c = Class.forName(className)
    However I keep getting a classNotFoundException. The class exists in the same
    package as the factory. I can insantiate the class in the normal way, i.e new
    ClassName(); but cant seem to dynamically load it via its name. However I have
    found that if I declare a private member of that type in the Factory but do nothing
    with it, I can then dynamically create the class. However I dont really want
    to do this for every type that the factory can create
    Any ideas ??

    Graeme,
    Could you please send us a relevant snippet of the JWS and your factory
    class, to clarify the issue and help us replicate it here.
    Thanks,
    Anurag
    "Graeme Dougal" <[email protected]> wrote in message
    news:3e799b78$[email protected]..
    >
    Hi, I am developing a web service with weblogic workshop. The JWS filereferences
    other classes one of which is a factory for distributing variousimplementations
    of an interface. I am trying to dynamically load the relevant class to bedistributed
    from the factory via its name, e.g. Class c = Class.forName(className)
    However I keep getting a classNotFoundException. The class exists in thesame
    package as the factory. I can insantiate the class in the normal way,i.e new
    ClassName(); but cant seem to dynamically load it via its name. However Ihave
    found that if I declare a private member of that type in the Factory butdo nothing
    with it, I can then dynamically create the class. However I dont reallywant
    to do this for every type that the factory can create
    Any ideas ??

  • How to import the existing project in the CVS to the weblogic workshop??

    Hi,
    I have a project in the CVS and I want to work with that project in the weblogic8.1 workshop.
    Can anyone help me in importing the existing CVS project/application into the weblogic workshop so that I can check-in, check-out and debug the application.
    Thanks in advance
    Raj B.

    Hi,
        If you want to rename Development Component (DC) project, here is the procedure..
    How to rename local Development Component Projects in Netweaver Developer Studio
    Regards,
    Uday.

  • How do I read properties file kept in the source folder in weblogic workshop

    I want to have a log.properties file in the folder of the source java code which
    is reading this properties file. When I build the code the properties file also
    should go with the generated .class files.
    I am using class.getResourceAsStream("log.properties")
    I tries different ways to make the class to read the file, but it failed to find
    the properties file. Is there any way to keep the configuration files in the same
    directory of the source java code ? This is the problem of weblogic workshop 8.1.
    This thing runs fine in Tomcat.

    Did you try and add the path where the .properties file is located in the CLASSPATH?

  • Default namespace in WebLogic Workshop generated WSDL

    Hello there,
    I am trying to access a very simple webservice developed in WebLogic Workshop
    (say something like HelloWorld.jws) from a ColdFusion application. However, I
    get an Axis fault on Coldfusion implying that it could not invoke the required
    method. I am running the examples server and the work shop. I noticed that some
    of the documentation mention changing the namespace from http://www.openuri.com
    to something else.
    Does that have to do anything with the service not being able to be invoked or
    it could be something else?
    Could not perform web service invocation "Hello" because AxisFault faultCode:
    {http://xml.apache.org/axis/}Server.userException faultString: java.net.ConnectException:
    Connection refused faultActor: null faultDetail: stackTrace: java.net.ConnectException:
    Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at
    java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124) at java.net.Socket.<init>(Socket.java:268)
    at java.net.Socket.<init>(Socket.java:95) at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:131)
    at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:175) at
    org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:118) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182) at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
    at org.apache.axis.client.Call.invoke(Call.java:2102) at org.apache.axis.client.Call.invoke(Call.java:1851)
    at org.apache.axis.client.Call.invoke(Call.java:1777) at org.apache.axis.client.Call.invoke(Call.java:1315)
    at org.openuri.www.HelloWorldSoapStub.hello(HelloWorldSoapStub.java:85) at java.lang.reflect.Method.invoke(Native
    Method) at coldfusion.xml.rpc.ServiceProxy.invokeImpl(Unknown Source) at coldfusion.xml.rpc.ServiceProxy.invoke(Unknown
    Source) at coldfusion.runtime.CfJspPage._invoke(Unknown Source) at coldfusion.tagext.lang.InvokeTag.doEndTag(Unknown
    Source) at cfstaffphone22ecfm1540840989.runPage(/www/docs/viper.asce.org/staffphone2.cfm:16)
    at coldfusion.runtime.CfJspPage.invoke(Unknown Source) at coldfusion.tagext.lang.IncludeTag.doStartTag(Unknown
    Source) at coldfusion.filter.CfincludeFilter.invoke(Unknown Source) at coldfusion.filter.ApplicationFilter.invoke(Unknown
    Source) at coldfusion.filter.RequestMonitorFilter.invoke(Unknown Source) at coldfusion.filter.PathFilter.invoke(Unknown
    Source) at coldfusion.filter.ExceptionFilter.invoke(Unknown Source) at coldfusion.filter.ClientScopePersistenceFilter.invoke(Unknown
    Source) at coldfusion.filter.BrowserFilter.invoke(Unknown Source) at coldfusion.filter.GlobalsFilter.invoke(Unknown
    Source) at coldfusion.filter.DatasourceFilter.invoke(Unknown Source) at coldfusion.CfmServlet.service(Unknown
    Source) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:226) at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:198)
    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
    at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) null

    Sanjeev,
    The exception you mentioned about changing the namespace should not cause
    the behavior that you are noticing.
    The exception that you are receiving states that your ColdFusion application
    is not able to access the Workshop Web Service.
    Are both coldfusion and Workshop on the same physical machine ?
    If they are not on the same machine.
    Are you able to access the wsdl via a browser from the machine on which
    coldfusion installed ?
    The wsdl has an service name tag
    - <port name="SimpleTestSoap" binding="s0:SimpleTestSoap">
    <soap:address location=http://localhost:7001/Raj/SimpleTest.jws />
    </port>
    This address location is be default the machine on which this Web Service is
    built, and this defaults to localhost:7001.
    This entry can be modified by editing the weblogic-jws-config.xml file found
    in the WEB-INF/lib folder of the project.
    Can you make sure that address location contains the correct address and
    also check to see if the Web Service is available via any browser.
    Hope this help.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Sanjeev" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hello there,
    I am trying to access a very simple webservice developed in WebLogicWorkshop
    (say something like HelloWorld.jws) from a ColdFusion application.However, I
    get an Axis fault on Coldfusion implying that it could not invoke therequired
    method. I am running the examples server and the work shop. I noticed thatsome
    of the documentation mention changing the namespace fromhttp://www.openuri.com
    to something else.
    Does that have to do anything with the service not being able to beinvoked or
    it could be something else?
    Could not perform web service invocation "Hello" because AxisFaultfaultCode:
    {http://xml.apache.org/axis/}Server.userException faultString:
    java.net.ConnectException:
    Connection refused faultActor: null faultDetail: stackTrace:java.net.ConnectException:
    Connection refused at java.net.PlainSocketImpl.socketConnect(NativeMethod) at
    java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350) atjava.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124) atjava.net.Socket.<init>(Socket.java:268)
    at java.net.Socket.<init>(Socket.java:95) atorg.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFact
    ory.java:131)
    atorg.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:175) at
    org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:118) atorg.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
    71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156) atorg.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182) atorg.apache.axis.client.Call.invokeEngine(Call.java:2113)
    at org.apache.axis.client.Call.invoke(Call.java:2102) atorg.apache.axis.client.Call.invoke(Call.java:1851)
    at org.apache.axis.client.Call.invoke(Call.java:1777) atorg.apache.axis.client.Call.invoke(Call.java:1315)
    at org.openuri.www.HelloWorldSoapStub.hello(HelloWorldSoapStub.java:85) atjava.lang.reflect.Method.invoke(Native
    Method) at coldfusion.xml.rpc.ServiceProxy.invokeImpl(Unknown Source) atcoldfusion.xml.rpc.ServiceProxy.invoke(Unknown
    Source) at coldfusion.runtime.CfJspPage._invoke(Unknown Source) atcoldfusion.tagext.lang.InvokeTag.doEndTag(Unknown
    Source) atcfstaffphone22ecfm1540840989.runPage(/www/docs/viper.asce.org/staffphone2.cf
    m:16)
    at coldfusion.runtime.CfJspPage.invoke(Unknown Source) atcoldfusion.tagext.lang.IncludeTag.doStartTag(Unknown
    Source) at coldfusion.filter.CfincludeFilter.invoke(Unknown Source) atcoldfusion.filter.ApplicationFilter.invoke(Unknown
    Source) at coldfusion.filter.RequestMonitorFilter.invoke(Unknown Source)at coldfusion.filter.PathFilter.invoke(Unknown
    Source) at coldfusion.filter.ExceptionFilter.invoke(Unknown Source) atcoldfusion.filter.ClientScopePersistenceFilter.invoke(Unknown
    Source) at coldfusion.filter.BrowserFilter.invoke(Unknown Source) atcoldfusion.filter.GlobalsFilter.invoke(Unknown
    Source) at coldfusion.filter.DatasourceFilter.invoke(Unknown Source) atcoldfusion.CfmServlet.service(Unknown
    Source) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) atjrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    atjrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:226) at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:198)
    atjrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:
    348)
    atjrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451
    atjrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:29
    4)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) null

  • Authentication error weblogic workshop

    Hi ,
    I am trying to debugg my application with weblogic workshop but its
    giving authentication error. My application is deployed and i can access it
    . I am using ant . Actually when i click the debug button it statrts the
    build and after successful termination of the build process it opens the
    debug view but gives the following error :-
    Authentication Failure when connecting to server
    Check your weblogic server username and password are correct and that the
    user has full admin rights.
    I have given the same username and password in workshop that i gave while
    configuring my domain. I guess workshop is not able to communicate with the
    server . Please help me out. I have spent enough time resolving this.
    Thanks

    The text of the error message may be incorrect, but the intent of the
    message is correct. You cannot use <max-beans-in-free-pool> with a Stateful
    session bean. See:
    http://e-docs.bea.com/wls/docs81/ejb/DDreference-ejb-jar.html#1114854
    Bill
    "Rick Jackson" <[email protected]> wrote in message
    news:26851318.1105651919423.JavaMail.root@jserv5...
    Hello,
    I have created a session EJB in Weblogic workshop. In the propertyeditor, I have set the "type" to "Stateful". I have then set the
    max-beans-in-free-pool to 1. I build my ejb project, and I get the below
    error:
    "A Stateless Session Bean cannot have a tag max-beans-in-free-pool". Thisdoesn't make any sense to me since I have specified that it is a "Stateful"
    session bean. I am using Weblogic workshop 8.1 sp2

  • Href link with //localhost:7001 prefix in index.jsp  for WebLogic Workshop 8.1.2

    I installed the WebLogic Workshop 8.1.2 (Build: 2003.1211.044125). I built all
    six projects
    and everything seems to work well.
    I could access to the sample web services on the WebLogic server from the local
    server
    as well as from a remote client machine by pointing the browser to the following
    two URLs respectively:
    http://localhost:7001/WebServices/index.jsp (browser from local server)
    http://192.168.1.100:7001/WebServices/index.jsp (browser from remote client machine)
    When the "Simple web service sample" page shows up, I could click from the local
    server, and
    go to the HellowWorld.jws link. However, from the remote machine, I got the "Page
    not found"
    error when clicking on the HelloWorld.jws link.
    I checked the index.jsp file in the
    C:\bea\weblogic81\samples\workshop\SamplesApp\WebServices directory on the WebLogic
    server, and found that all the href reference has the //localhost:7001 prefix
    in the link,
    which caused the remote browser to fail.
    I then tried to global replacement and remove all the //localhost:7001 references
    in the
    index.jsp file so that the line changed from something like this:
    href="http://localhost:7001/WebServices/HelloWorld.jws?.EXPLORE=.TEST">HelloWorld.jws</a>
    to something like this:
    href="http:/WebServices/HelloWorld.jws?.EXPLORE=.TEST">HelloWorld.jws</a>
    and then save the index.jsp file in the same directory.
    Now, I fresh both of my browsers and I can correctly access to the HelloWorld.jws,
    and
    all other sample links, from the local server as well as from the remote client
    machine.
    Why is //localhost:7001 needed in the index.jsp file? It seems that without it
    the
    samples work better.

    Hello,
    You will need the full URL when you extend out of your local
    environment. Check out docs here [1] for an overview or for an extended
    story, review the issues [2] involved with clusters, DNS, IP addr, etc.
    Hope this is of some value,
    Bruce
    [1]
    http://edocs.bea.com/wls/docs81/webserv/assemble.html#1076491
    [2]
    http://e-docs.bea.com/wls/docs81/cluster/setup.html#714310
    Shuh Chang wrote:
    >
    I installed the WebLogic Workshop 8.1.2 (Build: 2003.1211.044125). I built all
    six projects
    and everything seems to work well.
    I could access to the sample web services on the WebLogic server from the local
    server
    as well as from a remote client machine by pointing the browser to the following
    two URLs respectively:
    http://localhost:7001/WebServices/index.jsp (browser from local server)
    http://192.168.1.100:7001/WebServices/index.jsp (browser from remote client machine)
    When the "Simple web service sample" page shows up, I could click from the local
    server, and
    go to the HellowWorld.jws link. However, from the remote machine, I got the "Page
    not found"
    error when clicking on the HelloWorld.jws link.
    I checked the index.jsp file in the
    C:\bea\weblogic81\samples\workshop\SamplesApp\WebServices directory on the WebLogic
    server, and found that all the href reference has the //localhost:7001 prefix
    in the link,
    which caused the remote browser to fail.
    I then tried to global replacement and remove all the //localhost:7001 references
    in the
    index.jsp file so that the line changed from something like this:
    href="http://localhost:7001/WebServices/HelloWorld.jws?.EXPLORE=.TEST">HelloWorld.jws</a>
    to something like this:
    href="http:/WebServices/HelloWorld.jws?.EXPLORE=.TEST">HelloWorld.jws</a>
    and then save the index.jsp file in the same directory.
    Now, I fresh both of my browsers and I can correctly access to the HelloWorld.jws,
    and
    all other sample links, from the local server as well as from the remote client
    machine.
    Why is //localhost:7001 needed in the index.jsp file? It seems that without it
    the
    samples work better.

  • Is there a way to attach request/response handlers in BEA Weblogic Workshop similar to Axis?

    Apache Axis allows developers to attach Request/Response handlers to do
    stuff like logging, authorization check etc.
    Something like...
    public class MyHandler extends org.apache.axis.handlers.BasicHandler {
    public void invoke(org.apache.axis.MessageContext msgContext) throws
    AxisFault
    Does BEA Weblogic Workshop has a similar capability?
    Thanks.
    Best Regards
    Hitesh

    Hi Hitesh,
    The logging in Workshop user log4j and is configured in the
    <WL-HOME>/weblogic700/server/lib/workshopLogConfig.xml file.
    To log the SOAP responses, add the following lines in the xml file:
    <category name="knex.SoapJwsReq"> <priority value="debug" /> <appender-ref
    ref="MYLOGFILE" /> </category>
    <category name="knex.SoapJwsResp"> <priority value="debug" /> <appender-ref
    ref="MYLOGFILE" /> </category>
    The MYLOGFILE can be configured by copying from the already defined
    appenders. The file location is relative to the domain directory.
    <appender name="MYLOGFILE" class="org.apache.log4j.RollingFileAppender">
    <param name="File" value="mylog.log" />
    <param name="Append" value="true" />
    <param name="MaxFileSize" value="3000KB" />
    <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%d{DATE} %-5p %-15c{1}: %m%n"/>
    </layout>
    </appender>
    As of now, the SOAP request message is not logged, only the responses are
    getting logged. This will be corrected within the next few days. Please also
    note that if you are using the Test View for running the web service, you
    should use the 'Test XML' tab for seeing the SOAP requests/responses. The
    'Test Form' tab uses HTTP GET, and hence you will not see any SOAP messages.
    Do let me know if you have any further queries.
    Regards,
    Anurag
    Workshop Support
    "Hitesh Seth" <[email protected]> wrote in message
    news:[email protected]...
    Thanks Anurag. What is the best recommended way in BEA Weblogic Workshop
    today to implement a logger which will log all SOAP Requests & Responses
    into a custom logging system.
    Best Regards
    Hitesh
    "Anurag Pareek" <[email protected]> wrote in message
    news:[email protected]...
    Hitesh,
    You can modify the SOAP request and response payload by using ECMA
    Script
    and XMLMaps.
    In the current release, Workshop does not support 'handlers' for SOAP
    messages.
    Regards,
    Anurag
    Workshop Support
    "Hitesh Seth" <[email protected]> wrote in message
    news:[email protected]...
    Apache Axis allows developers to attach Request/Response handlers to
    do
    stuff like logging, authorization check etc.
    Something like...
    public class MyHandler extends org.apache.axis.handlers.BasicHandler {
    public void invoke(org.apache.axis.MessageContext msgContext)throws
    AxisFault
    Does BEA Weblogic Workshop has a similar capability?
    Thanks.
    Best Regards
    Hitesh

  • Aqualogic WebLogic Workshop: XQuery resource cannot be found

    Hi
    I created a Proxy Service with WebLogic Workshop. I tested it without problems. After I shutdown the laptop and restarted it the references between the Proxy Service and the XQuery resources are lost. If I try to reference them WebLogic Workshop cannot find the resource even if they appear on the project.
    Any ideas?
    Regards,
    Néstor Boscán

    Hi Nestor,
    In Workshop, try to clean all the projects (Projects -> Clean all)
    Regards,
    Fabio Douek

  • How to create a servlet to be called by a portlet in weblogic workshop

    Hey,
    In weblogic workshop 8.1.4, I created a portal application. In the portlet(Java portlet- JSR 168), I would like to call a Java Servlet. In the workshop, it seems there is no way to create a Java Servlet.
    Does anybody know how to create a Java Servlet in the Weblogic workshop?
    Thanks!
    Jeff

    How about creating a java class and adding the proper imports, extends, methods etc. to make it a servlet.
    Do the the necessary changes to web.xml
    Then try to invoke it from the portlet's jsp of java code
    HTH,
    Raj

Maybe you are looking for

  • 3rd Gen Nano connects and then QUICKLEY disconnects on an XP machine

    Below are two postings I made in a different discussion area. The 30g iPod is now working fine, the Nano is as stated in the second post. Please to help me out? As stated below Apple says it works and it does on the wrong machine! As many of you out

  • FORMAT C DRIVE

     I have hp Pavilion 15-n209TX, I already created recovery disk (5 disk), and also there is 1 drive name as recovery disk, i just want to know how to format my C DRIV E ONLY using R-disk or R-drive? and i also want to know how to split DRIVERS ONLY fr

  • Transition to Certificate Based Authentication

    Hello, I was hoping someone could help provide some insight into a question I have. We are in the process of rolling out a new Mobile Device Management system that will give us the ability to insert User Certificates on the mobile devices.  My questi

  • Can anyone explain why my icloud won't send my emails via numbers

    My icloud will not send email said numbers app. Or it won't cc. me. Can anyone explain?

  • G5 won't read photos imported from Powerbook G4

    When I got the G5, I followed the instructions to start in target mode while hooked up to my Powerbook. All of the files on the laptop's hard drive transferred, but the iPhoto libraries don't contain any photos, just folders that contain "data" and "