Simple Sample for BackgroundSound
Hi,
I only want to add a simple BackgroundSound to my scene, but it does not work! I get no error but I get no sound, too! Has anyone a simple example for me which shows how it works or can someone tell me what's wrong with my code? Here is my code:
MediaContainer mediaContainer = new MediaContainer();
try {
mediaContainer.setURLObject(new URL("File:///c:/demo.wav"));
catch (MalformedURLException e) {
System.out.println(e.toString());
BackgroundSound sound = new BackgroundSound();
BoundingSphere soundBounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 1000.0);
sound.setSchedulingBounds(soundBounds);
sound.setSoundData(mediaContainer);
sound.setLoop(-1);
sound.setEnable(true);
objTrans.addChild(sound);
objTrans is a TransformGroup. I add it to the Root-BranchGraph. I do this in the createSceneGraph()-Method.
Greetings
Alex
cough declare the audio device first cough :D
SimpleUniverse u = new SimpleUniverse(my_canvas_3D);
AudioDevice audioDev = u.getViewer().createAudioDevice();
(>'.')>
Similar Messages
-
Trying to run a Web Dynpro Simple Sample with no luck??
Hi I have downloaded a Web Dynpro and BPM simple sample application from this location: The problem is after configuring the CE instance and setting everything up, when i Deploy and Run this app i get the following error displayed can some one please help?? 500 Internal Server Error SAP NetWeaver Application Server/Java AS The initial exception that caused the request to fail, was: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) ... 115 more See full exception chain for details. Failed to process request. Please contact your system administrator. While processing the current request, an exception occured which could not be handled by the application or the framework. If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file). For further information about the Web Dynpro error page, error analysis and a description of well-known error situations, see SAP note 1113811. Correction Hints Exception could be caused by the development component: tcwdwebdynpro Note: The above hints are only a guess. They are automatically derived from the exception that occurred and therefore can't be guaranteed to address the original problem in all cases. System Environment Client Web Dynpro Client Type AJAX Client User agent Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; LLY-EMA-EN; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; LLY-EMA-EN; LLY-EMA-EN) Client Type msie7 Client Type Profile ie6 ActiveX enabled Java Applets enabled Accessibility mode disabled Inline CSS false Validate by rendering true Server Web Dynpro Runtime vendor: 'sap.com', name: 'tc/wd/webdynpro', location: 'SAP AG', counter: '7.2001.20091210105536.0000', change number: '79724', codeline: NW720_01_REL J2EE Engine 7.20.3710.69682.20090922144234 System ID (SID) CE1 Server Node ID |3191650|31916|Server 00 00_31916|YHP30964.ema.lilly.com/40.205.138.181|SERVER|RUNNING Java VM SAP Java Server VM, version:6.1.007, vendor: SAP AG Operating system Windows XP, version: 5.1, architecture: x86 Application Java EE Application (deployable object) ides.com/soacmpssc~salsord Web Dynpro Application CreateSalesOrderApp Request URI /webdynpro/resources/ides.com/soacmpssc~salsord/CreateSalesOrderApp Version vendor: 'ides.com', name: 'soa/cmp/ssc/salsord', location: 'localDevelopment', counter: '20100329143545', change number: 'null' Session & Other Session Locale en_GB Session Timezone Greenwich Mean Time Time of Failure Mon Mar 29 15:38:53 BST 2010 (Java Time: 1269873533200) Session User ClientUser(id=USER.PRIVATE_DATASOURCE.un:Administrator, name=Administrator) Http Session Id tCJhFjXUItrW3M0cACKdKt9MDaBiM0upJwFiszAA_SAP Client Window Id Application Session Id b2a8d9023b4011dfb81f001b7889332c Web Dynpro Code Generation Infos ides.com/soacmpssc~salsord WD web module webdynpro/resources/ides.com/soacmpssc~salsord: SapDictionaryGenerationCore 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:31:05+0000, changelist=69541, host=pwdfm222, is-central=true) WD web module webdynpro/resources/ides.com/soacmpssc~salsord: SapDictionaryGenerationTemplates 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:31:22+0000, changelist=69541, host=pwdfm222, is-central=true) WD web module webdynpro/resources/ides.com/soacmpssc~salsord: SapGenerationFrameworkCore 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:18:18+0000, changelist=63859, host=pwdfm222, is-central=true) WD web module webdynpro/resources/ides.com/soacmpssc~salsord: SapIdeWebDynproCheckLayer 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:52:50+0000, changelist=69852, host=pwdfm222, is-central=true) WD web module webdynpro/resources/ides.com/soacmpssc~salsord: SapMetamodelCommon 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:22:47+0000, changelist=69781, host=pwdfm222, is-central=true) WD web module webdynpro/resources/ides.com/soacmpssc~salsord: SapMetamodelCore 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:19:24+0000, changelist=69781, host=pwdfm222, is-central=true) WD web module webdynpro/resources/ides.com/soacmpssc~salsord: SapMetamodelDictionary 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:26:44+0000, changelist=69542, host=pwdfm222, is-central=true) WD web module webdynpro/resources/ides.com/soacmpssc~salsord: SapMetamodelWebDynpro 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:34:20+0000, changelist=69853, host=pwdfm222, is-central=true) WD web module webdynpro/resources/ides.com/soacmpssc~salsord: SapWebDynproGenerationCore 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:53:23+0000, changelist=69852, host=pwdfm222, is-central=true) WD web module webdynpro/resources/ides.com/soacmpssc~salsord: SapWebDynproGenerationTemplates 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:52:22+0000, changelist=69852, host=pwdfm222, is-central=true) WD web module webdynpro/resources/ides.com/soacmpssc~salsord: SapWebDynproRuntimeGen 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:48:47+0000, changelist=64407, host=pwdfm222, is-central=true) sap.com/tcwdapi WD web module webdynpro/resources/sap.com/tcwdapi: SapDictionaryGenerationCore 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:31:05+0000, changelist=69541, host=pwdfm222, is-central=true) WD web module webdynpro/resources/sap.com/tcwdapi: SapDictionaryGenerationTemplates 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:31:32+0000, changelist=69541, host=pwdfm222, is-central=true) WD web module webdynpro/resources/sap.com/tcwdapi: SapGenerationFrameworkCore 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:18:18+0000, changelist=63859, host=pwdfm222, is-central=true) WD web module webdynpro/resources/sap.com/tcwdapi: SapIdeWebDynproCheckLayer 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:52:50+0000, changelist=69852, host=pwdfm222, is-central=true) WD web module webdynpro/resources/sap.com/tcwdapi: SapMetamodelCommon 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:22:47+0000, changelist=69781, host=pwdfm222, is-central=true) WD web module webdynpro/resources/sap.com/tcwdapi: SapMetamodelCore 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:19:24+0000, changelist=69781, host=pwdfm222, is-central=true) WD web module webdynpro/resources/sap.com/tcwdapi: SapMetamodelDictionary 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:26:44+0000, changelist=69542, host=pwdfm222, is-central=true) WD web module webdynpro/resources/sap.com/tcwdapi: SapMetamodelWebDynpro 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:34:20+0000, changelist=69853, host=pwdfm222, is-central=true) WD web module webdynpro/resources/sap.com/tcwdapi: SapWebDynproGenerationCore 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:53:23+0000, changelist=69852, host=pwdfm222, is-central=true) WD web module webdynpro/resources/sap.com/tcwdapi: SapWebDynproGenerationTemplates 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:53:55+0000, changelist=69852, host=pwdfm222, is-central=true) WD web module webdynpro/resources/sap.com/tcwdapi: SapWebDynproRuntimeGen 7.2001.20091202163157.0000 (release=NW720_01_REL, buildtime=2009-12-12T18:48:47+0000, changelist=64407, host=pwdfm222, is-central=true) Detailed Error Information Detailed Exception Chain com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exception was thrown in preprocessing phase of application session b2a8d9023b4011dfb81f001b7889332c. The causing exception is nested. RID=b2a8d9003b4011dfbdb7001b7889332c at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:606) at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:335) at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:315) at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87) at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:76) at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doGet(AbstractDispatcherServlet.java:55) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152) at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:447) at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:264) at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56) at com.sap.engine.core.thread.execution.Executable.run(Executable.java:115) at com.sap.engine.core.thread.execution.Executable.run(Executable.java:96) at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:315) Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for component com.ides.soa.cmp.ssc.salsord.createsalesord.CreateSalesOrd. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?) at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:98) at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:79) at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:381) at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:566) at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doPreprocessing(ClientApplication.java:1438) at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:603) ... 43 more Caused by: java.lang.reflect.InvocationTargetException 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:513) at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:71) ... 48 more Caused by: com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WS metadata destination 'ERP_META' and WS interface 'SalesOrderBasicDataByBuyerAndBasicDataQueryResponse_In'. One possible reason is that the metadata destination 'ERP_META' has not been properly configured; check configuration. at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:558) at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.readOperationsFromWSDL(WSModelInfo.java:457) at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadataInternal(WSModelInfo.java:425) at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:399) at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateModelInfo(WSModelInfo.java:334) at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateModelInfo(WSModelInfo.java:307) at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.<init>(WSTypedModel.java:93) at com.ides.soa.cmp.ssc.salsord.findsomodel.FindSOModel.<init>(FindSOModel.java:114) at com.ides.soa.cmp.ssc.salsord.createsalesord.CreateSalesOrd.<init>(CreateSalesOrd.java:732) at com.ides.soa.cmp.ssc.salsord.createsalesord.wdp.InternalCreateSalesOrd.<init>(InternalCreateSalesOrd.java:8892) ... 53 more
Hi Anixan
Please update the SAP AS Java at windows >> Preference >> SAP AS Java >> Add new SAP >> Put instance Hostname like 'CE1' and Instance Number like '00'. Then please verify that is connected or not in NWDS at windows >> show view >> Others >> Server >> Servers
**Also update the Update your server IP address and host name in host file entry at (Start > RUN > drivers > etc > host file)
and update JAVA_HOME system enviromental variable in my computer (My computer > Priperties >> Advance >> Startup and Recovery >> Enviromental Variable >> System Variables >> Add new JAVA_HOME parameter with path for installed Java JDK)
Please check here http://help.sap.com/saphelp_nw70/helpdata/EN/43/3976df43b33575e10000000a11466f/content.htm
Hope it helps
Regards
Arun -
BPM Simple Sample Application Error!!!
hi,
i have some problems with the bpm simple sample applications on our local sap nw ce system (7.1 ehp1 sp0)?
on the esworkplace i have download the *.sca file and have import this file into my nwds.
i following the simple sample documentation an define and configure the ERP and ERP_META Destinations on the nwds and our local sap nw ce system.
also i do the future steps which was described (service registry, proxy settings, ...).
on page 16 of the simple sample documetation is defined which Sofware Component has dependencies to other SC´s.
the SC "BPEM_BUILDT" depends on the SC "ESMP_BUILDT" and "COMP_BUILDT", the SC "COMP_BUILT" doesnt exist on my nwds (7.1 ehp1 sp0).
has everybody any idea why the SC "COMP_BUILT" not exist on my nwds???
still this absent SC i can deploy the bpm simple sample successful to our sap nw ce system.
now i do the post deployment steps for the bpm samples.
after this i call the simple sample application on my sap nw ce portal and can execute the "Initiate Equipment Phase In Process".
now i can see a new entry on my uwl, i open the uwl task.
at step 1, 2, 3 i change no data an click next, after step 3 (create equipment) i get the following error:
com.sap.esi.esp.service.server.query.discovery.ExtendedServiceException: no endpoints found for interface <br>
IndividualMaterialERPCreateRequestConfirmation_In_V1 <br>
<br>
detailed error message: <br>
com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WS metadata <br>
destination 'ERP_META' and WS interface 'IndividualMaterialERPCreateRequestConfirmation_In_V1'. One possible reason is that
Caused by: com.sap.esi.esp.service.server.query.discovery.ExtendedServiceException: no endpoints found for interface
IndividualMaterialERPCreateRequestConfirmation_In_V1
at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getEndpointConfigurations(DestinationsHelperImplSoa.java:1184)
at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getWSDLUrl(DestinationsHelperImplSoa.java:847)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.getWSDLUrl(GenericServiceFactory.java:547)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:377)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:230)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:195)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:529)
... 82 more
after this error i test the endpoint manually. i call the service registry (sr.esworkplace.sap.com) an search the service:
IndividualMaterialERPCreateRequestConfirmation_In_V1
now i test the endpoint with the following data:
MaintenancePlanningPlantID: 0001
WorkCentreID: TECH.SER
CategoryCode: M
the return is the following:
TypeID:005(PLM_SE_EAM_SC)
SeverityCode:1
Note:Individual Material 000000000010006703 is created
i think the return from the service was successful.
i hope somebody can help me!!!
thanks,
FabianHi Arafat,
the destinations for the services are already configured::
at destination template management > destination templates the following is defined:
- Tab: General
Destination Name: ERP
Destination Type: Service Registry
System: ABAP
System Name: HU2
Hostname: iwdf2379
Installation Nr.: 0120003411
Client: 800
- Tab: Security
Authentication: HTTP Authentication, User ID/Password (Basic)
User ID: <es workplace user (suser)>
pw: ******
and
- Tab: General
Destination Name: ERP_META
Destination Type: Service Registry
System: ABAP
System Name: HU2
Hostname: iwdf2379
Installation Nr.: 0120003411
Client: 800
- Tab: Security
Authentication: HTTP Authentication, User ID/Password (Basic)
User ID: <es workplace user (suser)>
pw: ******
also i have configured the same destination on my nwds.
i think this is correct?
futher ideas, why this doesnt work?
thanks,
fabian -
Simple report for lock users not actives in last 30 days ?
Hi, we need code in SE38 simple report for lock all users not actives in last 30 days.
This sample is good but need check : user its inactive in last 30 days.
http://www.sap-basis-abap.com/abap019.htm
Thank you.You do not need a report to do this. The instance parameter
login/password_max_idle_productive
will do this for you.
Cheers
Graham Robbo -
Xslt sample for entities to keyboard character
We need the xslt sample for entities replacement text. For instance I have to convert the entities ‘(’ to keyboard character ‘(’.
Hi,
Here's a very simple one... If the param1 matches with any value in the input it will return true...
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="param1"/>
<xsl:template match="/">
<xsl:value-of select=".//*/text() = $param1"/>
</xsl:template>
</xsl:stylesheet>
Cheers,
Vlad -
Create Maintenance Request - Simple Sample provided by SAP
Hi!
I'm testing Create Maintenance Request Sample at
[Create Maintenance Request, Simple sample|http://esworkplace.sap.com/socoview(bD1lbiZjPTAwMSZkPW1pbg==)/render.asp?packageid=DE0426DD9B0249F19515001A64D3F462&id=A644A34757114FBEBB64A28BB7ABE2BF]
In the "Resources" section of this page I press "Run this sample" and at the first step (Enter data), when I press 'Next' with the default Equipment (10000461) I get the following errors:
1 - Backend function, IndividualMaterialByIDQueryResponse_In.IndividualMaterialByIDQueryResponse_In not found
2 - Error occured while executing the service: null
I can see the Equipment 10000461 in the SAP ES Workspace ( ERP 6.0 - System ID: HU2, TCode: IE03)
Thanks for your help,
Best Regards,
Carlos DuarteHI,
I have the same issue with other Simple Sample apps.
Kind regards,
Maxat -
More simple way for creating dummy variables
I am finding for more simple way for creating dummy variables.
For analyzing by linear regression, logistic regression ... creating dummy variables from categorical data is necessary.
Most simplest way for creating dummy variables is may be pivot function.
But I need more simple method.
Anyone's idea. I welcome.
Naoya IkedaHi Naoya. Can you give an example of a sample input and output, with a description of what you'd like to do?
Thanks,
Ehren -
Custom Sync Plugin Sample for Web Tools 2007
Hello,
Does anyone have a sample Custom Sync Plugin that works for Web Tools 2007? I have been unable to get the sample provided working, actually cannot even compile it, and was just curious if there was a simple sample that worked that I could use as my base. Please let me know.
Thank you,
KristenHi Shawn,
Yes, I am using Visual Studio 2005 Professional with the .Net 2.0 framework and 2007. However, most of the methods are not there, and things seem to have changed drastically, however the sample is still referencing the old. Is there something that I am missing?
Please let me know.
Thanks,
Kristen -
Code samples for SSLEngine?
I am attempting to re-implement the SSL support in our product under the new non-blocking I/O model. SSLEngine seems to be the starting point...but I can't find any code samples anywhere showing it working.
Anybody have any ideas where to look?
There used to be a whole suite of samples in the JSSE...but don't know where they are, now that the JSSE is part of J2SE :(SSLEngine is new in tiger (JDK 1.5), and as such, hasn't been released
publically yet. I believe they are looking at sometime in Q1 2004 for the first
public beta, and ships later in 2004. If you're a licensee, you can get early drops.Yup...I'm currently working with JDK1.5 b30.
Anyway, SSLEngine will eventually have sample code, but nothing has been produced yet.
On the whole, the non-blocking model takes some care to use correctly. The SSLEngine
is pretty straightforward, but it's not as simple as SSLSocket.I'm aware of that - we've already rewritten our product to utilize java.nio. That's why I was
hoping to find some code samples for the new SSLEngine class.
To answer your other (implied) question, the sample
code for JDK 1.4 can be found in the JSSE Reference Guide. See:
http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html#CodeExamples
Thanks for the link...I guess I should have looked in the OLD jdk docs. The 1.5 docs
don't include most of the 'guide' folder from previous releases. -
Hi all,
I'm trying to install the jaxrpc simple sample (webservice), the build and deployment are ok, but the client access throws the following exception :
/c/Sun/AppServer/samples/webservices/jaxrpc/simple/src > appclient.bat -client
../assemble/client/jaxrpc-simpleClient.jar
19 mai 2004 10:04:59 com.sun.enterprise.appclient.Main <init>
ATTENTION: ACC003: Application threw an exception.
javax.naming.NamingException: Deployment error for service-ref java:comp/env/ser
vice/HelloWorld. Can't find service-qname.
at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManager
Impl.java:584)
at com.sun.enterprise.appclient.AppContainer.preInvoke(AppContainer.java
:132)
at com.sun.enterprise.appclient.Main.<init>(Main.java:374)
at com.sun.enterprise.appclient.Main.main(Main.java:92)
19 mai 2004 10:04:59 com.sun.enterprise.appclient.Main <init>
ATTENTION: ACC010: Make sure the server port is not disabled and that you are lo
oking up a valid name
So it seems that the JNDI doesn't contain the java:comp/env/service/HelloWorld binding.
Any idea ?
Thanks
Denis QueffeulouI have checked the host and port wich are localhost and 8080. The server displays a documentation page at this address (at /).
Here are the last lines of server.log :
[#|2004-05-19T09:34:07.811+0200|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.deployment|_ThreadID=13;|DPL5306:Servlet Web Service Endpoint [HelloIF] listening at address [http://LUC.win.wokup:8080/jaxrpc-simple/simple]|#]
[#|2004-05-19T09:34:09.033+0200|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.deployment|_ThreadID=13;|DPL5110: EJBC - END of EJBC for [jaxrpc-simple]|#]
[#|2004-05-19T09:34:09.714+0200|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.deployment|_ThreadID=13;|Total Deployment Time: 15322 msec, Total EJB Compiler Module Time: 13199 msec, Portion spent EJB Compiling: 86%
Breakdown of EJBC Module Time: Total Time for EJBC: 13199 msec, CMP Generation: 0 msec (0%), Java Compilation: 0 msec (0%), RMI Compilation: 0 msec (0%), JAX-RPC Generation: 11536 msec (87%),
|#]
[#|2004-05-19T09:34:09.734+0200|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.deployment|_ThreadID=13;|deployed with moduleid = jaxrpc-simple|#]
[#|2004-05-19T09:34:09.804+0200|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.admin|_ThreadID=13;|ADM1041:Sent the event to instance:[ApplicationDeployEvent -- deploy jaxrpc-simple]|#]
[#|2004-05-19T09:34:10.034+0200|INFO|sun-appserver-pe8.0|javax.enterprise.system.container.web|_ThreadID=13;|WEB0100: Loading web module [jaxrpc-simple:jaxrpc-simple.war] in virtual server [server] at [jaxrpc-simple]|#]
[#|2004-05-19T09:34:11.987+0200|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.admin|_ThreadID=13;|ADM1042:Status of dynamic reconfiguration event processing:[success]|#]
[#|2004-05-19T10:47:34.551+0200|WARNING|sun-appserver-pe8.0|javax.enterprise.system.tools.admin|_ThreadID=11;|AdminGUI: C:\Sun\AppServer\lib\install\applications\admingui\adminGUI_war\index_fr.html File Not Found|#]
LUC.win.wokup is localhost
I wonder if i can find the "java:comp/env/service/HelloWorld" with the admin GUI (it shows nothing).
Denis -
Help me with JWSDP simple sample
I've tried the "simple" sample in JWSDP, and I'm sure I have finished
the needed setup like what was expressed in JavaWSTutorial.pdf.
But I meet this error message:
after input "asant run-sample" , it finally displayed:
deploy-sjsas:
[echo] Deploying war for simple to sjsas
[appserv-deploy] Attribute password is deprecated. Please use passwordfile inst
ead.
[appserv-deploy] Attribute sunonehome is deprecated. Please use asinstalldir in
stead.
[appserv-deploy] Executing: deploy user admin password 62285432 --force=tru
e enabled=true name securesimple verify=false precompilejsp=false --uplo
ad=true "C:\tool\jwsdp-1.6\xws-security\samples\simple\dist\securesimple.war"
[appserv-deploy] WARNING: The --password option is insecure and should not be us
ed since it can compromise your password. Please use either the command prompt
or the --passwordfile option.
[appserv-deploy] 2005-7-30 0:09:20 com.sun.appserv.management.client.ProxyFactor
y getInstance
[appserv-deploy] ����: ProxyFactory.getInstance: Failure trying to create a new
ProxyFactory: java.io.IOException: Invalid user or password
BUILD FAILED
C:\tool\jwsdp-1.6\xws-security\samples\simple\build.xml:179: An exception occurr
ed while running the command. The exception message is: CLI171 Command deploy f
ailed : Deployment of application failed - java.io.IOException: Invalid user or
password; requested operation cannot be completed.
What should I do on earth ???? Help me please
(sorry for my bad English)Hi!
Please Im pretty new to CMR and appreciate if you
could help me answer a simple question.
Database model:
WriterTbl
ID___ Name
1____RodJohnson
2____PankajKumar
BookTbl
FK___Name
1____J2EE-DesignAndDevelopment
1____ProfessionalJSP
2____J2EESecurity
Question:
I ve two CMP entities: WriterBean and BookBean
I ve set the relations between Writer and Books, and
it works as far as a writer only has one book.
That because I set the FK also as a PK to the
BookBean. And when I try to create next book for a
writer it fails with duplicate-exception, logicaly.
Can I solve this without any need of specifing a
primary key for books at all?I dont see how. In your AS you would have had to specify either a primary key or primary class or unknown Object as primary key.
How is CMP handling no-pk entity and is relations
working without any pk?Using s1as l have found out that l if you do not specify a primary key on creation of entity bean, the ejbCreate returns null as the primary key which causes an EJBException.
Why? Cos I think a primary key has to be returned at the same time as the handle to the entity bean is stored in the Context. Why it would not insert the data first then request a primary key l dont know. I must say that this happens when you try to use autoincrement in the primary key column.
Do EJB vendors manage no pk ejbs? what about ejb
restrictions.
Reading the specification literature gives the impression that they do, but practice is another thing entirely.
I ve read that there must be a primary key, but not
necessery a database field - HOW? could you please
explain!
That the theory. When you find the answer to HOW(?), please let us know.
Derrick
Please this is very urgent and I Thank you very much!! -
OJMS and MDB sample for OC4J9.0.3 and 9iR2 anywhere?
I'm using 9iR2 and OC4J9.0.3 on Win2KSP2.
I trying to enqueue a message using pl/sql that is dequeued by an MDB.
I can get a test case to work but OC4J raises an error in OC4J console about not returning connections to a pool after I've enqueued four test messages.
Is there a simple sample/how-to I can use to see where I'm going wrong?
Thanks in advance
SandyOk...
Thanks for your help!
So I will stick with Oracle8i v8.1.7 until the patch is available on Windows...
Maybe I'll make a try with Linux also (thanks for noting me!), but probably will the Windows patch be available before I succeed with Oracle9i on Linux...
I will post a reply once I get the patch working on either Linux or Windows!
Regards,
Magnus. -
Sample for A/R invoice and Incoming Payment
Hi,
Have any samples for create A/R invoice and incoming payment by SDK?
Which related tables are used?
Thanks!
Regards,
OnOn,
If you look at the SDK Help Documentation, specifically at the Documents, Document_Lines and Payments Objects for the DI API, the help discusses the tables involved as well as gives samples of common documents.
Eddy -
Could u plz help me to find simple example for how to save data file in a spread sheet or any other way in the real time controller for Sbrio 9642 using memory or usb flash memory
Here are a few Links to a helpful Knowledge Base article and a White Paper that should help you out: http://digital.ni.com/public.nsf/allkb/BBCAD1AB08F1B6BB8625741F0082C2AF and http://www.ni.com/white-paper/10435/en/ . The methods for File IO in Real Time are the same for all of the Real Time Targets. The White Paper has best practices for the File IO and goes over how to do it.
Alex D
Applications Engineer
National Instruments -
XSLT samples for XML- ABAP mapping
Hi all,
Does anyone have a XSLT samples for XML->ABAP mapping ?
regardsfirst create XSLT program by copy pasting the below given code and give the program name as "Y_TEST"
<b>XSLT code</b>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:strip-space elements="*"/>
<xsl:output indent="yes"/>
<xsl:template match="NewDataSet">
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<OUTTAB>
<xsl:for-each select="Table">
<OUTTAB1>
<AIRPORTCODE>
<xsl:value-of select="AirportCode"/>
</AIRPORTCODE>
<CITYOFAIRPORTNAME>
<xsl:value-of select="CityOrAirportName"/>
</CITYOFAIRPORTNAME>
<COUNTRY>
<xsl:value-of select="Country"/>
</COUNTRY>
<COUNTRYABBRIVATION>
<xsl:value-of select="CountryAbbrviation"/>
</COUNTRYABBRIVATION>
<COUNTRYCODE>
<xsl:value-of select="CountryCode"/>
</COUNTRYCODE>
<GMTOFFSET>
<xsl:value-of select="GMTOffset"/>
</GMTOFFSET>
<RUNWAYLENGTHFEET>
<xsl:value-of select="RunwayLengthFeet"/>
</RUNWAYLENGTHFEET>
<RUNWAYELEVATIONFEET>
<xsl:value-of select="RunwayElevationFeet"/>
</RUNWAYELEVATIONFEET>
<LATITUDEDEGREE>
<xsl:value-of select="LatitudeDegree"/>
</LATITUDEDEGREE>
<LATITUDEMINUTE>
<xsl:value-of select="LatitudeMinute"/>
</LATITUDEMINUTE>
<LATITUDESECOND>
<xsl:value-of select="LatitudeSecond"/>
</LATITUDESECOND>
<LATITUDENPEERS>
<xsl:value-of select="LatitudeNpeerS"/>
</LATITUDENPEERS>
<LONGITUDEDEGREE>
<xsl:value-of select="LongitudeDegree"/>
</LONGITUDEDEGREE>
<LONGITUDEMINUTE>
<xsl:value-of select="LongitudeMinute"/>
</LONGITUDEMINUTE>
<LONGITUDESECONDS>
<xsl:value-of select="LongitudeSeconds"/>
</LONGITUDESECONDS>
<LONGITUDEEPERW>
<xsl:value-of select="LongitudeEperW"/>
</LONGITUDEEPERW>
</OUTTAB1>
</xsl:for-each>
</OUTTAB>
</asx:values>
</asx:abap>
</xsl:template>
</xsl:stylesheet>
<b>just create a type 1 program and paste the below given code.</b>
report y_consume_webservice .
data: wf_user type string .
data: wf_password type string .
types: begin of outtab1 ,
airportcode(6) ,
cityofairportname(50),
country(30) ,
countryabbrivation(10),
countrycode(6) ,
gmtoffset(10) ,
runwaylengthfeet(15),
runwayelevationfeet(15),
latitudedegree(10) ,
latitudeminute(10) ,
latitudesecond(10) ,
latitudenpeers(10) ,
longitudedegree(10) ,
longitudeminute(10) ,
longitudeseconds(10) ,
longitudeeperw(10) ,
end of outtab1 .
data: outtab type table of outtab1.
data: wf_o like line of outtab .
data: g_okcode like sy-ucomm .
data: my_container type ref to cl_gui_custom_container .
data: g_dock type ref to cl_gui_docking_container .
data: mygrid type ref to cl_gui_alv_grid .
data: wf_field_cat type lvc_t_fcat .
data: wf_field_cat_wa like line of wf_field_cat ,
wf_is_layout type lvc_s_layo .
data: wf_fld_cat type slis_t_fieldcat_alv .
data: wf_fld_cat_wa like line of wf_fld_cat .
data: wf_repid like sy-repid .
data: int_tab_name type slis_tabname .
data: xslt_err type ref to cx_xslt_exception .
constants:
* encoding for download of XML files
encoding type string value 'utf-8' .
data: rlength type i,
txlen type string .
data: http_client type ref to if_http_client .
data: wf_string type string .
data: wf_string1 type string .
data: wf_proxy type string ,
wf_port type string .
selection-screen: begin of block a with frame .
parameters: uri2(132) type c lower case .
selection-screen skip 1.
parameters: user(50) lower case,
password(50) lower case ,
p_proxy(100) lower case default 'proxy.xxx.com' ,
p_port(4) default '80'.
selection-screen: end of block a .
at selection-screen output.
loop at screen.
if screen-name = 'PASSWORD'.
screen-invisible = '1'.
modify screen.
endif.
endloop.
start-of-selection .
clear wf_string .
concatenate
'<?xml version="1.0" encoding="utf-8"?>'
'<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">'
'<soap:Body>'
'<GetAirportInformationByCountry xmlns="http://www.webserviceX.NET">'
'<country>' uri2 '</country>'
'</GetAirportInformationByCountry>'
'</soap:Body>'
'</soap:Envelope>'
into wf_string .
clear :rlength , txlen .
rlength = strlen( wf_string ) .
move: rlength to txlen .
clear: wf_proxy, wf_port .
move: p_proxy to wf_proxy ,
p_port to wf_port .
call method cl_http_client=>create
exporting
host = 'www.webservicex.net'
service = '80'
scheme = '1'
proxy_host = wf_proxy
proxy_service = wf_port
importing
client = http_client.
http_client->propertytype_logon_popup = http_client->co_disabled.
wf_user = user .
wf_password = password .
call method http_client->authenticate
exporting
proxy_authentication = 'X'
username = wf_user
password = wf_password.
call method http_client->request->set_header_field
exporting
name = '~request_method'
value = 'POST'.
call method http_client->request->set_header_field
exporting
name = '~server_protocol'
value = 'HTTP/1.1'.
call method http_client->request->set_header_field
exporting
name = '~request_uri'
value = '/airport.asmx'.
call method http_client->request->set_header_field
exporting
name = 'Content-Type'
value = 'text/xml; charset=utf-8'.
call method http_client->request->set_header_field
exporting
name = 'Content-Length'
value = txlen.
call method http_client->request->set_header_field
exporting
name = 'SOAPAction'
value = 'http://www.webserviceX.NET/GetAirportInformationByCountry'.
call method http_client->request->set_cdata
exporting
data = wf_string
offset = 0
length = rlength.
call method http_client->send
exceptions
http_communication_failure = 1
http_invalid_state = 2.
call method http_client->receive
exceptions
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3.
clear wf_string1 .
wf_string1 = http_client->response->get_cdata( ).
replace all occurrences of
'<' in wf_string1 with '<' .
replace all occurrences of
'>' in wf_string1 with '>' .
replace all occurrences of
'xmlns=' in wf_string1 with 'xmlns:xsl=' .
try .
call transformation (`Y_TEST`)
source xml wf_string1
result outtab = outtab.
catch cx_xslt_exception into xslt_err.
data: s type string.
s = xslt_err->get_text( ).
write: ': ', s.
stop.
endtry .
break-point .
Try this and give me your feedback.
Regards
Raja
Maybe you are looking for
-
New MacBook Pro 13 i5 Wireless Issues.
I got the new MacBook Pro i5 2.3 the day it came out. So maybe a week and half ago. I`m having intermittent wireless issues. I have done some testing and even replaced my older AirPort Base Station with the new Dual-Band one, but still seeing a drops
-
Hello, I shot a sequence of photos for a stopmotion and have been having issues with color. It was shot on a green screen and so I used keylight to remove it, made the sequence, it all looks fine in AE, render it and when I open it afterward, t
-
How to make the Deprtmnt field in the cost center master data as required ?
Dear Experts, I want to make the Department field in the cost center master data as required field.....how do i do it? regards Suresh
-
How do I do a "save as" on Pages?
Want to resave a document monthly in order to make small change each month but save the previous ones (monthly billing). Is there any way? If not, will Apple issue me a refund so that I can buy Microsoft again? This is a huge billing problem for me!
-
How to install MVDEMO in Web Logic Server 10.3.5
I have deployed map viewer 11g PS6 on WLS 10.3.5. I am new to map viewer. I am planning to try the MVDEMO. Can someone point me to the steps involved in deploying the MVDEMO on a WLS 10.3.5. container. Thanks, Srini.