Why so happen when tomcat call ejb from weblogic6.1?
Hi everyone,
I've developed a stataless session bean and deployed to weblogic6.1,then
converted the ejb into a web service and deployed to axis hosting
Tomcat4.1.when I developed a web service client to call the web service,but
errors displayed as follows:
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultSubcode:
faultString: javax.naming.AuthenticationException [Root exception is
java.lang.SecurityException: ÊÔͼ½«Ò»¸ö·Ç java.security.Principal ʵÀýµÄ¶ÔÏó
Ìí¼ÓÖÁÖ÷ÌâµÄ Principal ¼¯ÖÐ]
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:
javax.naming.AuthenticationException. Root exception is
java.lang.SecurityException: ÊÔͼ½«Ò»¸ö·Ç java.security.Principal ʵÀýµÄ¶ÔÏó
Ìí¼ÓÖÁÖ÷ÌâµÄ Principal ¼¯ÖÐ
at javax.security.auth.Subject$SecureSet.add(Subject.java:1071)
at
weblogic.common.internal.BootServicesStub.writeUserInfoToSubject(BootService
sStub.java:72)
at
weblogic.common.internal.BootServicesStub.authenticate(BootServicesStub.java
:80)
at weblogic.security.acl.internal.Security.authenticate(Security.java:108)
at
weblogic.jndi.WLInitialContextFactoryDelegate.pushUser(WLInitialContextFacto
ryDelegate.java:509)
at
weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFac
toryDelegate.java:364)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:336)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:208)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:149)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at
org.apache.axis.providers.java.EJBProvider.getContext(EJBProvider.java:349)
at
org.apache.axis.providers.java.EJBProvider.getEJBHome(EJBProvider.java:314)
at
org.apache.axis.providers.java.EJBProvider.makeNewServiceObject(EJBProvider.
java:127)
at
org.apache.axis.providers.java.JavaProvider.getNewServiceObject(JavaProvider
.java:206)
at
org.apache.axis.providers.java.JavaProvider.getServiceObject(JavaProvider.ja
va:144)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:258)
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.handlers.soap.SOAPService.invoke(SOAPService.java:437)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:316)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:701)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
335)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)
javax.naming.AuthenticationException [Root exception is
java.lang.SecurityException: ÊÔͼ½«Ò»¸ö·Ç java.security.Principal ʵÀýµÄ¶ÔÏó
Ìí¼ÓÖÁÖ÷ÌâµÄ Principal ¼¯ÖÐ]
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:2
49)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:16
8)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
onContextImpl.java:973)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:230)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at org.apache.axis.client.Call.invokeEngine(Call.java:2511)
at org.apache.axis.client.Call.invoke(Call.java:2481)
at org.apache.axis.client.Call.invoke(Call.java:2176)
at org.apache.axis.client.Call.invoke(Call.java:2099)
at org.apache.axis.client.Call.invoke(Call.java:1622)
at wsclient.common.DynamicInvoker.invokeMethod(DynamicInvoker.java:177)
at wsclient.common.DynamicInvoker.main(DynamicInvoker.java:79)
Exception in thread "main"
anyone may help me,thank you in advance!
Regards peero
Hello,
I know the reason of the problem,that is the conflict from different
version of jdk.As we know weblogic6.1 run using jdk1.3.1.If I run tomcat
using jdk1.3.1,it work fine.But if change it jdk1.4.1,the error is always
same.
Anyway thank you!
then can you tell me if weblogic6.1 can run using jdk1.4.1? If true,how to
do?
Regards,
Peero
"Bruce Stephens" <[email protected]> wrote in message
news:[email protected]...
Hello,
Your WSDL looks fine, so this should not be your issue. I'd suggest
that you focus on the security framework.
Not much help,
Bruce
peero wrote:
Hello Bruce,
Thank you! the content of wsdl file list as follows:
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions
targetNamespace="http://localhost:8080/axis/services/Greeting"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://localhost:8080/axis/services/Greeting"
xmlns:intf="http://localhost:8080/axis/services/Greeting"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <wsdl:message name="greetingRequest">
<wsdl:part name="in0" type="xsd:string" />
</wsdl:message>
- <wsdl:message name="greetingResponse">
<wsdl:part name="greetingReturn" type="xsd:string" />
</wsdl:message>
- <wsdl:portType name="Greeting">
- <wsdl:operation name="greeting" parameterOrder="in0">
<wsdl:input message="impl:greetingRequest" name="greetingRequest" />
<wsdl:output message="impl:greetingResponse" name="greetingResponse"
/>
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="GreetingSoapBinding" type="impl:Greeting">
<wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="greeting">
<wsdlsoap:operation soapAction="" />
- <wsdl:input name="greetingRequest">
<wsdlsoap:bodyencodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8080/axis/services/Greeting" use="encoded"
/>
</wsdl:input>
- <wsdl:output name="greetingResponse">
<wsdlsoap:bodyencodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8080/axis/services/Greeting" use="encoded"
/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="GreetingService">
- <wsdl:port binding="impl:GreetingSoapBinding" name="Greeting">
<wsdlsoap:addresslocation="http://localhost:8080/axis/services/Greeting"
/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Regards,
Peero
"Bruce Stephens" <[email protected]> wrote in message
news:[email protected]...
Hello,
This is a curious stack trace and on the surface it looks like a
security issue. I'm not sure we can help you solve the axis problem,
but I would like to know from an interop perspective. Could you post
the wsdl for the service you are trying to call?
Thanks,
Bruce
peero wrote:
Hi everyone,
I've developed a stataless session bean and deployed to
weblogic6.1,then
converted the ejb into a web service and deployed to axis hosting
Tomcat4.1.when I developed a web service client to call the webservice,but
errors displayed as follows:
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultSubcode:
faultString: javax.naming.AuthenticationException [Root exception
is> > > > java.lang.SecurityException: ÊÔͼ½«Ò»¸ö·Ç java.security.Principal> > ʵÀýµÄ¶ÔÏó> > > > Ìí¼ÓÖÁÖ÷ÌâµÄ Principal ¼¯ÖÐ
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:
javax.naming.AuthenticationException. Root exception is
java.lang.SecurityException: ÊÔͼ½«Ò»¸ö·Ç java.security.PrincipalʵÀýµÄ¶ÔÏó
Ìí¼ÓÖÁÖ÷ÌâµÄ Principal ¼¯ÖÐ
at javax.security.auth.Subject$SecureSet.add(Subject.java:1071)
at
weblogic.common.internal.BootServicesStub.writeUserInfoToSubject(BootService
sStub.java:72)
at
weblogic.common.internal.BootServicesStub.authenticate(BootServicesStub.java
:80)
atweblogic.security.acl.internal.Security.authenticate(Security.java:108)
at
weblogic.jndi.WLInitialContextFactoryDelegate.pushUser(WLInitialContextFacto
ryDelegate.java:509)
at
weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFac
toryDelegate.java:364)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:336)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:208)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:149)
atjavax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
atjavax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at
javax.naming.InitialContext.<init>(InitialContext.java:195)
>>>>
at
org.apache.axis.providers.java.EJBProvider.getContext(EJBProvider.java:349)
>>>>
at
org.apache.axis.providers.java.EJBProvider.getEJBHome(EJBProvider.java:314)
>>>>
at
org.apache.axis.providers.java.EJBProvider.makeNewServiceObject(EJBProvider.
java:127)
at
org.apache.axis.providers.java.JavaProvider.getNewServiceObject(JavaProvider
.java:206)
at
org.apache.axis.providers.java.JavaProvider.getServiceObject(JavaProvider.ja
va:144)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:258)
>>>>
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)
atorg.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:437)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:316)
atorg.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:701)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
335)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>>>>
atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>>>>
atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
>>>>
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>>>>
atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>>>>
atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
atorg.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
>>>>
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
>>>>
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)
javax.naming.AuthenticationException [Root exception is
java.lang.SecurityException: ÊÔͼ½«Ò»¸ö·Ç java.security.PrincipalʵÀýµÄ¶ÔÏó> > > > Ìí¼ÓÖÁÖ÷ÌâµÄ Principal ¼¯ÖÐ
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:2
49)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:16
8)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
onContextImpl.java:973)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(UnknownSource)
atorg.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(UnknownSource)
>>>>
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:230)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at org.apache.axis.client.Call.invokeEngine(Call.java:2511)
at org.apache.axis.client.Call.invoke(Call.java:2481)
at org.apache.axis.client.Call.invoke(Call.java:2176)
at org.apache.axis.client.Call.invoke(Call.java:2099)
at org.apache.axis.client.Call.invoke(Call.java:1622)
atwsclient.common.DynamicInvoker.invokeMethod(DynamicInvoker.java:177)
>>>>
at wsclient.common.DynamicInvoker.main(DynamicInvoker.java:79)
Exception in thread "main"
anyone may help me,thank you in advance!
Regards peero
Similar Messages
-
Hello Developers!
I deployed my ejb to OAS4081. I call that
from JDeveloper so it good. But when I try
to call from applet in IExpl5 I can't
instantiate the ORB. I've got a com.ms.security.SecurityException : oracle.oas.orb.CORBA.ORB.init
I coded the CLASSPATH(oasoorb(yoj),client,
ejbapi...) perfectly, I think.
If anybody could help, please...
Thanx!Hi there,
I saw someone on this group had a problem to locate proper classpath
to call EJB from JSP. I thought if you call EJB from classpath, you are
calling the bean. But you loss all the EJB functions. To be able to utilize
EJB features like object pooling. You need to call it from Weblogic server
using url/jndi, not from the jar directly.
Any comment? Am I right?
BTW, my question about calling EJB from JSP means calling through URL,
not a local path.
Thank you
>-------------------------------------------------------------------->
Jim wrote in message <[email protected]>...
>Hi there,
> Can I call EJB from JSP? Is there a particular security setting or
>concern for Weblogic? Is there an coding example?
>
>Thank you
>
>
-
Calling EJB from Java Stored Procedures
Hi,
I am trying to call an Enterprise Java Bean from stored procedure. This stored procedure calls a java program. As long as it is a simple java program it works fine and loadjava.exe does not give any problem (neither compile-time nor run-time).
It is not working when I am trying to call EJB from it. It is giving compile-time error.
If anybody has implemented the same please suggest how to go forward.
thanks in advance,
Shashank AgarwalI tried the same thing without any luck. I assume you are using OC4J for your EJB ...
The compiling issue may be because you don't have the classes in your EJB client jar loaded into the database. Once those classes are loaded, you should loadjava without any problem.
However, you won't be able to call the EJB server because the EJB client (your Java code in the DB) will need the OC4J environment (oc4j.jar). I have tried to load oc4j.jar into the DB as well, and that was a big mess and nothing worked. My DB is 8.1.7, maybe the new 9i have OC4J libs bundled?!?
I looked around and only found 2 alternatives:
1. Write a JSP page that acts like an EJB client, then use URLConnection in your DB java code to send params to the JSP for it to invlode the EJB
2. Replace the JSP with RMI code, and use RMI instead of URLConnection in your DB code to invloke the EJB client.
If you find any other solution, please share it here.
Good luck!
Hi,
I am trying to call an Enterprise Java Bean from stored procedure. This stored procedure calls a java program. As long as it is a simple java program it works fine and loadjava.exe does not give any problem (neither compile-time nor run-time).
It is not working when I am trying to call EJB from it. It is giving compile-time error.
If anybody has implemented the same please suggest how to go forward.
thanks in advance,
Shashank Agarwal -
I cannot log onto the App Store, the page appears when I call it from the dock or the Apple menu and I can call the log-in box from the menu bar, but on signing in the spinning icon just keeps spinning,(not the beachball). Using 10.6.7 and up-to-date on all software. Any suggestions?
Could be a third party app preventing you from being able to login.
Mac App Store: Sign in sheet does not appear, or does not accept typed text
If it's not a third party issue, follow the instructions here.
Quit the MAS if it's open.
Open a Finder window. Select your Home folder in the Sidebar on the left then open the Library folder then the Caches folder.
Move the com.apple.appstore and the com.apple.storeagent files from the Caches folder to the Trash
From the same Library folder open the Preferences folder.
Move these files Preferences folder to the Trash: com.apple.appstore.plist and com.apple.storeagent.plist
Same Library folder open the Cookies folder. Move the com.apple.appstore.plist file from the Cookies folder to the Trash.
Relaunch the MAS. -
My Iphone 4s reciever is not working properly, when i call someone from my iphone 4s. can any one help me how to solve this problem?
You might like to define "not working properly".
-
How to pass cPath in ExportAsXfdf when we call javascipt from our plugin??
Hi
I am able to export file using javascript through my plugin..But if I pass cPath variable also, it does nothing..I am not able to pass to cPath value properly..
what should be the syntax of cPath when we call javascript from plugin??
If I write this
char * buf = "this.exportAsXFDF({bAnnotations:true});";
AFExecuteThisScript(pdDoc, buf, NULL);
It runs fine,.
But if I also mention cPath it fails to export xfdf
char path[256] = "//C//Users//ishitas//Desktop//ishita.xfdf";
char * buf = "this.exportAsXFDF({cPath:path,bAnnotations:true});";
AFExecuteThisScript(pdDoc, buf, NULL);
or
char * buf = "this.exportAsXFDF({cPath: \"//C//Users//ishitas//Desktop//ishita.xfdf\",bAnnotations:true});";
AFExecuteThisScript(pdDoc, buf, NULL);
How should I pass cPath????
please help..Hi Malcolm,
Thanks for the reply...it really helped me a lot to solve the problem. -
ExtendToolscript opens when I call script from photoshop
Hey,
I asked this question over in general discussions by mistake so I though I would re-ask it here.
I have a Javascript that I have written that builds a interface of buttons in organised groups based on the contents of certain folders. Everything works fine but when you call it from photoshop and extendtoolscript isn't running it always opens it up. I have written a lot of scripts with interfaces and I have never had this problem. Its not a huge problem for me as I usually have this program open anyway but I intend to have a team of people using this script so if I could stop it somehow it would be much better.
Has anyone experienced this before? Or perhaps knows of functions that cause extendscript to open?
I can't see anything unusual in the script...
Any help would be appreciated!
Thanks,
Mark
var strtRulerUnits = app.preferences.rulerUnits;
var strtTypeUnits = app.preferences.typeUnits;
app.preferences.rulerUnits = Units.PIXELS;
app.preferences.typeUnits = TypeUnits.PIXELS;
var templatepath = "~/Desktop/BANNERS/";
var bannerfile = ""
var docRef = app.activeDocument;
var fileArray = new Array();
var sourceFolder = Folder (templatepath + "MAIN/");
var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
// get all files in source folder
var docs = sourceFolder.getFiles();
var len = docs.length;
for (var i = 0; i < len; i++) {
var doc = docs[i];
// only match files (not folders)
if (doc instanceof File) {
// store all recognized files into an array
var docName = doc.name;
if (docName.match(extRE)) {
fileArray.push(doc);
var w = new Window ("dialog", "Choose a Banner");
w.preferredSize = [400, 100];
w.orientation = 'row';
w.alignChildren = "left"
w.alignChildren = [ "fill", "fill"];
w.btnPnl = w.add('panel', undefined, 'MAIN');
w.btnPnl.btn = w.add ("group");
w.btnPnl.btn.alignChildren = "left"
var buttonarray = new Array ();
var key = {};
for (var i = 0; i < fileArray.length ; i++) {
var delimeter = '/';
var string = String (fileArray[i]);
var splitted = string.split(delimeter);
var thelength = ((splitted.length) - 1);
var bannername = splitted[thelength];
var delimeter = '.';
var splitted = bannername.split(delimeter);
var bannername = splitted[0];
var checkdelim = "%20";
var checkthat = bannername.indexOf(checkdelim);
if (checkthat == "-1") {}
else {
var delimeter = '%20';
var splitted = bannername.split(delimeter);
var counter = 0;
while (counter < splitted.length){
if (counter == 0){
var bannername = (splitted[counter] + " ");
else if (counter == ((splitted.length) - 1)){
var bannername = (bannername + splitted[counter]);
else{
var bannername = (bannername + splitted[counter] + " ");
var counter = (counter + 1);
if (fileArray.length > 6){
var divider = 2
else{
var divider = 1
var remainder = (i % divider);
if (remainder == 0){
w.btnPnl.btn = w.btnPnl.add ("group");
w.btnPnl.btn.alignChildren = "left"
} else {
//x is not a multiple of y
key = (String (fileArray[i]));
w[key] = w.btnPnl.btn.add("button", undefined ,bannername );
w[key].alignment = 'left';
buttonarray.push(w[key]);
w.btnPnl.btn.addEventListener('click', button_pressed);
function button_pressed (e)
if (e.target.type == "button")
$.writeln (e.target.text + " from panel " + e.target.parent.text);
w.close()
var buttonname = e.target.text;
var checkdelim = " ";
var checkthat = buttonname.indexOf(checkdelim);
if (checkthat == "-1") {}
else {
var delimeter = ' ';
var splitted = buttonname.split(delimeter);
var counter = 0;
while (counter < splitted.length){
if (counter == 0){
var buttonname = (splitted[counter] + "%20");
else if (counter == ((splitted.length) - 1)){
var buttonname = (buttonname + splitted[counter]);
else{
var buttonname = (buttonname + splitted[counter] + "%20");
var counter = (counter + 1);
bannerfile = new File (templatepath + "MAIN/" + buttonname + '.png');
var fileArrayneon = new Array();
var sourceFolder = Folder (templatepath + "NEON/");
var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
// get all files in source folder
var docs = sourceFolder.getFiles();
var len = docs.length;
for (var i = 0; i < len; i++) {
var doc = docs[i];
// only match files (not folders)
if (doc instanceof File) {
// store all recognized files into an array
var docName = doc.name;
if (docName.match(extRE)) {
fileArrayneon.push(doc);
w.btnPnl = w.add('panel', undefined, 'NEON');
w.btnPnl.btn = w.add ("group");
var buttonarray = new Array ();
var key = {};
for (var i = 0; i < fileArrayneon.length ; i++) {
var delimeter = '/';
var string = String (fileArrayneon[i]);
var splitted = string.split(delimeter);
var thelength = ((splitted.length) - 1);
var bannername = splitted[thelength];
var delimeter = '.';
var splitted = bannername.split(delimeter);
var bannername = splitted[0];
var checkdelim = "%20";
var checkthat = bannername.indexOf(checkdelim);
if (checkthat == "-1") {}
else {
var delimeter = '%20';
var splitted = bannername.split(delimeter);
var counter = 0;
while (counter < splitted.length){
if (counter == 0){
var bannername = (splitted[counter] + " ");
else if (counter == ((splitted.length) - 1)){
var bannername = (bannername + splitted[counter]);
else{
var bannername = (bannername + splitted[counter] + " ");
var counter = (counter + 1);
if (fileArrayneon.length > 6){
var divider = 2
else{
var divider = 1
var remainder = (i % divider);
if (remainder == 0){
w.btnPnl.btn = w.btnPnl.add ("group");
w.btnPnl.btn.alignChildren = "left"
} else {
//x is not a multiple of y
key = (String (fileArrayneon[i]));
w[key] = w.btnPnl.btn.add("button", undefined ,bannername );
w[key].alignment = 'left';
buttonarray.push(w[key]);
w.btnPnl.btn.addEventListener('click', button_pressed);
function button_pressed (e)
if (e.target.type == "button")
$.writeln (e.target.text + " from panel " + e.target.parent.text);
w.close()
var buttonname = e.target.text;
var checkdelim = " ";
var checkthat = buttonname.indexOf(checkdelim);
if (checkthat == "-1") {}
else {
var delimeter = ' ';
var splitted = buttonname.split(delimeter);
var counter = 0;
while (counter < splitted.length){
if (counter == 0){
var buttonname = (splitted[counter] + "%20");
else if (counter == ((splitted.length) - 1)){
var buttonname = (buttonname + splitted[counter]);
else{
var buttonname = (buttonname + splitted[counter] + "%20");
var counter = (counter + 1);
bannerfile = new File (templatepath + "NEON/" + buttonname + '.png');
var fileArray180 = new Array();
var sourceFolder = Folder (templatepath + "180/");
var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
// get all files in source folder
var docs = sourceFolder.getFiles();
var len = docs.length;
for (var i = 0; i < len; i++) {
var doc = docs[i];
// only match files (not folders)
if (doc instanceof File) {
// store all recognized files into an array
var docName = doc.name;
if (docName.match(extRE)) {
fileArray180.push(doc);
w.btnPnl = w.add('panel', undefined, '180');
w.btnPnl.btn = w.add ("group");
var buttonarray = new Array ();
var key = {};
for (var i = 0; i < fileArray180.length ; i++) {
var delimeter = '/';
var string = String (fileArray180[i]);
var splitted = string.split(delimeter);
var thelength = ((splitted.length) - 1);
var bannername = splitted[thelength];
var delimeter = '.';
var splitted = bannername.split(delimeter);
var bannername = splitted[0];
var checkdelim = "%20";
var checkthat = bannername.indexOf(checkdelim);
if (checkthat == "-1") {}
else {
var delimeter = '%20';
var splitted = bannername.split(delimeter);
var counter = 0;
while (counter < splitted.length){
if (counter == 0){
var bannername = (splitted[counter] + " ");
else if (counter == ((splitted.length) - 1)){
var bannername = (bannername + splitted[counter]);
else{
var bannername = (bannername + splitted[counter] + " ");
var counter = (counter + 1);
if (fileArray180.length > 6){
var divider = 2
else{
var divider = 1
var remainder = (i % divider);
if (remainder == 0){
w.btnPnl.btn = w.btnPnl.add ("group");
w.btnPnl.btn.alignChildren = "left"
} else {
//x is not a multiple of y
key = (String (fileArray180[i]));
w[key] = w.btnPnl.btn.add("button", undefined ,bannername );
w[key].alignment = 'left';
buttonarray.push(w[key]);
w.btnPnl.btn.addEventListener('click', button_pressed);
function button_pressed (e)
if (e.target.type == "button")
$.writeln (e.target.text + " from panel " + e.target.parent.text);
w.close()
var buttonname = e.target.text;
var checkdelim = " ";
var checkthat = buttonname.indexOf(checkdelim);
if (checkthat == "-1") {}
else {
var delimeter = ' ';
var splitted = buttonname.split(delimeter);
var counter = 0;
while (counter < splitted.length){
if (counter == 0){
var buttonname = (splitted[counter] + "%20");
else if (counter == ((splitted.length) - 1)){
var buttonname = (buttonname + splitted[counter]);
else{
var buttonname = (buttonname + splitted[counter] + "%20");
var counter = (counter + 1);
bannerfile = new File (templatepath + "180/" + buttonname + '.png');
var fileArraymisc = new Array();
var sourceFolder = Folder (templatepath + "MISC/");
var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
// get all files in source folder
var docs = sourceFolder.getFiles();
var len = docs.length;
for (var i = 0; i < len; i++) {
var doc = docs[i];
// only match files (not folders)
if (doc instanceof File) {
// store all recognized files into an array
var docName = doc.name;
if (docName.match(extRE)) {
fileArraymisc.push(doc);
w.btnPnl = w.add('panel', undefined, 'MISC');
w.btnPnl.btn = w.add ("group");
var buttonarray = new Array ();
var key = {};
for (var i = 0; i < fileArraymisc.length ; i++) {
var delimeter = '/';
var string = String (fileArraymisc[i]);
var splitted = string.split(delimeter);
var thelength = ((splitted.length) - 1);
var bannername = splitted[thelength];
var delimeter = '.';
var splitted = bannername.split(delimeter);
var bannername = splitted[0];
var checkdelim = "%20";
var checkthat = bannername.indexOf(checkdelim);
if (checkthat == "-1") {}
else {
var delimeter = '%20';
var splitted = bannername.split(delimeter);
var counter = 0;
while (counter < splitted.length){
if (counter == 0){
var bannername = (splitted[counter] + " ");
else if (counter == ((splitted.length) - 1)){
var bannername = (bannername + splitted[counter]);
else{
var bannername = (bannername + splitted[counter] + " ");
var counter = (counter + 1);
if (fileArraymisc.length > 6){
var divider = 2
else{
var divider = 1
var remainder = (i % divider);
if (remainder == 0){
w.btnPnl.btn = w.btnPnl.add ("group");
w.btnPnl.btn.alignChildren = "left"
} else {
//x is not a multiple of y
key = (String (fileArraymisc[i]));
w[key] = w.btnPnl.btn.add("button", undefined ,bannername );
w[key].alignment = 'left';
buttonarray.push(w[key]);
w.btnPnl.btn.addEventListener('click', button_pressed);
function button_pressed (e)
if (e.target.type == "button")
$.writeln (e.target.text + " from panel " + e.target.parent.text);
w.close()
var buttonname = e.target.text;
var checkdelim = " ";
var checkthat = buttonname.indexOf(checkdelim);
if (checkthat == "-1") {}
else {
var delimeter = ' ';
var splitted = buttonname.split(delimeter);
var counter = 0;
while (counter < splitted.length){
if (counter == 0){
var buttonname = (splitted[counter] + "%20");
else if (counter == ((splitted.length) - 1)){
var buttonname = (buttonname + splitted[counter]);
else{
var buttonname = (buttonname + splitted[counter] + "%20");
var counter = (counter + 1);
bannerfile = new File (templatepath + "MISC/" + buttonname + '.png');
w.show();
if (bannerfile == ""){}
else{
var targetDocumentName = docRef.name;
var tempfile = app.open (bannerfile);
var sourceDocumentName = app.activeDocument.name;
var thewidth = tempfile.width;
var theheight = tempfile.height;
app.activeDocument = docRef;
docRef.resizeImage (null, theheight, null, ResampleMethod.BICUBIC);
if ((String(thewidth)) == (String(docRef.width))){
var thelayer = docRef.activeLayer;
copyLayers(sourceDocumentName, targetDocumentName );
docRef.activeLayer = thelayer;
else {
alert ("Document width Incorrect")
docRef.activeLayer.name = "main";
var thelayer = docRef.activeLayer;
docRef.resizeCanvas (thewidth, null, AnchorPosition.BOTTOMCENTER);
copyLayers(sourceDocumentName, targetDocumentName );
docRef.activeLayer = thelayer;
imageView ("FtOn");
function copyLayers(sourceDocumentName, targetDocumentName) {
var sourceDoc = app.documents[sourceDocumentName];
var targetDoc = app.documents[targetDocumentName];
var sourceLayer, targetLayer, sourceGroup;
if (app.activeDocument != sourceDoc) {
app.activeDocument = sourceDoc;
var thelayer = tempfile.layers[0];
var layersToCopy = thelayer.name;
if ( typeof layersToCopy === 'string' ) {
sourceGroup = tempfile.layers[0];
targetLayer = sourceGroup.duplicate( targetDoc, ElementPlacement.PLACEATBEGINNING )
else if ( Object.prototype.toString.call( layersToCopy ) === '[object Array]' ) {
for (var i = 0; i < layersToCopy.length; i++) {
sourceLayer = sourceDoc.artLayers.getByName( layersToCopy[i] );
targetLayer = sourceLayer.duplicate( targetDoc, ElementPlacement.PLACEATBEGINNING );
tempfile.close(SaveOptions.DONOTSAVECHANGES);
function imageView (view) {
desc= new ActionDescriptor();
ref = new ActionReference();
if (view.length < 5){
var viewID = charIDToTypeID( view );
}else{
var viewID = stringIDToTypeID( view );
ref.putEnumerated( charIDToTypeID( "Mn " ), charIDToTypeID( "MnIt" ), viewID );
desc.putReference( charIDToTypeID( "null" ), ref );
executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );$.writeln ( ) writes the specified text to the JavaScript Console in ExtendScript Toolkit.
You probably need to comment out the 4 occurences of the following line, apparently used for debugging purposes:
$.writeln (e.target.text + " from panel " + e.target.parent.text); -
Calling EJB from other EJB on other J2EE Server
Can I call EJB from other EJB on other J2EE Server
Servers - Websphere 5.0
Do i require home & remote interface of that ejb on client side also
Help me, pleasethe problem is actually i require that is specific to websphere
for example i want to call a method ion that ejb
say my ejb name is myejb
so the normal way i should call is
InitialContext initialContext = new InitialContext();
Object homeObject = initialContext.lookup("ejb/MyEjbHome");
MyEJBHome myEJBHome =(MYEjbHome )javax.rmi.PortableRemoteObject.narrow(homeObjectMYEjbHome.class);
myEJB = lSHome.create();
myEJB.someMethod();
but here i am having class for home and remote available
now if other app server i am not having this classes then what to do -
We have a 5s active on our account. After turning on a previously active 4s (it had the same number) The 5s can no longer place call and when you call it from another phone the 4s rings, but will not pick up. Texting over the cell networks works fine. Any suggestions??
hens0861,
Hmm, let's ensure this is working as it should be! So what phone should be active on your account? Did you switch the devices online or how to did you activate the 5s? Please share details.
KarenC_VZW
Follow us on Twitter @VZWSupport -
This situation happened when I was away from my computer. I did have a glitch in sending an email directly from word right before this email went out. I can see the email - it shows no senders but when I try and open the email - outlook gives a message stating it blocked a potentially unsafe item. I've never seen an email in my sent items without me sending it. I am not a technical person and would greatly appreciate your help!
Are you sure Duane?
Then how come ALL of my neighbor's routers don't appear inside my Airport Utility.
I have never ever seen the image of somebody else's wireless router INSIDE my Airport Utility window.
Yes, I can see a lot of my neighbors' router's in the drop down menu list of the
airport utility icon in the right upper corner of my monitor screen. I can even see another
neighbor's Time Capsule on that list. But they don't appear inside my Airpor Utility window.
Just this one particular one.
This is the first time that I have ever seen the image of somebody else's router inside my
Airport Utility window.
Is there any way that I can delete it from my Airport Utility window? It freaks me out
to see the image of somebody else's router inside my software.
thanks!! -
Calling EJB from from a client app
Hi all,
I am trying to call an EJB component from portal. The example EJB I have taken is from SDN Bonus Calculator example - Application Server/Web Dynpro/Samples and Tutorials/Using EJBs (20)
I deployed the EAR file - no issue
I wrote the following code in a client app and trying to connect to the EJB remotely.
try {
java.util.Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
properties.put(Context.PROVIDER_URL, "ux0800:55304");
InitialContext ctx = new InitialContext(properties);
//InitialContext ctx = new InitialContext();
// get ejb home
home =
(BonusCalculatorLocalHome) ctx.lookup(
"localejbs/MySessionBean");
theCalculator = home.create();
} catch (Exception namingException) {
namingException.printStackTrace();
I get the following error
javax.naming.NoInitialContextException: Cannot instantiate class: com.sap.engine.services.jndi.InitialContextFactoryImpl [Root exception is java.lang.ClassNotFoundException: com.sap.engine.services.jndi.InitialContextFactoryImpl]
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at com.sap.bonus.calculation.sessionBean.MyCommandBean.<init>(MyCommandBean.java:27)
at com.sap.bonus.calculation.sessionBean.MyCommandBean.main(MyCommandBean.java:68)
Caused by: java.lang.ClassNotFoundException: com.sap.engine.services.jndi.InitialContextFactoryImpl
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)
Any clue will be appreciated.
thnxHi Sabbir,
Following code works for me in calling EJB from normal java application. Did you added the jar files to your application?. see the required jar files in end of code.
Create simple java applcation do the following steps:
Give JNDI name to the EJB(HelloJNDI)->Add the HelloEJB to HelloEAR ->deploy
Proxy Program to call ejb:
import javax.naming.Context;
import javax.naming.InitialContext;
import com.sample.Hello;
import com.sample.HelloHome;
public class HelloTest {
public static void main(String[] args) {
Hello remote = null;
try {
Context ctx = new InitialContext();
HelloHome home = (HelloHome) ctx.lookup("HelloJNDI");
remote = home.create();
String result = remote.hello();
System.out.print("Result:" + result);
} catch (Exception e) {
System.out.println("Exception:" + e.getLocalizedMessage());
1. Go To Run > Java Application ->New->select your project and select your main class(java program from which your going to call EJB)
2. Click next tab ->(x)=Arguments
paste the following code in VM Arguments
-Djava.naming.factory.initial=com.sap.engine.services.jndi.InitialContextFactoryImpl -Djava.naming.provider.url=localhost:50104
replace the server IP address with your server IP address where your ejbs are running.
Under Class path settings for the program put the following jar files.
You can search for them from net weaver soruce folders
or copy from D:\usr\sap\J2E\JC01\j2ee\j2eeclient
ejb20.jar
logging.jar
exception.jar
sapj2eeclient.jar
Add Corresponding ejb.jar
and RUN >>>
this makes testing of your client programs easier, you can find the error trace on which line and saves lot of time.
Regards, Suresh -
Hello, everybody,
I'm very new at EJB and I'm trying to learn it.
I have created Enterprise Application using Netbeans IDE, I have EJB and APP client. What I want is to connect to my MySql database and get some info from table.
For e.g. Login and Password.
How can I call EJB from my client app which connects to my database and gets information I need?What server you are using?
if you use jboss AS ,here is a simple Main class how to connect EJB and access ejb methods:
package com.david.ejb.client;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.rmi.PortableRemoteObject;
import com.david.ejb.domain.Person;
import com.david.ejb.domain.PersonRemote;
public class Main {
public static void main(String[] args) {
try {
Context ctx = getInitialContext();
Object obj = ctx.lookup("PersonSessionRemote/remote");
PersonRemote pr=(PersonRemote)PortableRemoteObject.narrow(obj, PersonRemote.class);
Person p=new Person();
p.setName("david");
pr.addPerson(p);
pr.findPerson(1);
// System.out.print(br.find(pk).getAuthor_name());
} catch (Exception ex) {
ex.printStackTrace();
private static Context getInitialContext() throws NamingException {
Properties p = new Properties();
p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.NamingContextFactory");
p.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
p.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
return new InitialContext(p);
}Person is ant @Entity and PersonRemote is remote interfaces, to connect database you have to make datasource file at jboss-4.2.3.GA\server\default\deploy
simle mysql-ds.xml looks like this:
datasources>
<local-tx-datasource>
<jndi-name>some name</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/dbname</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>root password</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>100</max-pool-size>
<idle-timeout-minutes>15</idle-timeout-minutes>
<exception-sorter-class-name>com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter</exception-sorter-class-name>
<valid-connection-checker-class-name>com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker</valid-connection-checker-class-name>
</local-tx-datasource>
</datasources>also at resources/META-INF directory you must have persistence.xml like this
<persistence>
<persistence-unit name="SimpleEjb">
<jta-data-source>java:/some name</jta-data-source>
<properties>
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.format_sql" value="true"/>
</properties>
</persistence-unit>
</persistence> -
I can no longer download music from itunes store. It happened when I was trying to download songs dragged into a playlist. I tried to download more than one at a time. It stopped. Now I cant download at all. Even rebooted my machine.
OK thanks I will try that. I just don't understand why I still can't download new videos as I've deleted the software I installed and I've changed my camera settings back to what they were before when I could download into iPhoto. I perhaps should have mentioned it's iPhoto '08 version 7.1.5. Is there any way of putting iPhoto back as the "default download and view" programme?
It could be as simple as longer (larger) videos - iPhoto does not always handle larger video files well
Is there any way of putting iPhoto back as the "default download and view" programme?
iPhoto is not a download and view program - it is a photo management database program that imports photos - Image Capture is a download program - Preview is a view program
The default program to download your photos is set in the preference panel of either iPhoto or image capture
LN -
Calling EJB from class in same ear
Has anyone ever attempted to call an EJB from a class that is in the same ear?
I have a singleton class, not
another EJB, that is trying to get ahold of an EJB to call a method. This method
has been defined to have both
a local and remote interface.
I thought I should be able to get a hold of the local interface. When I try to
get the interface out of JNDI
as follows:
PickupCpaLocalHome cpaHome = (PickupCpaLocalHome) ctx.lookup("pickup.PickupCpaEJBLocal");
I get an exception:
javax.naming.LinkException: [Root exception is
javax.naming.NameNotFoundException: Unable to resolve
'app/ejb/PickupCpaEJB.jar#PickupCpaEJB/local-home' Resolved: 'app/ejb'
Unresolved:'PickupCpaEJB.jar#PickupCpaEJB' ; remaining name
'PickupCpaEJB.jar#PickupCpaEJB/local-home']; Link Remaining Name:
'java:app/ejb/PickupCpaEJB.jar#PickupCpaEJB/local-home'
When I look at the JNDI tree using the WebLogic console, it shows that "pickup.PickupCpaEJBLocal"
is
in JNDI.
Since the local interface doesn't work, I thought I'd try the remote interface.
The remote interface
works fine from my client and from another EJB in a different ear. Using the
remote interface I get an
exception when trying to cast the result to my home.
java.lang.ClassCastException:
com.fedex.pickup.j2ee.ejb.cpa.PickupCpaEJB_gapk5_HomeImpl_WLStub
// Code
PickupCpaHome cpaHome = (PickupCpaHome) ctx.lookup("pickup.PickupCpaEJBRemote");
As I mentioned earlier, the same code works in a client and in an EJB in another
ear.
Any ideasHas anyone ever attempted to call an EJB from a class that is in the same ear?
I have a singleton class, not
another EJB, that is trying to get ahold of an EJB to call a method. This method
has been defined to have both
a local and remote interface.
I thought I should be able to get a hold of the local interface. When I try to
get the interface out of JNDI
as follows:
PickupCpaLocalHome cpaHome = (PickupCpaLocalHome) ctx.lookup("pickup.PickupCpaEJBLocal");
I get an exception:
javax.naming.LinkException: [Root exception is
javax.naming.NameNotFoundException: Unable to resolve
'app/ejb/PickupCpaEJB.jar#PickupCpaEJB/local-home' Resolved: 'app/ejb'
Unresolved:'PickupCpaEJB.jar#PickupCpaEJB' ; remaining name
'PickupCpaEJB.jar#PickupCpaEJB/local-home']; Link Remaining Name:
'java:app/ejb/PickupCpaEJB.jar#PickupCpaEJB/local-home'
When I look at the JNDI tree using the WebLogic console, it shows that "pickup.PickupCpaEJBLocal"
is
in JNDI.
Since the local interface doesn't work, I thought I'd try the remote interface.
The remote interface
works fine from my client and from another EJB in a different ear. Using the
remote interface I get an
exception when trying to cast the result to my home.
java.lang.ClassCastException:
com.fedex.pickup.j2ee.ejb.cpa.PickupCpaEJB_gapk5_HomeImpl_WLStub
// Code
PickupCpaHome cpaHome = (PickupCpaHome) ctx.lookup("pickup.PickupCpaEJBRemote");
As I mentioned earlier, the same code works in a client and in an EJB in another
ear.
Any ideas -
How can I call EJB from JSP/Servlets in iWS?
Hi!!
My JSP/Servlets are on iWS, and I deploy EJB on iAS.
In this case, I don't know how JSP/Servlet call EJb on iAS.
I'd like to know how I can set JNDI name in JSP/Servlet on iWS.
I will thank you if you give me a simple example source using JSP/Servlet
and EJB.
Thanks in advance!!!
- Park-Park,
Why Are you running your JSP/Servlets in iWS instead of iAS? For whatever
reason,
look at the Converter sample from iAS. You will be doing RMI/IIOP in this
case and the sample explains in detail what to do.
hth,
-robert
"SungHyun, Park" <[email protected]> wrote in message
news:9jpfmt$[email protected]..
Hi!!
My JSP/Servlets are on iWS, and I deploy EJB on iAS.
In this case, I don't know how JSP/Servlet call EJb on iAS.
I'd like to know how I can set JNDI name in JSP/Servlet on iWS.
I will thank you if you give me a simple example source using JSP/Servlet
and EJB.
Thanks in advance!!!
- Park-
Maybe you are looking for
-
My iphone 5c storage is almost full and I need to delete some picture to free up some space. If I delete the pictures off of my phone, will they be deleted off of iCloud as well? I cant afford to lose these pictures.
-
I'm having trouble getting FCPX to share my entire video, it cuts off the opening titles and starts a few seconds in when I share to my MacBook. It's my first vid so I've done a few daft things like editing the audio after I put the visual together,
-
Oc4j deploiment from deploiment plan : information missing
hello using oc4J 10.1.3 dp 4 using application server control console to deploy my application from a deploiment plan previously saved. I set during first depliement in that deploiment plan some information, that I do not retrieve during second deplo
-
Image to red green blue intengers
Hello, I'm trying to extract the three main colours of an RGB image to red green blue values (intengers). Those value will be the sum of all pixels values in the image. any ideas?
-
HT201210 When updating my ipad 2 to ios 7 is says I don't have permission to update?
My Ipad is having trouble updating to ios 7. Itunes says I don't have permission to do this? Any help would be appreciated. Thanks