Xalan error in web-logic 8.1 (DomSource doesn't work)

Hi,
The following piece of code worked in web-logic 6.1 but no longer works in WL8.1:
     xslDoc = documentBuilder.parse(xslURI);
xmlDoc = XML.stringToDocument(ls_xml);
     // Use Document objects to make DOMSource objects
     xslDomSource = new javax.xml.transform.dom.DOMSource(xslDoc);
     xmlDomSource = new javax.xml.transform.dom.DOMSource(xmlDoc);
     // Load XSL into transformer object
     tFactory = TransformerFactory.newInstance();
     transformer = tFactory.newTransformer(xslDomSource);
     // Style and display
     transformer.transform(xmlDomSource, new StreamResult(out));
It has to been changed to:
     xslDoc = documentBuilder.parse(xslURI);
xmlDoc = XML.stringToDocument(ls_xml);
     // Use Document objects to make DOMSource objects
     xslDomSource = new javax.xml.transform.dom.DOMSource(xslDoc);
     xmlDomSource = new javax.xml.transform.dom.DOMSource(xmlDoc);
     // Load XSL into transformer object
     tFactory = TransformerFactory.newInstance();
// here xslURI is a URL pointing to an XSL file
     transformer = tFactory.newTransformer(new StreamSource(xslURI));
     // Style and display
     transformer.transform(xmlDomSource, new StreamResult(out));
The part in ****** is the changed code. Could anyone please shed some light on
why DomSource doesn't work? Why do I have to use StreamSource?
Thanks,
VJ

Hi,
For this issue,I think it is related to the custom image.
I suggest we don't add any drivers to the custom image to test it.
Meanwhile,I  suggest you upload following logs here for further research. SkyDrive or similar network sharing would be better to use to share your files.
C:\WINDOWS\PANTHER\setupact.log
C:\WINDOWS\PANTHER\setuperr.log
Regards,
Kelvin hsu
TechNet Community Support

Similar Messages

  • Help! I have had my iMac G5 fitted with new Logic Board but it doesn't work

    Help! I have had my iMac G5 fitted with new Logic Board but it doesn't work
    I have just had my iMac G5 First Gen 1.8Ghz fitted with a new Logic Board under the Apple Repair Extension Programme for iMacs.
    I got the iMac home from the repairers and switched it on and everything was working fine for about 2 hours and then all of a sudden the Error Page came up on the Screen (with a big On/Off Switch Logo) and it said I had to shut down.
    So I shut it down waited a few minutes and then tried to re-boot it but nothing happened. All that happended was the Power Light in the Right hand corner came on..but nothing else....
    Help! Any ideas what to do please?

    If you have an external firewire drive (it has to be firewire, USB won't boot on a Rev A), plug it in to the firewire port and turn it on, then boot your iMac and see if it shows on the screen.
    Have you tried to hit the eject (up arrow, the last button on the top row of the keyboard) button when you boot, perhaps the repairers left a disc in the drive? Then try and put your install disc in.
    Miriam

  • ERROR IN WEB LOGIC AND JBUILDER...

    hi,
    im just new to weblogic with JBuilder X, i made a very basic session bean and when i compiled it. it said...
    "WebLogicSesMod.jar": Spaces in the temporary directory path may cause WebLogic APPC utility to produce fatal compile errors.
    im using Weblogic 8.1platform server
    and when i RUN THE APPLICATION then it throws exception...
    The WebLogic Server did not start up properly.
    java.lang.NoClassDefFoundError: com/bea/wsrp/util/debug/Debug
         at com.bea.wsrp.security.WSRPIdentityAsserterProviderImpl.<clinit>(WSRPIdentityAsserterProviderImpl.java:45)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at java.lang.Class.newInstance0(Class.java:308)
         at java.lang.Class.newInstance(Class.java:261)
         at weblogic.security.service.SecurityServiceManagerDelegateImpl.createSecurityProvider(SecurityServiceManagerDelegateImpl.java:232)
         at weblogic.security.service.SecurityServiceManager.createSecurityProvider(SecurityServiceManager.java:939)
         at weblogic.security.service.PrincipalAuthenticator.initialize(PrincipalAuthenticator.java:151)
         at weblogic.security.service.PrincipalAuthenticator.<init>(PrincipalAuthenticator.java:257)
         at weblogic.security.service.SecurityServiceManagerDelegateImpl.doATN(SecurityServiceManagerDelegateImpl.java:581)
         at weblogic.security.service.SecurityServiceManagerDelegateImpl.initializeRealm(SecurityServiceManagerDelegateImpl.java:420)
         at weblogic.security.service.SecurityServiceManagerDelegateImpl.loadRealm(SecurityServiceManagerDelegateImpl.java:698)
         at weblogic.security.service.SecurityServiceManagerDelegateImpl.initializeRealms(SecurityServiceManagerDelegateImpl.java:731)
         at weblogic.security.service.SecurityServiceManagerDelegateImpl.initialize(SecurityServiceManagerDelegateImpl.java:874)
         at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:717)
         at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:822)
         at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:670)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:344)
         at weblogic.Server.main(Server.java:32)
    Reason: com/bea/wsrp/util/debug/Debug
    PLEASE HELP ME, IM IN BIG MESS....
    WAITING...

    hi,
    i reinstalled server and JBuilder, and again made a session bean. the server started successfully...
    but while compiling code the PREVIOUS error came with more enhancement...
    "EJBModule.jar": Spaces in the temporary directory path may cause WebLogic APPC utility to produce fatal compile errors.
    "EJBModule.jar": Spaces in the classpath may cause WebLogic APPC utility to produce fatal compile errors.
    "EJBModule.jar": C:\bea\jdk142_04\bin\javaw -classpath "C:\bea\weblogic81\server\lib\weblogic_sp.jar;C:\bea\weblogic81\server\lib\weblogic.jar;C:\bea\weblogic81\server\lib\webservices.jar;C:\Documents and Settings\Administrator\jbproject\ejbsess\EJBModule.jar;" weblogic.appc -keepgenerated -forceGeneration -compiler C:/bea/jdk142_04/bin/javac "C:/Documents and Settings/Administrator/jbproject/ejbsess/EJBModule.jar.jar" -output "C:/Documents and Settings/Administrator/jbproject/ejbsess/EJBModule.jar"
    "EJBModule.jar": <Nov 2, 2004 12:01:33 PM GMT+05:00> <Warning> <EJB> <BEA-010054> <EJB Deployment: WebLogicSes has a class ejbsess.WebLogicSesBean that is in the classpath. This class should only be located in the ejb-jar file.>
    "EJBModule.jar": <Nov 2, 2004 12:01:33 PM GMT+05:00> <Warning> <EJB> <BEA-010054> <EJB Deployment: WebLogicSes has a class ejbsess.WebLogicSesHome that is in the classpath. This class should only be located in the ejb-jar file.>
    "EJBModule.jar": <Nov 2, 2004 12:01:33 PM GMT+05:00> <Warning> <EJB> <BEA-010054> <EJB Deployment: WebLogicSes has a class ejbsess.WebLogicSes that is in the classpath. This class should only be located in the ejb-jar file.>
    "EJBModule.jar": [J2EE:160127]ERROR: Could not delete previous archive: C:\Documents and Settings\Administrator\jbproject\ejbsess\EJBModule.jar
    and the EXECUTION OF WEB LOGIC SERVER GOES FINE...
    C:\bea\jdk142_04\bin\javaw -classpath "C:\bea\weblogic81\server\lib\weblogic_sp.jar;C:\bea\weblogic81\server\lib\weblogic.jar;C:\bea\weblogic81\server\lib\webservices.jar" -ms64m -mx64m -Djava.library.path="C:/bea/weblogic81/server/bin" -Dbea.home="C:/bea" -Dweblogic.Name=myserver -Djava.security.policy=="C:/bea/weblogic81/server/lib/weblogic.policy" -Dweblogic.management.discover=false -Dweblogic.ProductionModeEnabled=false -Dweblogic.management.password=aqibjava -Dweblogic.management.username=weblogic weblogic.Server
    <Nov 2, 2004 11:56:33 AM GMT+05:00> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 1.4.2_04-b05 from Sun Microsystems Inc.>
    <Nov 2, 2004 11:56:34 AM GMT+05:00> <Info> <Configuration Management> <BEA-150016> <This server is being started as the administration server.>
    <Nov 2, 2004 11:56:34 AM GMT+05:00> <Info> <Management> <BEA-141107> <Version: WebLogic Server 8.1 SP3 Tue Jun 29 23:11:19 PDT 2004 404973
    WebLogic XMLX Module 8.1 SP3 Tue Jun 29 23:11:19 PDT 2004 404973 >
    <Nov 2, 2004 11:56:35 AM GMT+05:00> <Notice> <Management> <BEA-140005> <Loading domain configuration from configuration repository at C:\bea\user_projects\domains\enterprisedomain\.\config.xml.>
    <Nov 2, 2004 11:56:38 AM GMT+05:00> <Notice> <Log Management> <BEA-170019> <The server log file C:\bea\user_projects\domains\enterprisedomain\myserver\myserver.log is opened. All server side log events will be written to this file.>
    <Nov 2, 2004 11:56:40 AM GMT+05:00> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Nov 2, 2004 11:56:40 AM GMT+05:00> <Notice> <WebLogicServer> <BEA-000327> <Starting WebLogic Admin Server "myserver" for domain "enterprisedomain">
    <Nov 2, 2004 11:56:45 AM GMT+05:00> <Warning> <HTTP> <BEA-101296> <Unable to load the default compiler class "com.sun.tools.javac.Main". Using the default javac compiler to compile JSPs.>
    <Nov 2, 2004 11:56:50 AM GMT+05:00> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "myserver" for domain "enterprisedomain" running in Development Mode>
    <Nov 2, 2004 11:56:50 AM GMT+05:00> <Notice> <WebLogicServer> <BEA-000355> <Thread "ListenThread.Default" listening on port 7001, ip address *.*>
    <Nov 2, 2004 11:56:50 AM GMT+05:00> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    NOW WATS WRONG :(
    WAITING...

  • Servicegen error with web logic 8.1

    hi,
    i m getting :
    JBServicegenTask:
    BUILD FAILED
    C:\Documents and Settings\msa6153\jbproject\testwebserviceproj\build.xml:185: Co
    uld not create task or type of type: servicegen.
    what is getting wrong here ???
    The TraderSession example which comes with web logic 8.1 runs fine for servicegen ... this is driving me crazy .. pls help ...
    <?xml version="1.0" encoding="UTF-8"?>
    <project default="JB_AllServices">
    <target name="JBClient1" depends="JBServicegenTask">
    <clientgen
    ear="C:/Documents and Settings/msa6153/jbproject/testwebserviceproj/TestApp.ear"
    warName="WebModule_1.war" serviceName="TestSessionEJB"
    packageName="ejb.generated" autotype="true"
    clientJar="C:/Documents and Settings/msa6153/jbproject/testwebserviceproj/GeneratedWebServiceClients/TestSessionEJB_client.jar"
    overwrite="false" useServerTypes="false"
    keepGenerated="true" generateAsyncMethods="false"
    saveWsdl="true" j2me="false" useLowerCaseMethodNames="true"
    typePackageName="ejb.generated" usePortNameAsMethodName="false">
    <classpath>
    <pathelement path="C:\Documents and Settings\msa6153\jbproject\testwebserviceproj\classes;D:\bea\weblogic81\server\lib\weblogic_sp.jar;D:\bea\weblogic81\server\lib\weblogic.jar;D:\bea\weblogic81\server\lib\webservices.jar;D:\bea\jdk141_05\jre\lib\charsets.jar;D:\bea\jdk141_05\jre\lib\ext\dnsns.jar;D:\bea\jdk141_05\jre\lib\ext\ldapsec.jar;D:\bea\jdk141_05\jre\lib\ext\localedata.jar;D:\bea\jdk141_05\jre\lib\ext\sunjce_provider.jar;D:\bea\jdk141_05\jre\lib\im\indicim.jar;D:\bea\jdk141_05\jre\lib\jaws.jar;D:\bea\jdk141_05\jre\lib\jce.jar;D:\bea\jdk141_05\jre\lib\jsse.jar;D:\bea\jdk141_05\jre\lib\rt.jar;D:\bea\jdk141_05\jre\lib\sunrsasign.jar;D:\bea\jdk141_05\lib\dt.jar;D:\bea\jdk141_05\lib\htmlconverter.jar;D:\bea\jdk141_05\lib\tools.jar;"/>
    </classpath>
    </clientgen>
    </target>
    <target name="JBServicegenTask">
    <servicegen
    destEar="C:/Documents and Settings/msa6153/jbproject/testwebserviceproj/TestApp.ear"
    overwrite="true" warName="WebModule_1.war" keepGenerated="true">
    <service
    ejbJar="C:/Documents and Settings/msa6153/jbproject/testwebserviceproj/EJBModule_1.jar"
    includeEJBs="TestSessionEJB"
    serviceName="TestSessionEJB" serviceURI="TestSessionEJB"
    targetNamespace="http://ejb" protocol="http"
    expandMethods="false" generateTypes="true" style="rpc" useSoap12="false"/>
    <classpath>
    <pathelement path="C:\Documents and Settings\msa6153\jbproject\testwebserviceproj\classes;D:\bea\weblogic81\server\lib\weblogic_sp.jar;D:\bea\weblogic81\server\lib\weblogic.jar;D:\bea\weblogic81\server\lib\webservices.jar;D:\bea\jdk141_05\jre\lib\charsets.jar;D:\bea\jdk141_05\jre\lib\ext\dnsns.jar;D:\bea\jdk141_05\jre\lib\ext\ldapsec.jar;D:\bea\jdk141_05\jre\lib\ext\localedata.jar;D:\bea\jdk141_05\jre\lib\ext\sunjce_provider.jar;D:\bea\jdk141_05\jre\lib\im\indicim.jar;D:\bea\jdk141_05\jre\lib\jaws.jar;D:\bea\jdk141_05\jre\lib\jce.jar;D:\bea\jdk141_05\jre\lib\jsse.jar;D:\bea\jdk141_05\jre\lib\rt.jar;D:\bea\jdk141_05\jre\lib\sunrsasign.jar;D:\bea\jdk141_05\lib\dt.jar;D:\bea\jdk141_05\lib\htmlconverter.jar;D:\bea\jdk141_05\lib\tools.jar;"/>
    </classpath>
    </servicegen>
    </target>
    <target name="JB_AllServices" depends="JBClient1"/>
    </project>

    I got the same error.My task is to create a webservices for a ordinary java class using servicegen ant taski got the error message
    Error:couldnot create the task or type of type:servicegen
    I use the following solution that is
    <taskdef name="servicegen"
    classname="weblogic.webservices.servicegen.serviceGenTask"/>
    for this i got one error :the <taskdef> doesnot support the nested "servicegen"element.
    please anybody clarify the error and also give the procedure of creating a webservices for a simple java class using servicegen ant task

  • RD Web access SSO - remote desktop doesn't work

    Hi,
    This is my first post in here, and I hope you gays can help me out.
    I am currently experiencing some issues with RD Web SSO not working as I would like it to work.  I have found countless articles and guides describing how to get it to work, but no guide have yet helped me.
    The problem is that when I log in on the web access and open a published application everything works fine I wait 5 sec and the application pups up, but when I try to open "Remote Desktop" then I get a new log in box where I must enter my log in credentials
    again (after entering my credentials everything work great.)
    The problems I am currently facing is produced in a demo environment configured as follows:
    1x DC server (DC01) also the lic server
    2x RDS server (RDS01/02)
    1x RDS Connection broker (RDCM01)   I have created a farm named "farm01.mydomain.com"
    1x RDS Web access server (RDWA01)
    1x RDS Gateway (RDSGW01)
    (All the Servers are installed with Windows server 2008 (R2) SP1, and have the latest update.)
    I am publishing my demo environment on the internet, i have created a domain name for my gateway and my web access and they are both accessible from the web (rdwa.mydomain.com and rdsgw.mydomaim,com). I also have secured everything with an SSL wildcard certificate
    ( my external and intern domain names are the same so I am using one SSl certificate) that is trusted on the web.
    when I  log in on the web access server trough (IE9 or IE8 ) from another network(wan) and I open a published application (calculator), it pop ups in just a few seconds. But when I try to open my Remote desktop I get a login box where I must enter my
    username and password one more time.. after that remote desktop opens and everything works great.
    My laptop is a Windows 7 professional with RDP 7 and IE 9, and is not member of a domain (just a workstation), I have tested it from multiple workstations and networks(Also win 7 and RDP7) but even there I have the same problem.
    Thinks that I have tried tell now:
    I have created a kerberos account as mentioned on
    MSDN
    I have checked my group permissions as mentioned
    here
    And many more blogs and forums
    I have tried multiple settings on RDCM, RDWA, RDSGW and RDS server
    Right now I am out of ideas, and I hope you gays can help me out..
    thanks in advance,
    Pouyan

    Thnx for you advise,
    Did you go into your RemoteApp Deployment settings and change the server name to the farm name "farm01.mydomain.com?"
    Yes
    Also in the Session Broker's RemoteApp and Desktop Connection Properties window change the Connection ID to the farm name as well.
    actually I couldn't find out what to put on the connection ID so I had left it just default, but after changing it to the farm name it still doesn't work
    Did you sign you apps with the cert used on your RDS servers?
    yes, I am using a wildcard ssl certificate to sign all the servers/apps with.
    there is
    something that
    strikes me, when I log on the web access and click on a published application (that is hosted from the same RDS servers) then I get a information box. when I click on the "details" button I see on the bottom "use the following credentials to connect" and my
    domain and username are published there. But when I click on the "Remote desktop" icon and do the same I can't see this information!!
    Also I don't think that its an SSL problem, because after log in again it works perfect without any warning.

  • Itunes states "ipod detected but could not be identified properly" when I plug in my new nano. tried uninstalling/reinstalling itunes 6 times - get pop-up "itunes helper error" with abort, retry, ignore options. retry doesn't work

    I am trying to connect my new nano to my iTunes account. I keep getting msg "ipod detected but not identified properly. disconnect and reconnect. if problem persists uninstall/reinstall iTunes". I've uninstalled/ reinstalled iTunes 6 times but keep getting the same msg.
    when installing iTunes I get a pop-up "iTunes helper error" check access. with options to abort, retry, ignore. retry doesn't work. ignore installs iTunes but it doesn't recognize my nano. abort shuts down the download.
    how do I fix these problems??

    Hello, KenaiK9.  
    Thank you for visiting Apple Support Communites.  
    I see you are receiving an error and have processed some troubleshooting steps with the issue persisting.  There are just a couple more in the article below that covers this specific error.  
    iPod nano: Error message saying that iPod could not be identified properly
    Cheers, 
    Jason H.  

  • Filter Web Template with URL Cmd: doesn't work with compound infoobject ?

    Hello all,
    I've to filter the query contained on a web template with URL command, but it doesn't work.
    The web template contains only one query, and on the free chars I have 0PLANT.
    I call the web template adding to the normal url the following command:
    &FILTER_IOBJNM=0PLANT&FILTER_VALUE=33
    where 33 is the code of the plant I want to filter.
    The command is executed, I think, because the  result is "NO APPLICABLE DATA FOUND". The fact is that when I execute this query on the Bex filtering 0PLANT by value 33 the data exists.
    May be because 0PLANT on our system is in compound with 0SOURSYSTEM ? In this case, what's the value I can use as filter ?
    Thank's in advance,
    Max

    Hi,
    please see http://help.sap.com/saphelp_nw04/helpdata/en/59/edfe395dd76846e10000000a114084/frameset.htm
    especially:
    If the variant with ending 'EXT' is selected, the fully compounded value has to be entered in the external format, for example, 24.12.2000.
    If the ending 'EXT' is not used, the fully compounded value has to be entered in the internal format, for example, 20001224 for 24.12.2000.
    and
    In the internal display (see table below) you can easily determine the name of the characteristic and the filter value using the URL parameter &snippet_operations=%20 (see also Object Tag for the Properties of Web Templates). Call the Web application with this URL parameter. If you filter using the context menu, the parameters FILTER_IOBJNM and FILTER_VALUE are automatically added to the URL in the Web browser. You can then use the desired values with Command URLs in hyperlinks.
    Heike

  • Can't update camera raw in PSE 10- error message. Tried downloading manually but doesn't work.

    Need help updating to 6.7 RAW for my new camera for PSE 10. Update though help gives error message. Tried to disable firewall but still doesn't work.  Tried to download manually, but the program doesn't acknowledge it, could I have put it in the wrong place? any ideas?

    This has been happening all day.

  • Recording Save for Web in an Action still doesn't work properly in Photoshop CS6 13.0.1

    There is still an issue with making new actions that include saving for web. While recording the action, save for web functions as it should. But once the action is played, regardless of the original format the saved image should be, it gives it an html filename extension. This can be extremely frustating when you have an action that saves over a hundred images from a single action.
    I have seen posts in Adobe forums from many people regarding this very irritating bug, including posts from Adobe employees acknowledging the bug. This was present in the Beta, the initial release, and in this 13.0.1 update. No fix.
    http://feedback.photoshop.com/photoshop_family/topics/ps_cs6_actions_recorded_action_expor ts_html_instead_of_jpg
    The employee acknowledged this bug THREE months ago (as of this post), yet all things considered, this doesn't seem like something that would take three months to fix!
    I have spoken about this bug with a friend that is a computer programmer. Considering that the action is saving the file correctly, and it's only the name that is not saving properly indicates that this is a superficial error, and not an issue that would require rewriting the code completely. Also consider that this WAS functioning properly in CS5, and that this is a very easily reproducible bug. Adobe should have plenty of information required to correct the issue. I understand that this fix may be more or less difficult to do than what I am suggesting, but it should have been fixed by now.
    I don't understand this mentality. Please Adobe... Put CS7 down for a little while, and fix what needs to be fixed in CS6. People (myself included) have paid A LOT of money for your products, it's not unreasonable to expect them to work properly. Bugs happen, it's understandable, but it's not unrealistic to expect a fix for them when the software is as expensive as it is. Is there actually any plan to correct this issue?

    See also:  http://forums.adobe.com/message/4662367#4662367
    -Noel

  • WPC - MIME object in web article with anonymous user doesn't work correctly

    Hi all,
    we have a problem with the Web Page Composer (NW07 SP14 + Patch 01) and contents for anonymous users.
    We have define a site with the following elements: article (with text and jpg), paragraph (with text and pdf link) and a jpg image. All texts and the "standalone" jpg (not used in article/paragraph) are displayed correctly. The jpg in the article and the pdf link does not work correctly ("broken" link, PDF link requires a login name ?).
    The direct image in the website has the following link:
    <server>/irj/go/km/docs/wpccontent/Sites/alogis_v01_home/Site%20Content/graphics/bild01.jpg
    (short url is turned off for error search...)
    The jpg in the article has the following link (this is the same jpg as the previous picture bild01.jpg):
    <server>/irj/servlet/prt/portal/prtroot/docs/guid/10c76155-d8c8-2a10-a4a5-fa0a0c7246fc
    And the PDF link is:
    <server>/irj/servlet/prt/portal/prtroot/docs/guid/707470fb-e3c8-2a10-94b4-972b06419c40
    For anonymous users the last two urls are not reachable. These urls require a login (the first link not). The links work correctly with a registered user, not with an anonymous user.
    Does anybody have an idea? Is there someone who had this problem before and solved it?
    Many thanks in advance.
    Mirko Galetzka

    Hi,
    I'm not sure if you're aware, but there is a 3.0 beta version of Data Modeler.
    You can download it freely from here :
    http://www.oracle.com/technetwork/developer-tools/datamodeler/overview/index.html
    There are many bugs fixed there.

  • WEB DYNPRO AND WEB SERVICE MODEL: ejb remove doesn't work

    Hi guru,
    this is my scenario:
    J2EE-7.00 SP14-> PORTAL ->7 sp14  ->WEB DYNPRO FOR JAVA ->Web Service Model ->  WS Custom with MDM API JAVA
    The my WS is a Stateless Session Bean and i have this code:
         public void ejbCreate() throws CreateException {
              loc.setMinimumSeverity(Severity.INFO);
              loc.addLog(new ConsoleLog());
              this.plug = (MdmPlug) new MdmPlug(true);
              try {
                   this.loadProperties();
                   this.plug.connect(
                        hostname,
                        repository,
                        language,
                        username,
                        password);
                   loc.fatalT(msgLog+"[ ejbCreate ] START....");
              } catch (Exception e) {
                   if (e.getMessage()!=null)this.error=e.getMessage();
                   loc.fatalT(msgLog, this.error);
    public void ejbRemove() {
              try {
                   loc.fatalT(msgLog+"[ ejbRemove ] STOP....");
                   this.plug.close();
                   loc.fatalT(msgLog+"[ ejbRemove ] ...OK");
              } catch (ControlException e) {
                   loc.fatalT(msgLog+"[ ejbRemove ] ...K O !!!!");
    The my problem is:
    When open the IE and open my WD  the new EJB's instance is created (I see my log +"[ ejbCreate ] START....in LOG VIEWER).
    But, when I do log-off or I close IE, I don't see "[ ejbRemove ] STOP...." in LOG.
    Result:
    I open the MDM connection but not close it.
    Where is the problem?
    In Web Dynpro?
    In Web services?
    I have to create another WS's type?

    Hi Max,
    You can't run an EJBControl from a simple java class using either @Control or programmatic instantiation.
    The EJBControl implementation relies on Resource Context events so it "needs" a container context to run.
    You can use the ControlTestCase to unit test an EJB via EJB Control. You will need to configure the JNDIContextEnv annotation to bind to the server where the EJB is deployed. Note that this only works with EJBs that have a remote interface and a global JNDI name.
    The test case would look something like this (I've seen this example run as long as the JUnit classpath includes weblogic.jar)
    public class SimpleClient extends ControlTestCase {
    public void setUp() throws Exception { super.setUp(); }
    public void tearDown() throws Exception { super.tearDown(); }
    @Control
    @EchoEjbControl.JNDIContextEnv(
    contextFactory="weblogic.jndi.WLInitialContextFactory",
    providerURL="t3://localhost:7001",
    principal="weblogic",
    credentials="weblogic"
    public EchoEjbControl echoEjb;
    public void testXXX() {} // ... test methods that reference echoEjb
    Thanks
    Vimala

  • Error updating .mac message...FIx doesn't work???

    I get the "there was an error updating .mac" error message when trying to publish my website. I've tried the File > Publish all to .mac route and I still get the same error message. Any ideas what I do now? Any other suggestions or alternatives?

    I get the "there was an error updating .mac" error message when trying to publish my website. I've tried the File > Publish all to .mac route and I still get the same error message. Any ideas what I do now? Any other suggestions or alternatives?

  • Service error...  tried everything but doesn't work!!  Help please!

    I just got my brand new video ipod, and I can't even download anything!!!
    I installed the CD that came with the ipod.
    Ipod IS recognized by the windows, but not in iTunes.
    I see in the discussion that so many people had these errors...
    "ipod service error" under ipod updater and
    "The software required for communicating with the ipod is not installed correctly. Please reinstall itunes to install the ipod's software."
    I've tried almost everything that's suggested in the discussion. Re-installed iTunes so many times, used Windows Install Cleanup, used msconfig under Run and changed system configuration utility. NOTHING.
    Could someone suggest me anything else I can do?
    I'm really disappointed and frustrated... I was so excited to get my new ipod, and didn't expect to run into a problem from the start!!!!
    And I've been working on this for 2 days!
    Dell   Windows XP  

    problems after problems...
    Ok, I got the ipod service error taken care of.
    Thanks to this thread.
    http://discussions.apple.com/thread.jspa?messageID=1388732&#1388732
    So now the ipod updater has updated my ipod successfully.
    NOW, the itune doesn't open.
    everytime I try to open it, it gives the "iTunes has encountered a problem and needs to close." error.
    So I'm off to this new problem...
    At least I got the service error taken care of.

  • Insight / tk/tcl error in arch " insight gui for gdb doesn't work"

    I just compiled insight package on arch linux perfectly and when i try to run the software, i get the following error.
    1. i get the same error while using tk8.4 and tcl8.4
    2. then i upgraded to tk8.6 and tcl8.6 using pacman, and i still get the same error, even if i correctly set TK/TCL_LIBRARY paths.
    why do i always get these errors.
    somebody on #archlinux told me that there is an error in xorg and tk , but i don't know what. can anybody help.
    X.Org X Server 1.5.3
    Release Date: 5 November 2008
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 2.6.27-ARCH i686
    Current Operating System: Linux myhost 2.6.27-ARCH #1 SMP PREEMPT Mon Dec 8 22:01:01 UTC 2008 i686
    Build Date: 17 December 2008  08:20:05PM
    Tk_Init failed: Can't find a usable tk.tcl in the following directories:
        /usr/local/share/tk8.4 /usr/local/lib/tk8.4 /usr/lib/tk8.4 /usr/local/library /usr/library /usr/tk8.4.1/library /tk8.4.1/library
    /usr/local/share/tk8.4/tk.tcl: no event type or button # or keysym
    no event type or button # or keysym
        while executing
    "bind Listbox <MouseWheel> {
        %W yview scroll [expr {- (%D / 120) * 4}] units
        (file "/usr/local/share/tk8.4/listbox.tcl" line 182)
        invoked from within
    "source /usr/local/share/tk8.4/listbox.tcl"
        (in namespace eval "::" script line 1)
        invoked from within
    "namespace eval :: [list source [file join $::tk_library $file.tcl]]"
        (procedure "SourceLibFile" line 2)
        invoked from within
    "SourceLibFile listbox"
        (in namespace eval "::tk" script line 4)
        invoked from within
    "namespace eval ::tk {
        SourceLibFile button
        SourceLibFile entry
        SourceLibFile listbox
        SourceLibFile menu
        SourceLibFile panedwindow
        SourceLibFile ..."
        invoked from within
    "if {$::tk_library ne ""} {
        if {[string equal $tcl_platform(platform) "macintosh"]} {
        proc ::tk::SourceLibFile {file} {
            if {[catch {
            namesp..."
        (file "/usr/local/share/tk8.4/tk.tcl" line 393)
        invoked from within
    "source /usr/local/share/tk8.4/tk.tcl"
        ("uplevel" body line 1)
        invoked from within
    "uplevel #0 [list source $file]"
    This probably means that tk wasn't installed properly.

    same problem here
    Last edited by Decapsuleur (2009-04-13 18:56:42)

  • I can't find any error in my vi but it just doesn't work please help

    I'm trying to control a robot named cs-113 and I find someone has already achieved this. He wrote a vi called robot cs-113.vi and I just tried to write a same one but it just doesn't work. Can anyone tell me why it doesn't work? Thanks for your help!
    由 normanshi 在 08-01-2006 04:11 AM 上編輯的訊息
    Attachments:
    robot-cs113.vi ‏79 KB
    cs-113 test.vi ‏62 KB

    It would really help if you were a little more specific about what isn't working. Also try debugging your application in highlighted execution with probes to find out exactly what data you're sending out the port.
    Jarrod S.
    National Instruments

Maybe you are looking for