Newbie trying to run JUnit sample
Hi All
I'm learning java with a view to replacing ColdFusion with J2EE back ends for the Flex apps that I create.
At the moment I am trying to create a JUnit test harness for my sample model class.
I am trying to run the sample maths class that is included in the download.
If I try this command:
(please note I have most likely got the package name and syntax slightly wrong as I am doing this from memory as I am at work not home)
java junit.samples.maths.TestAll
I got an error as I had expected. I thin try:
java -classpath ../junit-4.4.jar junit.samples.maths.testAll
this time I get another unexpected result:
NoClassDefFoundError
I am getting the same problem in my very simple test class that at the moment is just a Hello World class that extends TestCase. it compiles fine (so it obviously found the TestCase class) but again can't run.
What am I doing wrong? I appreciate that you might need more details but I can't give them just yet.
Can I put the junit-4.4.jar somewhere within my JDK directory so that I don't need to add a classpath argument to compile / run?
Sorry for the basic questions, I hope someone can help.
Thanks
Giles
Thanks for that. I'm slightly confused by the -callspath argument in your example:
".;./juni4.4.jar"
Looking at the docs this seems to be saying the current directory AND the jar. If I remove the .; at the start it doesn't work. Is this because it overrides the default ( just ".") and just looks in the jar and then doesn't find the AllTests class that I am trying to run?
Many thanks
Similar Messages
-
I am trying to run this sample on my machine
I am trying to run this sample on my machine as per the instructions to
install the sample in WLISampleUserGuide.pdf. When I go to the step 6 of the
installation, I get the following error in the Weblogic Server Console.
<Sep 17, 2001 10:47:36 AM GMT+05:30> <Error> <Management> <Error
initializing module certificate.war
of application samples:Name=certificate,Type=Application from path
.\config\samples\applications: w
eblogic.management.MBeanCreationException: cannot find referenced module
certificate.war>
<Sep 17, 2001 10:47:46 AM GMT+05:30> <Error> <Management> <Error
initializing module console.war of
application samples:Name=console,Type=Application from path
.\config\samples\applications: weblogic.
management.MBeanCreationException: cannot find referenced module
console.war>
<Sep 17, 2001 10:48:27 AM GMT+05:30> <Error> <Management> <Error preparing
application component cer
tificate.war of application samples:Name=certificate,Type=Application:
java.io.FileNotFoundException
: .\config\samples\applications\certificate.war (The system cannot find the
file specified) ((localP
ath: java.io.FileNotFoundException:
.\config\samples\applications\certificate.war (The system cannot
find the file specified))>
<Sep 17, 2001 10:48:27 AM GMT+05:30> <Error> <J2EE> <Error deploying
application certificate: error
retrieving component [Caching Stub]Proxy for
samples:Name=certificate,Location=myserver,Type=WebAppC
omponentConfig,ApplicationConfig=certificate>
<Sep 17, 2001 10:48:27 AM GMT+05:30> <Error> <Management> <Error preparing
application component con
sole.war of application samples:Name=console,Type=Application:
java.io.FileNotFoundException: .\conf
ig\samples\applications\console.war (The system cannot find the file
specified) ((localPath: java.io
.FileNotFoundException: .\config\samples\applications\console.war (The
system cannot find the file s
pecified))>
<Sep 17, 2001 10:48:27 AM GMT+05:30> <Error> <J2EE> <Error deploying
application console: error retr
ieving component [Caching Stub]Proxy for
samples:Name=console,Location=myserver,Type=WebAppComponent
Config,ApplicationConfig=console>
Loaded resources from
'/D:/bea/wlintegration2.0/config/samples/wlai/wlai.properties'
[SerializationTester] : isSerializable(class javax.naming.Binding)
java.io.NotSerializableException: javax.mail.Session
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
weblogic.jndi.internal.SerializationTester.isSerializable(SerializationTeste
r.java:36)
at
weblogic.jndi.internal.BindingEnumeration.fixNonSerializableBindings(Binding
Enumeration.j
ava:29)
at
weblogic.jndi.internal.BindingEnumeration.writeExternal(BindingEnumeration.j
ava:48)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1180)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
weblogic.rmi.internal.CBVOutputStream.writeObjectInternal(CBVOutputStream.ja
va:220)
at
weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:213)
at
weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:190)
at
weblogic.jndi.internal.ServerNamingNode_WLSkel.invoke(ServerNamingNode_WLSke
l.java:262)
at
weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:128)
at
weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
at
weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
java:118)
at
weblogic.rmi.internal.BasicRequestDispatcher.dispatch(BasicRequestDispatcher
.java:115)
at
weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:88)
at
weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:108)
at
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
:247)
at
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
:225)
at
weblogic.jndi.internal.ServerNamingNode_WLStub.listBindings(ServerNamingNode
_WLStub.java:
374)
at
weblogic.jndi.internal.WLContextImpl.listBindings(WLContextImpl.java:293)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
rCfgImpl.java
:724)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
rCfgImpl.java
:747)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
rCfgImpl.java
:747)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
rCfgImpl.java
:747)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.getDeployedPlugins(PluginMan
agerCfgImpl.j
ava:710)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.initializePlugins(PluginMana
gerCfgImpl.ja
va:811)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.init(PluginManagerCfgImpl.ja
va:75)
at
com.bea.wlpi.server.plugin.PluginManagerCfgBeanImpl.init(PluginManagerCfgBea
nImpl.java:79
0)
at
com.bea.wlpi.server.plugin.PluginManagerCfgBeanEOImpl.init(PluginManagerCfgB
eanEOImpl.jav
a:1270)
at
com.bea.wlpi.server.initlistener.InitListenerBean.onMessage(InitListenerBean
.java:151)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1933)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:1892)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.Kernel.execute(Kernel.java:250)
at weblogic.jms.client.JMSSession.pushEnvelope(JMSSession.java:1779)
at weblogic.jms.client.JMSCallback.pushEnvelope(JMSCallback.java:69)
at weblogic.jms.frontend.FESession.execute(FESession.java:1972)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Initialized WebLogic Process Integrator Plugin Framework version 1.0
Started WebLogic Process Integrator version 2.0 SP 3
<Sep 17, 2001 10:49:46 AM GMT+05:30> <Notice> <WebLogicCollaborate> <INFO:
WebLogic Collaborate Serv
er started successfully.>
<Sep 17, 2001 10:49:46 AM GMT+05:30> <Notice> <WebLogicServer> <WebLogic
Server started>
<Sep 17, 2001 10:49:46 AM GMT+05:30> <Notice> <WebLogicServer>
<SSLListenThread listening on port 70
02>
<Sep 17, 2001 10:49:46 AM GMT+05:30> <Notice> <WebLogicServer> <ListenThread
listening on port 7001>
Once I put the certificate.war and console.war from
D:\bea\wlintegration2.0\config\mydomain\applications, the errors related to
the
certificate.war and console.war file are not shown. The Weblogic Server
Console now shows the following
Loaded resources from
'/D:/bea/wlintegration2.0/config/samples/wlai/wlai.properties'
[SerializationTester] : isSerializable(class javax.naming.Binding)
java.io.NotSerializableException: javax.mail.Session
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
weblogic.jndi.internal.SerializationTester.isSerializable(SerializationTeste
r.java:36)
at
weblogic.jndi.internal.BindingEnumeration.fixNonSerializableBindings(Binding
Enumeration.j
ava:29)
at
weblogic.jndi.internal.BindingEnumeration.writeExternal(BindingEnumeration.j
ava:48)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1180)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
weblogic.rmi.internal.CBVOutputStream.writeObjectInternal(CBVOutputStream.ja
va:220)
at
weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:213)
at
weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:190)
at
weblogic.jndi.internal.ServerNamingNode_WLSkel.invoke(ServerNamingNode_WLSke
l.java:262)
at
weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:128)
at
weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
at
weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
java:118)
at
weblogic.rmi.internal.BasicRequestDispatcher.dispatch(BasicRequestDispatcher
.java:115)
at
weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:88)
at
weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:108)
at
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
:247)
at
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
:225)
at
weblogic.jndi.internal.ServerNamingNode_WLStub.listBindings(ServerNamingNode
_WLStub.java:
374)
at
weblogic.jndi.internal.WLContextImpl.listBindings(WLContextImpl.java:293)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
rCfgImpl.java
:724)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
rCfgImpl.java
:747)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
rCfgImpl.java
:747)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
rCfgImpl.java
:747)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.getDeployedPlugins(PluginMan
agerCfgImpl.j
ava:710)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.initializePlugins(PluginMana
gerCfgImpl.ja
va:811)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.init(PluginManagerCfgImpl.ja
va:75)
at
com.bea.wlpi.server.plugin.PluginManagerCfgBeanImpl.init(PluginManagerCfgBea
nImpl.java:79
0)
at
com.bea.wlpi.server.plugin.PluginManagerCfgBeanEOImpl.init(PluginManagerCfgB
eanEOImpl.jav
a:1270)
at
com.bea.wlpi.server.initlistener.InitListenerBean.onMessage(InitListenerBean
.java:151)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1933)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:1892)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.Kernel.execute(Kernel.java:250)
at weblogic.jms.client.JMSSession.pushEnvelope(JMSSession.java:1779)
at weblogic.jms.client.JMSCallback.pushEnvelope(JMSCallback.java:69)
at weblogic.jms.frontend.FESession.execute(FESession.java:1972)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Initialized WebLogic Process Integrator Plugin Framework version 1.0
Started WebLogic Process Integrator version 2.0 SP 3
Did anybody face this problem with this sample? Can somebody help me out
with this. I am also looking for some basic ways of developing a PIP using
Rosettanet. Is there is any site that gives such information. I have seen
the BEA site on rosettanet. That does not help me.
Regards,
Dharnidhar Vemuri
mailto: [email protected]Hi
I am also facing this similar problem. Could any one tell me the root cause of
this problem.
Thanks in advance.
Thanks and Regards
Ramko
"weblogic.integrator.developer" <[email protected]> wrote:
I am trying to run this sample on my machine as per the instructions
to
install the sample in WLISampleUserGuide.pdf. When I go to the step 6
of the
installation, I get the following error in the Weblogic Server Console.
<Sep 17, 2001 10:47:36 AM GMT+05:30> <Error> <Management> <Error
initializing module certificate.war
of application samples:Name=certificate,Type=Application from path
..\config\samples\applications: w
eblogic.management.MBeanCreationException: cannot find referenced module
certificate.war>
<Sep 17, 2001 10:47:46 AM GMT+05:30> <Error> <Management> <Error
initializing module console.war of
application samples:Name=console,Type=Application from path
..\config\samples\applications: weblogic.
management.MBeanCreationException: cannot find referenced module
console.war>
<Sep 17, 2001 10:48:27 AM GMT+05:30> <Error> <Management> <Error preparing
application component cer
tificate.war of application samples:Name=certificate,Type=Application:
java.io.FileNotFoundException
: .\config\samples\applications\certificate.war (The system cannot find
the
file specified) ((localP
ath: java.io.FileNotFoundException:
..\config\samples\applications\certificate.war (The system cannot
find the file specified))>
<Sep 17, 2001 10:48:27 AM GMT+05:30> <Error> <J2EE> <Error deploying
application certificate: error
retrieving component [Caching Stub]Proxy for
samples:Name=certificate,Location=myserver,Type=WebAppC
omponentConfig,ApplicationConfig=certificate>
<Sep 17, 2001 10:48:27 AM GMT+05:30> <Error> <Management> <Error preparing
application component con
sole.war of application samples:Name=console,Type=Application:
java.io.FileNotFoundException: .\conf
ig\samples\applications\console.war (The system cannot find the file
specified) ((localPath: java.io
..FileNotFoundException: .\config\samples\applications\console.war (The
system cannot find the file s
pecified))>
<Sep 17, 2001 10:48:27 AM GMT+05:30> <Error> <J2EE> <Error deploying
application console: error retr
ieving component [Caching Stub]Proxy for
samples:Name=console,Location=myserver,Type=WebAppComponent
Config,ApplicationConfig=console>
Loaded resources from
'/D:/bea/wlintegration2.0/config/samples/wlai/wlai.properties'
[SerializationTester] : isSerializable(class javax.naming.Binding)
java.io.NotSerializableException: javax.mail.Session
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
weblogic.jndi.internal.SerializationTester.isSerializable(SerializationTeste
r.java:36)
at
weblogic.jndi.internal.BindingEnumeration.fixNonSerializableBindings(Binding
Enumeration.j
ava:29)
at
weblogic.jndi.internal.BindingEnumeration.writeExternal(BindingEnumeration.j
ava:48)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1180)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
weblogic.rmi.internal.CBVOutputStream.writeObjectInternal(CBVOutputStream.ja
va:220)
at
weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:213)
at
weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:190)
at
weblogic.jndi.internal.ServerNamingNode_WLSkel.invoke(ServerNamingNode_WLSke
l.java:262)
at
weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:128)
at
weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
at
weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
java:118)
at
weblogic.rmi.internal.BasicRequestDispatcher.dispatch(BasicRequestDispatcher
..java:115)
at
weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:88)
at
weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:108)
at
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
:247)
at
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
:225)
at
weblogic.jndi.internal.ServerNamingNode_WLStub.listBindings(ServerNamingNode
_WLStub.java:
374)
at
weblogic.jndi.internal.WLContextImpl.listBindings(WLContextImpl.java:293)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
rCfgImpl.java
:724)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
rCfgImpl.java
:747)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
rCfgImpl.java
:747)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
rCfgImpl.java
:747)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.getDeployedPlugins(PluginMan
agerCfgImpl.j
ava:710)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.initializePlugins(PluginMana
gerCfgImpl.ja
va:811)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.init(PluginManagerCfgImpl.ja
va:75)
at
com.bea.wlpi.server.plugin.PluginManagerCfgBeanImpl.init(PluginManagerCfgBea
nImpl.java:79
0)
at
com.bea.wlpi.server.plugin.PluginManagerCfgBeanEOImpl.init(PluginManagerCfgB
eanEOImpl.jav
a:1270)
at
com.bea.wlpi.server.initlistener.InitListenerBean.onMessage(InitListenerBean
..java:151)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1933)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:1892)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.Kernel.execute(Kernel.java:250)
at weblogic.jms.client.JMSSession.pushEnvelope(JMSSession.java:1779)
at weblogic.jms.client.JMSCallback.pushEnvelope(JMSCallback.java:69)
at weblogic.jms.frontend.FESession.execute(FESession.java:1972)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Initialized WebLogic Process Integrator Plugin Framework version 1.0
Started WebLogic Process Integrator version 2.0 SP 3
<Sep 17, 2001 10:49:46 AM GMT+05:30> <Notice> <WebLogicCollaborate> <INFO:
WebLogic Collaborate Serv
er started successfully.>
<Sep 17, 2001 10:49:46 AM GMT+05:30> <Notice> <WebLogicServer> <WebLogic
Server started>
<Sep 17, 2001 10:49:46 AM GMT+05:30> <Notice> <WebLogicServer>
<SSLListenThread listening on port 70
02>
<Sep 17, 2001 10:49:46 AM GMT+05:30> <Notice> <WebLogicServer> <ListenThread
listening on port 7001>
Once I put the certificate.war and console.war from
D:\bea\wlintegration2.0\config\mydomain\applications, the errors related
to
the
certificate.war and console.war file are not shown. The Weblogic Server
Console now shows the following
Loaded resources from
'/D:/bea/wlintegration2.0/config/samples/wlai/wlai.properties'
[SerializationTester] : isSerializable(class javax.naming.Binding)
java.io.NotSerializableException: javax.mail.Session
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
weblogic.jndi.internal.SerializationTester.isSerializable(SerializationTeste
r.java:36)
at
weblogic.jndi.internal.BindingEnumeration.fixNonSerializableBindings(Binding
Enumeration.j
ava:29)
at
weblogic.jndi.internal.BindingEnumeration.writeExternal(BindingEnumeration.j
ava:48)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1180)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
weblogic.rmi.internal.CBVOutputStream.writeObjectInternal(CBVOutputStream.ja
va:220)
at
weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:213)
at
weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:190)
at
weblogic.jndi.internal.ServerNamingNode_WLSkel.invoke(ServerNamingNode_WLSke
l.java:262)
at
weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:128)
at
weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
at
weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
java:118)
at
weblogic.rmi.internal.BasicRequestDispatcher.dispatch(BasicRequestDispatcher
..java:115)
at
weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:88)
at
weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:108)
at
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
:247)
at
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
:225)
at
weblogic.jndi.internal.ServerNamingNode_WLStub.listBindings(ServerNamingNode
_WLStub.java:
374)
at
weblogic.jndi.internal.WLContextImpl.listBindings(WLContextImpl.java:293)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
rCfgImpl.java
:724)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
rCfgImpl.java
:747)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
rCfgImpl.java
:747)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
rCfgImpl.java
:747)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.getDeployedPlugins(PluginMan
agerCfgImpl.j
ava:710)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.initializePlugins(PluginMana
gerCfgImpl.ja
va:811)
at
com.bea.wlpi.server.plugin.PluginManagerCfgImpl.init(PluginManagerCfgImpl.ja
va:75)
at
com.bea.wlpi.server.plugin.PluginManagerCfgBeanImpl.init(PluginManagerCfgBea
nImpl.java:79
0)
at
com.bea.wlpi.server.plugin.PluginManagerCfgBeanEOImpl.init(PluginManagerCfgB
eanEOImpl.jav
a:1270)
at
com.bea.wlpi.server.initlistener.InitListenerBean.onMessage(InitListenerBean
..java:151)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1933)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:1892)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.Kernel.execute(Kernel.java:250)
at weblogic.jms.client.JMSSession.pushEnvelope(JMSSession.java:1779)
at weblogic.jms.client.JMSCallback.pushEnvelope(JMSCallback.java:69)
at weblogic.jms.frontend.FESession.execute(FESession.java:1972)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Initialized WebLogic Process Integrator Plugin Framework version 1.0
Started WebLogic Process Integrator version 2.0 SP 3
Did anybody face this problem with this sample? Can somebody help me
out
with this. I am also looking for some basic ways of developing a PIP
using
Rosettanet. Is there is any site that gives such information. I have
seen
the BEA site on rosettanet. That does not help me.
Regards,
Dharnidhar Vemuri
mailto: [email protected] -
Error trying to run a sample master-detail JSF form in Jdev 10.1.3
I've tried JDeveloper 10.1.3 folowing a tutorial , master-detail one , involving Adf Faces which I found it here http://www.oracle.com/technology/products/jdev/101/tutorials/e2ebcfaces/buildmaster-detailpagewithjdevandadfbc.htm.
1. I dowloaded JDeveloper 10.1.3
2. I made -in Jdeveloper- a connection to OE8 schema
2. I created an application with web application template ; in my new workspace i had 2 projects Model and ViewController
3. In model i choose Business Tier - ADF Bussiness Components - Business Components from Tables and I followed instructions in tutorial
4. In ViewController I created Web Tier - JSF - JSF JSP , with the JSF-JSP wizard a jsp page browseCustomerOrders.jsp. For building a master detail form i folowed instructions in tutorial
However ...
5. When I tried to run i received ....
" [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
**** Unable to obtain password from principals.xml. Using default.
D:\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config>
D:\jdevstudio1013\jdk\bin\javaw.exe -ojvm -classpath D:\jdevstudio1013\j2ee\home\oc4j.jar;D:\jdevstudio1013\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]
05/11/30 12:04:16 Exception in thread "OC4J Launcher" oracle.classloader.util.AnnotatedNoClassDefFoundError:
Missing class: oracle.core.ojdl.logging.LoggingConfiguration
Dependent class: com.evermind.server.XMLApplicationServerConfig
Loader: oc4j:10.1.3
Code-Source: /D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar
Configuration: <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar
The missing class is not available from any code-source or loader in the server.
05/11/30 12:04:16 at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2073) [D:/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1681) [D:/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1633) [D:/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1618) [D:/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap]
at com.evermind.server.XMLApplicationServerConfig.initJ2eeLogging (XMLApplicationServerConfig.java:243) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.XMLApplicationServerConfig.postInit (XMLApplicationServerConfig.java:255) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.xml.XMLConfig.init (XMLConfig.java:200) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.xml.XMLConfig.init (XMLConfig.java:117) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServerLauncher.run (ApplicationServerLauncher.java:74) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap]
05/11/30 12:04:16 Fatal error: server exiting
Process exited with exit code 1. "
Where do you think i am wrong?
Many thanksHi,
the problem seems not to be within your application but in missing files on your embedded OC4J. Just try and unzip the JDeveloper 10.1.3 install again.
Frank -
When I try with Register-SPWorkflowService for SP2013 integration or run C# samples for workflow manager 1.0 I get
"The remote server returned an error: (404) Not found".
With C# sample code runs,
Scope '/$Activities' was not found. HTTP headers received from the server - ActivityId: e268765f-9d95-47ed-81fd-c4b38f40bfe0. NodeId: XXXX. Scope: /$Activities/...
The inner exception is:
The remote server returned an error: (404) Not Found.
We have got stuck here for a couple of days and...
The workflow server runs on a dedicated machine than the SQL server for workflow farm DBs...
I found one similar complain for the pre-release versions of the workflow and service bus etc.
Help please...
muharrem
MuharremHi,I had already done disableloopbackcheck and it did not matter.No problem with creating scopes (using powershell) but pairing fails anyway.Here is the config from a local explorer connection to the HTTPS port:(And following it, you may see the result of
a scope enumerator script)
<?xml version="1.0"?>
<ScopeInfo xmlns="http://schemas.microsoft.com/workflow/2012/xaml/activities" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ChildScopeCount>3</ChildScopeCount>
<DefaultWorkflowConfiguration/>
<Description>For / sample only</Description>
<LastModified>2013-11-08T21:22:00.967</LastModified>
<LastRevised>2013-11-08T00:04:31.88</LastRevised>
<Path>/</Path>
<SecurityConfigurations>
<ScopedSecurityConfiguration i:type="WindowsSecurityConfiguration">
<Name>Microsoft.Workflow.Management.Security.WindowsSecurityConfiguration</Name>
<WorkflowAdminGroupName>altemis\WorkflowAdmins</WorkflowAdminGroupName>
</ScopedSecurityConfiguration>
</SecurityConfigurations><
Status>Active</Status>
</ScopeInfo>
PS C:\Shared> C:\Shared\WF Script-Enumaret Scopes.ps1
Name:
Path: /
Status: Active
User Comments: For / sample only
Parent: None
Children: 3
Exception calling "GetChildScopes" with "0" argument(s): "Scope '/$ChildScopes' was not found. HTTP headers received from
the server - ActivityId: 616224db-0321-450a-92ef-f03384c008a2. NodeId: ALTEMIS-SVR02. Scope: /$ChildScopes. Client
ActivityId : 649dba85-dc89-0002-d9bf-9d6489dcce01."
At C:\Shared\WF Script-Enumaret Scopes.ps1:21 char:9
+ $manager.GetChildScopes() | % { WriteScopeInfo $scopeUri $_.Path $scope. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ScopeNotFoundException
Muharrem -
Error trying to run the Sample Code Virtual Private Database using JSP's
Hi.
I`ve downloaded the Virtual Private Database using JSP's example from the Oracle9iAS Security - Sample Corner (http://otn.oracle.com/sample_code/deploy/security/9i_security.html)
I ran the SQL script just fine. I�ve Opened the JDeveloper Flile (security.jws) and tried to Make it (following step 2 on "Run the Application using JDeveloper Environmentinstructions" in the README ) but i get this error:
Error: unable to copy to output directory, web.xml not found
It seems that i need the web.xml to run this application, but in the zip file i cannot find any XML file.
What can i do?.
Thanks in advance for your helpHi,
the problem seems not to be within your application but in missing files on your embedded OC4J. Just try and unzip the JDeveloper 10.1.3 install again.
Frank -
Exceptions trying to run Junit test thro Jdev. Test uses Application module
Hi,
my junit test works through the OraTst frame work. But I want to debug the code and If I try to run the same test through Jdev I am running into a following exception. Can somebody tell me how to fix this issue.
I am a consumer of the Application module, I have not created it. I am using it by referencing it through the jar file provided by the owner.
oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/EMReposDS
at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1414)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:553)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:409)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8534)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4392)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2388)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareResource(ApplicationPoolImpl.java:3621)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:344)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2200)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3088)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1494)
at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1399)
at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1370)
-SiddSidd,
No idea what OraTst is, but based upon the name of your data source, I'd guess you are an Oracle employee using an internal framework. I understand that there are some internal Oracle forums that you can use.
John -
Error trying to run sample jsf_cardemo
Hi all,
I tried to run jsf sample jsf-cardemo on oc4j 9.0.3
I deployed the war file jsf-cardemo.war which comes bundle with jsf1.1 release
The same app is running perfectly on tomcat 4.1.29
But it gives me the following error in oc4j9.0.3
java.lang.IllegalArgumentException: Resource /chooseLocale.faces not found
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindPageContext.forward(EvermindPageContext.java:196)
at index.jspService(_index.java:48)
[SRC:/index.jsp:55]
at com.orionserver[Oracle9iAS (9.0.3.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:537)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:272)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
at java.lang.Thread.run(Thread.java:484)
Can anybody tell me what is going wrong?
I have done every thing that is instructed in the deployment guide of the jsf1.1 release
It says jsf1.1 is tested on a 1.3 jvm and there is no reason why the sample wont run on j2ee 1.3 container
It is running fine on tomcat 4.1.29(j2ee 1.3 container)
So what is wrong with oc4j? or is it an oc4j problem?
Please help?
ThxFigured out the problem
U have to add the following entry in <web-app> section of web.xml
<listener>
<listener-class>
com.sun.faces.config.ConfigureListener
</listener-class>
</listener>
Issue has been resolved
But another one comes up
Whenever i try to access any page it gives the the following error
OracleJSP: oracle.jsp.parse.JspParseException: Line # 41, <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
Error: oracle.xml.parser.v2.XMLParseException ( /greeting.jsp ):
line #:3 column #:48 : FIXED type Attribute value not equal to the default value 'http://java.sun.com/xml/ns/j2ee'.
line #:4 column #:14 : Attribute 'xmlns:xsi' used but not declared.
line #:5 column #:23 : Attribute 'xsi:schemaLocation' used but not declared.
line #:6 column #:12 : Attribute 'version' used but not declared.
line #:8 column #:15 : Invalid element 'description' in content of 'taglib', expected elements '[tlibversion]'.
line #:8 column #:15 : Element 'description' used but not declared.
line #:9 column #:16 : Invalid element 'display-name' in content of 'taglib', expected elements '[tlibversion]'.
line #:9 column #:16 : Element 'display-name' used but not declared.
line #:10 column #:16 : Invalid element 'tlib-version' in content of 'taglib', expected elements '[tlibversion]'.
line #:10 column #:16 : Element 'tlib-version' used but not declared.
line #:11 column #:14 : Invalid element 'short-name' in content of 'taglib', expected elements '[tlibversion]'.
line #:11 column #:14 : Element 'short-name' used but not declared.
line #:12 column #:7 : Invalid element 'uri' in content of 'taglib', expected elements '[tlibversion]'.
line #:14 column #:13 : Invalid element 'validator' in content of 'taglib', expected elements '[tlibversion]'.
line #:14 column #:13 : Element 'validator' used but not declared.
line #:15 column #:17 : Element 'description' used but not declared.
line #:18 column #:21 : Element 'validator-class' used but not declared.
line #:23 column #:7 : Invalid element 'tag' in content of 'taglib', expected elements '[tlibversion]'.
line #:24 column #:17 : Invalid element 'description' in content of 'tag', expected elements '[name]'.
line #:24 column #:17 : Element 'description' used but not declared.
Seems to be a tag library problem
Any idea wht is causing it? -
Error while running a sample code
Hello,
I 'm getting the following error while i'm trying to run a
sample code which I have imported into Flex 3.
===================================================================
Severity and Description Path Resource Location Creation Time
Id
unable to open 'C:\Documents and Settings\sn55179\My
Documents\Flex Builder
3\FlexForDummies_Chapter3_Code\libs'FlexForDummies_Chapter3_Code
Unknown 1237909480511 215
===================================================================
Can anyone help me in resolving this issue.
Many thanks in advance.It's very frustrating that FB stops working when the libs
folder is missing. If you are checking in project files to a source
control app like Perforce, empty folders don't get added, so if you
don't add an initial dummy file, the next time you do a clean sync,
the libs folder may not be there, and even though there is nothing
there, FB complains. :-( -
Error while running the Sample code
Hi,
I am using jdeveloper 10.3 and I was trying to run the sample application that is present in the following url. I didnt change any thing in the code.
http://www.oracle.com/technology/sample_code/products/jdev/readmes/samples/ldapdatacontrol/ldapapplication/public_html/index.html
But While running the Test.java I get the following error. Is there any one who can help me in this please?
javax.naming.OperationNotSupportedException: [LDAP: error code 53 - Please enter more characters]; remaining name 'dc=yourcompany,dc=users'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3058)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2737)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1808)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
at dc.ldap.model.LDAPSearch.executeSearch(LDAPSearch.java:55)
at dc.ldap.runtime.Test.main(Test.java:19)
Exception in thread "main" java.lang.NullPointerException
Thanks,
Haripriya.SProbably you'll get more answers when you post this kinda questions in the JDev forum.
-
Trying to run an MBean on OCMS
Hello
I am trying to run a sample MBean on the OCMS server. The sample being run is "JMX Essentials" found at the following link...
http://java.sun.com/j2se/1.5.0/docs/guide/jmx/examples.html
However, I am not sure how should I deploy this MBean to the em. Can someone please guide me?
Thanks
AHello
I am not able to see the MBean in EM. Here are the steps I followed...
My application is called "basicresponse", which is deployed using eclipse SCE onto OCMS.
Within, I have the following files in the com.example.mbeans package...
1. HelloMBean.java //interface
2. Hello.java //implementation
3. Main.java //registering program
My orion-application.xml file, found in the application_deployments folder within OCMS, is as follows...
<?xml version="1.0"?>
<orion-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-application-10_0.xsd"
deployment-version="10.1.3.1.1" default-data-source="jdbc/OracleDS" component-
classification="external"
schema-major-version="10" schema-minor-version="0" >
<web-module id="basicresponse" path="basicresponse.war" />
<persistence path="persistence" />
<principals path="principals.xml" />
<jazn provider="XML" />
<log>
<file path="application.log" />
</log>
<jmx-mbean objectname=":type=Application,name=Hello"
class="com.example.mbeans:Hello">
<description>My First MBean</description>
</jmx-mbean>
</orion-application>
NOTE: I have NOT created any jar file for the above classes, do I need to create one? Eclipse has the basicresponse.ear and .war files already made.
If yes, where and how do I package it?
Also, my MBean registration program, ie. Main.java , is as follows...
/* Main.java - main class for Hello World example. Create the
HelloWorld MBean, register it, then wait forever (or until the
program is interrupted). */
package com.example.mbeans;
import javax.management.MBeanServer;
import javax.management.MBeanServerFactory;
import javax.management.ObjectName;
public class Main {
/* For simplicity, we declare "throws Exception". Real programs
will usually want finer-grained exception handling. */
public static void main(String[] args) throws Exception {
try
// Get a reference to the MBeanServer
MBeanServer m = MBeanServerFactory.newMBeanServer();
// Create the MBean instance
Hello bean = new Hello();
//Construct the MBean name using the default application's domain name
ObjectName beanName= new ObjectName(m.getDefaultDomain()+
":type=Hello,name=Hello");
// Register the MBean with the MBeanServer
m.registerMBean(bean, beanName);
} catch(Exception e)
// Handle exceptions; for simplicity, dump the stack trace to show any
// errors that occur
e.printStackTrace();
// Wait forever
System.out.println("Waiting forever...");
Thread.sleep(Long.MAX_VALUE);
Please guide me.
Thanks,
AJ -
I try to run oracle sample,but error appear ,how can i avoid the error
after installing database and sample,i tried to run the sample ,but error appeared
D:\app\yu\product\11.2.0\dbhome_1\OCI\samples>bcmake.bat
Please set environment variable BORLAND_HOME
how to get borland compier?
why used borland compier? i think most developer use visual studio .
please tell me how to compile the given sample by oracle?
thanks
Edited by: user12070477 on 2013-5-8 下午8:44
Edited by: user12070477 on 2013-5-9 下午8:20Check this support document for update and restore errors. Resolve iOS update and restore errors - Apple Support
Looks like that can be a hardware error, but go ahead and follow the other steps in the document. -
Problem running the sample adf demo
Hi,
I'm a new user of JDeveloper and trying to use ADF Faces.
I followed the instructions to setup ADF faces in JDeveloper.
While trying to run the sample demo provided(adffacesdemo), I get the following error messages
Error: "http://java.sun.com/jsf/core" is not a registered TLD namespace.
Error: Unable to load taghandler class: http://java.sun.com/jsf/core
Error: "http://xmlns.oracle.com/adf/faces/EA14/html" is not a registered TLD namespace.
and many more errors of this sort.
Now I have managed to succesfully run JSF applications in JDeveloper without using ADF faces. No problems with that.
I have no clue as to why these errors are coming.
Any help is appreciated.
thanks,
RashmiHi,
I'm a new user of JDeveloper and trying to use ADF Faces.
I followed the instructions to setup ADF faces in JDeveloper.
While trying to run the sample demo provided(adffacesdemo), I get the following error messages
Error: "http://java.sun.com/jsf/core" is not a registered TLD namespace.
Error: Unable to load taghandler class: http://java.sun.com/jsf/core
Error: "http://xmlns.oracle.com/adf/faces/EA14/html" is not a registered TLD namespace.
and many more errors of this sort.
Now I have managed to succesfully run JSF applications in JDeveloper without using ADF faces. No problems with that.
I have no clue as to why these errors are coming.
Any help is appreciated.
thanks,
Rashmi -
RuntimeException when running javafx sample StopWatch on raspberry pi
Hi ..
I installed JDK 8 (with JavaFX) for ARM Early Access on my raspberry pi ,when i am trying to run a sample app i am getting this exception
Exception in thread "main" java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: Can't load library: /opt/jdk1.8.0/jre/lib/arm/libglass.so
at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:325)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:122)
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:163)
at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:47)
at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.UnsatisfiedLinkError: Can't load library: /opt/jdk1.8.0/jre/lib/arm/libglass.so
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1846)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1060)
at com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(Unknown Source)
at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(Unknown Source)
at com.sun.glass.utils.NativeLibLoader.loadLibrary(Unknown Source)
at com.sun.glass.ui.Application.loadNativeLibrary(Unknown Source)
at com.sun.glass.ui.Application.loadNativeLibrary(Unknown Source)
at com.sun.glass.ui.gtk.GtkApplication$1.run(Unknown Source)
at com.sun.glass.ui.gtk.GtkApplication$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.<clinit>(Unknown Source)
at com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(Unknown Source)
at com.sun.glass.ui.Application.run(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:315)
... 5 more
any idea why this is happening ?
Edited by: chandu0101 on Jan 8, 2013 7:14 PMthere is a typo in my command :( , i am missing letter 'm' in platform . Thank you :)
Edited by: chandu0101 on Jan 10, 2013 4:29 PM
Edited by: chandu0101 on Jan 12, 2013 11:10 AM -
Trying to run sample applet 'Wallet'. What is PIN?
Dear
I'm trying to run sample applet 'Wallet' in java card development kit.
I have 2 questions.
1) I successfully upload 'cap file'. but I got an error when I install it.
I don't know why.
Below is the APDU
cm> upload "C:\wallet.cap"
=> 80 E6 02 00 16 09 77 61 6C 6C 65 74 70 6B 67 08 ......walletpkg.
A0 00 00 00 03 00 00 00 00 00 00 00 ............
(114664 usec)
<= 00 90 00 ...
Status: No Error
=> 80 E8 00 00 FF C4 82 02 A8 01 00 13 DE CA FF ED ................
01 02 04 00 01 09 77 61 6C 6C 65 74 70 6B 67 02 ......walletpkg.
00 1F 00 13 00 1F 00 0D 00 0B 00 66 00 12 01 87 ...........f....
00 0A 00 3A 00 00 00 DD 00 00 00 00 00 00 01 01 ...:............
00 04 00 0B 01 00 01 07 A0 00 00 00 62 01 01 03 ............b...
00 0D 01 09 77 61 6C 6C 65 74 61 70 70 00 01 06 ....walletapp...
00 12 00 80 03 02 00 01 04 04 00 00 00 3A FF FF .............:..
00 2D 00 42 07 01 87 00 04 30 8F 00 0A 18 1D 1E .-.B.....0......
8C 00 09 7A 05 40 18 8C 00 16 18 8F 00 10 3D 06 ...z.@........=.
10 08 8C 00 15 87 00 AD 00 19 1E 1F 8B 00 03 18 ................
8B 00 12 7A 01 10 AD 00 8B 00 08 61 04 03 78 04 ...z.......a..x.
78 01 10 AD 00 8B 00 06 7A 02 21 19 8B 00 02 2D x.......z.!....-
18 8B 00 0F 60 03 7A 1A 03 25 10 B0 6A 08 11 6E ....`.z..%..j..n
00 8D 00 0D 1A 04 25 75 00 2D 00 04 00 20 00 27 ......%u.-... .'
00 30 00 21 00 40 00 1B 00 50 00 15 18 19 8C 00 [email protected]......
0E 7A 18 19 8C 00 04 7A 18 19 8C 00 17 7A 18 19 .z.....z.....z..
8C 00 0B 7A 00 ...z.
(551929 usec)
<= 90 00 ..
Status: No Error
=> 80 E8 00 01 FF 11 6D 00 8D 00 0D 7A 03 24 AD 00 ......m....z.$..
8B 00 13 61 08 11 63 01 8D 00 0D 19 8B 00 02 2D ...a..c........-
1A 07 25 32 19 8B 00 07 5B 29 04 1F 04 6B 07 16 ..%2....[)...k..
04 04 6A 08 11 67 00 8D 00 0D 1A 08 25 29 05 16 ..j..g......%)..
05 10 64 6E 06 16 05 63 08 11 6A 83 8D 00 0D AF ..dn...c..j.....
01 16 05 41 11 27 10 6F 08 11 6A 84 8D 00 0D 18 ...A.'.o..j.....
AF 01 16 05 41 89 01 7A 03 24 AD 00 8B 00 13 61 ....A..z.$.....a
08 11 63 01 8D 00 0D 19 8B 00 02 2D 1A 07 25 32 ..c........-..%2
19 8B 00 07 5B 29 04 1F 04 6B 07 16 04 04 6A 08 ....[)...k....j.
11 67 00 8D 00 0D 1A 08 25 29 05 16 05 10 64 6E .g......%)....dn
06 16 05 63 08 11 6A 83 8D 00 0D AF 01 16 05 43 ...c..j........C
63 08 11 6A 85 8D 00 0D 18 AF 01 16 05 43 89 01 c..j.........C..
7A 03 22 19 8B 00 02 2D 19 8B 00 11 32 19 05 8B z."....-....2...
00 0C 1A 03 AF 01 8D 00 18 3B 19 03 05 8B 00 05 .........;......
7A 04 22 19 8B 00 02 2D 19 8B 00 07 5B 32 AD 00 z."....-....[2..
1A 08 1F 8B 00 14 61 08 11 63 00 8D 00 0D 7A 08 ......a..c....z.
00 0A 00 00 00 .....
(405152 usec)
<= 90 00 ..
Status: No Error
=> 80 E8 80 02 AE 00 00 00 00 00 00 00 00 05 00 66 ...............f
00 19 02 00 00 00 02 00 00 01 03 80 0A 01 03 80 ................
09 08 06 00 00 F0 03 80 0A 04 03 80 09 05 03 80 ................
0A 06 03 80 09 02 06 00 00 0D 01 00 00 00 06 00 ................
01 69 03 80 0A 09 06 80 07 01 06 00 01 49 03 80 .i...........I..
03 03 01 80 09 00 03 80 0A 07 03 80 03 01 03 80 ................
09 04 03 80 09 01 06 80 09 00 06 80 03 00 06 00 ................
00 94 06 80 10 06 09 00 3A 00 0E 1F 02 0F 0D 5A ........:......Z
41 11 05 05 41 0E 05 16 1A 00 28 04 06 07 04 07 A...A.....(.....
0A 04 08 0D 07 05 10 1D 06 06 06 07 08 08 04 09 ................
12 15 10 10 08 04 09 12 15 0D 0F 05 06 07 07 07 ................
05 0A 08 00 ....
(658167 usec)
<= 00 90 00 ...
Status: No Error
Load report:
684 bytes loaded in 1.8 seconds
effective code size on card:
+ package AID 9
+ applet AIDs 16
+ classes 21
+ methods 394
+ statics 0
+ exports 0
overall 440 bytes
cm> install -i 77616c6c6574617070 -q C9#() 77616c6c6574706b67 77616c6c6574617070
=> 80 E6 0C 00 24 09 77 61 6C 6C 65 74 70 6B 67 09 ....$.walletpkg.
77 61 6C 6C 65 74 61 70 70 09 77 61 6C 6C 65 74 walletapp.wallet
61 70 70 01 00 02 C9 00 00 00 app.......
(269663 usec)
<= 6A 80 j.
Status: Wrong data
jcshell: Error code: 6a80 (Wrong data)
jcshell: Wrong response APDU: 6A80
Unexpected error; aborting execution
Another question
2) According to the code I have to specify PIN number when I
install it. Is PIN different from PIN in the card?
Is it application dependent?
private WalletApp (byte[] bArray, short bOffset, byte bLength){
pin = new OwnerPIN(PIN_TRY_LIMIT, MAX_PIN_SIZE);
// bArray contains the PIN initialization value
pin.update(bArray, bOffset, bLength);
// register the applet instance with the JCRE
register();
} // end of the constructor
Anyone can help?
I really appreciate your help2) According to the code I have to specify PIN number when I
install it. Is PIN different from PIN in the the card?
Is it application dependent?Yes, it is an card idependent but application dependent PIN.
Jan -
Error while running the sample program in Oracle CEP
Hi I am New to CEP. I have installed Oracle CEP 11g. I am trying to run the example available in sample folder. I am getting the below error.
Exception in thread "Main Thread" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.wlevs.Server.main(Server.java:185)
Caused by: java.lang.IllegalArgumentException: Bundle <file:/D:/bea/modules/com.bea.core.apache.commons.logging.api_1.1.0.jar> has no known start level label
at com.bea.backplane.launcher.Launcher.getStartLevelLabelFromJarLabel(Launcher.java:1663)
at com.bea.backplane.launcher.Launcher.updateStartLevelViaJarLabel(Launcher.java:1714)
at com.bea.backplane.launcher.Launcher.adjustStartLevel(Launcher.java:1625)
at com.bea.backplane.launcher.Launcher.prepareConfig(Launcher.java:1169)
at com.bea.backplane.launcher.Launcher.run(Launcher.java:539)
at com.bea.backplane.launcher.Launcher.main(Launcher.java:149)
... 5 more
Please let me know the reason for getting the error.I'm gussing you installed OCEP in an existing ORACLE_HOME. You should create a new home otherwise the modules may conflict with other products.
andy
Maybe you are looking for
-
i have downloaded my previous purchases but they cut off at about 1.45 into the song this is really getting me fed up does anyone have a solution
-
It also tells me that AVG is not compatible but this programme has not been deleted.
-
File "/usr/bin/fusion-icon", line 31 print ' * Configuration file (%s) being reset' %config_file ^ SyntaxError: invalid syntax this is the error i get. nothing on google
-
Can't instal newest video driver
I have T400 running Win7-SP1, with an Intel 45 integrated graphics chipset. I've downloaded the latest driver for Win7x64 systems from the Lenovo site. I'm sure I've downloaded the right driver, but when I tried to install it, I get an error message
-
Value need to select from the drop down list & should be save under Variant
Hi, My requirement is that i need to display two values in drop down list of a selection screen. Between two values , one value will be display as a default value. During program execution user can choose any value from drop down list as per requirem