Run the example of ejb tutorial ...
When I run the example of "Enterprise JavaBeansTM Tutorial:
Building Your First Stateless Session Bean"--DemoClient,(Weblogic server 6.0,
win 2000) ,I met a probelm.
Following is the error information:
C:\bea\wlserver6.0\CLASSES>java -Djava.naming.factory.initial=weblogic.jndi.Teng
ahInitialContextFactory -Djava.naming.provider.url=t3://localhost:7001 ejb.demo.
DemoClient
begin DemoClient...
=> Error <=
javax.naming.NoInitialContextException: Cannot instantiate class: weglogic.jndi.
T3InitialContextFactory. Root exception is java.lang.ClassNotFoundException: we
glogic.jndi.T3InitialContextFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.jav
a:45)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
55)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)
at ejb.demo.DemoClient.getInitialContext(DemoClient.java:58)
at ejb.demo.DemoClient.main(DemoClient.java:15)
End DemoClient...
Any guidance will be appreciated!
Thanks, Yu
I managed to fix my problem, hopefully thissolution
will help you as well.
I discovered that the following entries arerequired
in the jndi.properties file in order to lookupEJB's
using JNDI from a client application:
java.naming.factory.initial=com.sun.jndi.cosnaming.CNCt
Factory
java.naming.provider.url=iiop://localhost:1050
Note that my environment uses the j2ee server fromSUN
running on the localhost on port 1050.
If you can locate the proper settings for theweblogic
server, then you can try this solution on for size.
One quick question: When I try to run my client
against the Ref. Implementation like this:
java -Dorg.omg.CORBA.ORBInitialHost=localhost
-Dorg.omg.CORBA.ORBInitialPort=1050
-Djava.naming.factory.initial=com.sun.jndi.cosnaming.CN
txFactory
-Djava.naming.provider.url=iiop://localhost:1050
com.sld.role.ValidationClient
I get the following error:
javax.naming.NamingException: java:comp/env namespace
is only available from within a J2EE component.
This stinks. All I can find out is that Sun wants you
to use runclient, which is silly. My client is trying
to resolve the JNDI name:
"java:comp/env/ejb/ValidationSessionBean"
Any idea why this isn't working?
Thanks....
-ScottGot it working. Here's how:
In the client's CLASSPATH I have three things: j2ee.jar, the client jar file generated by the server during deployment, and my client class files. I took out all of the -D stuff above and it still works. (With or without it.) I haven't tried it from another machine yet - I may need them for that.
The client uses the JNDI name "ValidationSessionBean", not "java:comp/env/ejb/ValidationSessionBean" and it now can bind to it.
I wish Sun would have given out this kind of info with their J2EE tutorial, instead of just pushing their runclient script, which uses their own client class.
-Scott
Similar Messages
-
Problems with Running the Examples in J2ee tutorial-asant utility
Hello,
I am just working on the examples given in the J2EE tutorials given by SUN.
When trying to build the examples using the asant utility,I encounter an error message saying
"BUILD FAILED"
and it says some error with the build.xml file (C:\lib not found)
I think i have all my CLASSPATH settings and PATH setting right.Can anyone suggets me a solution to this problem,so that i can go ahead with the details.
Thanks
Sandeepdid you set the build.properties settings properly ?
-
My itunes looks nothing like the examples in this tutorial. I do not have "display exact duplicates" or "date added". Can someone please help me remove duplicate songs? Also, I downloaded two audio books and they are showing up in my song list. Why???
'Show duplicates' is now under the 'View' menu. To see the 'Date added' column go to 'View options' from the 'View' menu and check it in the section under 'Stats'.
Click an audiobook once to select it and hit command-i (Mac) or control-i (Windows). Go to the 'Options' tab and set 'Media Kind' to 'Audiobook'. -
Is anyone know how to run the examples in 3d user interfaces with java 3d
hi dear ,
I am trying to run the examples in 3d user interfaces with java 3d.
I hope i can load the library in jcreator. but the libarary for this book are classes files , it do not have jar file for it . the jcreator do not read these classes . i do not know why ? i am wonder if there any one run these code before can give me some idear .
thanks so much .
the code u can get from this link.
http://www.manning.com/books/barrilleaux/source
thank you for u to have a look for me .
regards
xiaocui<h2>{color:red}CROSS POSTED{color}</h2>
[t-5289810]
Cross posting is rude.
db -
Errors compiling the example.rmi_iiop.ejb.generic_idl example
Hello,
I have WebLogic Server 6.0, jdk1.3, Inprise's Visibroker for C++ 4.0 all on Windows
NT.
I am following the steps on the examples\rmi_iiop\ejb\generic_idl\package-summary.html
page in my weblogic directory. The errors occur at step 3g of the section "Compile
the c++ stubs and client source file ".
The errors are output by the java compiler. They are:
C:\bea\wlserver6.0 samples\examples\rmi_iiop\ejb\generic_idl>CL /MD /DTHREAD /no
logo -DWIN32 /GX /DSTRICT /DALIGNED /DVISIBROKER /DMSVCUSING_BUG /DMSVCNESTEDUS
ING_BUG -Icpp -Ic:\Inprise\vbroker\include -Ic:\Inprise\vbroker\include\stubs -I
C:\bea\wlserver6.0\samples -c Trader_c.cpp TraderHome_c.cpp cpp\Client.cpp cpp\j
avax\ejb\EJBObject_c.cpp cpp\javax\ejb\EJBHome_c.cpp cpp\javax\ejb\RemoveEx_c.cp
p cpp\javax\ejb\RemoveException_c.cpp cpp\java\lang\_Object_c.cpp cpp\java\lang\
Exc.cpp cpp\java\lang\_Exception_c.cpp cpp\java\lang\Throwable_c.cpp cpp\java\
rmi\Remote_c.cpp cpp\java\io\PrintWriter_c.cpp cpp\java\io\PrintStream_c.cpp cpp
\java\io\Writer_c.cpp cpp\java\io\Serializable_c.cpp cpp\java\io\IOException_c.c
pp cpp\java\io\IOEx_c.cpp cpp\org\omg\boxedRMI\seq1_wchar_c.cpp
Trader_c.cpp
Trader_c.hh(15) : warning C4067: unexpected tokens following pragma directive -
expected a newline
cpp\javax/ejb/EJBObject_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\javax/ejb/EJBObject_c.hh(18) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\javax/ejb/RemoveEx_c.hh(15) : warning C4067: unexpected tokens following pra
gma directive - expected a newline
cpp\javax/ejb/RemoveException_c.hh(15) : warning C4067: unexpected tokens follow
ing pragma directive - expected a newline
cpp\java/lang/_Exception_c.hh(15) : warning C4067: unexpected tokens following p
ragma directive - expected a newline
cpp\java/lang/Throwable_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/lang/Throwable_c.hh(18) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(18) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(21) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/Writer_c.hh(15) : warning C4067: unexpected tokens following pragma
directive - expected a newline
cpp\java/io/Writer_c.hh(18) : warning C4067: unexpected tokens following pragma
directive - expected a newline
cpp\java/io/IOEx_c.hh(15) : warning C4067: unexpected tokens following pragma di
rective - expected a newline
cpp\java/io/IOException_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/IOException_c.hh(90) : error C2039: 'Exception' : is not a member of
'lang'
cpp\java/io/IOException_c.hh(90) : error C2504: 'Exception' : base class undefin
ed
cpp\java/io/IOException_c.hh(127) : error C2039: 'OBV_Exception' : is not a memb
er of 'lang'
cpp\java/io/IOException_c.hh(127) : error C2504: 'OBV_Exception' : base class un
defined
cpp\java/lang/Throwable_c.hh(21) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(18) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(21) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(22) : fatal error C1083: Cannot open include file:
'org/omg/boxedRMI/seq1_octet_c.hh': No such file or directory
TraderHome_c.cpp
TraderHome_c.hh(15) : warning C4067: unexpected tokens following pragma directiv
e - expected a newline
C:\bea\wlserver6.0\samples\examples/rmi_iiop/ejb/generic_idl/Trader_c.hh(15) : w
arning C4067: unexpected tokens following pragma directive - expected a newline
cpp\javax/ejb/EJBObject_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\javax/ejb/EJBObject_c.hh(18) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\javax/ejb/RemoveEx_c.hh(15) : warning C4067: unexpected tokens following pra
gma directive - expected a newline
cpp\javax/ejb/RemoveException_c.hh(15) : warning C4067: unexpected tokens follow
ing pragma directive - expected a newline
cpp\java/lang/_Exception_c.hh(15) : warning C4067: unexpected tokens following p
ragma directive - expected a newline
cpp\java/lang/Throwable_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/lang/Throwable_c.hh(18) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(18) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(21) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/Writer_c.hh(15) : warning C4067: unexpected tokens following pragma
directive - expected a newline
cpp\java/io/Writer_c.hh(18) : warning C4067: unexpected tokens following pragma
directive - expected a newline
cpp\java/io/IOEx_c.hh(15) : warning C4067: unexpected tokens following pragma di
rective - expected a newline
cpp\java/io/IOException_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/IOException_c.hh(90) : error C2039: 'Exception' : is not a member of
'lang'
cpp\java/io/IOException_c.hh(90) : error C2504: 'Exception' : base class undefin
ed
cpp\java/io/IOException_c.hh(127) : error C2039: 'OBV_Exception' : is not a memb
er of 'lang'
cpp\java/io/IOException_c.hh(127) : error C2504: 'OBV_Exception' : base class un
defined
cpp\java/lang/Throwable_c.hh(21) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(18) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(21) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(22) : fatal error C1083: Cannot open include file:
'org/omg/boxedRMI/seq1_octet_c.hh': No such file or directory
Client.cpp
Have I misapplied some steps? Or, my env has not been set correctly?
Any help would be greatly appreciated.
Kevin WuThanks for your respond, Eduardo.
Could you explain me in more detail why the C++ code doesn't compile, and how the
new target in the make file can help us?
Thanks!
Eduardo Ceballos <[email protected]> wrote:
There's nothing wrong with what you've done. The C code just doesn't compile.
Grab WLS 6.0 SP1 when it is available (shortly). There is a new target in
the make file that narrows the IDL production by method signature.
Kevin Wu wrote:
Hello,
I have WebLogic Server 6.0, jdk1.3, Inprise's Visibroker for C++ 4.0 allon Windows
NT.
I am following the steps on the examples\rmi_iiop\ejb\generic_idl\package-summary.html
page in my weblogic directory. The errors occur at step 3g of the section"Compile
the c++ stubs and client source file ".
The errors are output by the java compiler. They are:
C:\bea\wlserver6.0 samples\examples\rmi_iiop\ejb\generic_idl>CL /MD /DTHREAD/no
logo -DWIN32 /GX /DSTRICT /DALIGNED /DVISIBROKER /DMSVCUSING_BUG /DMSVCNESTEDUS
ING_BUG -Icpp -Ic:\Inprise\vbroker\include -Ic:\Inprise\vbroker\include\stubs-I
C:\bea\wlserver6.0\samples -c Trader_c.cpp TraderHome_c.cpp cpp\Client.cppcpp\j
avax\ejb\EJBObject_c.cpp cpp\javax\ejb\EJBHome_c.cpp cpp\javax\ejb\RemoveEx_c.cp
p cpp\javax\ejb\RemoveException_c.cpp cpp\java\lang\_Object_c.cpp cpp\java\lang\
Exc.cpp cpp\java\lang\_Exception_c.cpp cpp\java\lang\Throwable_c.cppcpp\java\
rmi\Remote_c.cpp cpp\java\io\PrintWriter_c.cpp cpp\java\io\PrintStream_c.cppcpp
\java\io\Writer_c.cpp cpp\java\io\Serializable_c.cpp cpp\java\io\IOException_c.c
pp cpp\java\io\IOEx_c.cpp cpp\org\omg\boxedRMI\seq1_wchar_c.cpp
Trader_c.cpp
Trader_c.hh(15) : warning C4067: unexpected tokens following pragma directive-
expected a newline
cpp\javax/ejb/EJBObject_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\javax/ejb/EJBObject_c.hh(18) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\javax/ejb/RemoveEx_c.hh(15) : warning C4067: unexpected tokens followingpra
gma directive - expected a newline
cpp\javax/ejb/RemoveException_c.hh(15) : warning C4067: unexpected tokensfollow
ing pragma directive - expected a newline
cpp\java/lang/_Exception_c.hh(15) : warning C4067: unexpected tokens followingp
ragma directive - expected a newline
cpp\java/lang/Throwable_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/lang/Throwable_c.hh(18) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(18) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(21) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/Writer_c.hh(15) : warning C4067: unexpected tokens followingpragma
directive - expected a newline
cpp\java/io/Writer_c.hh(18) : warning C4067: unexpected tokens followingpragma
directive - expected a newline
cpp\java/io/IOEx_c.hh(15) : warning C4067: unexpected tokens followingpragma di
rective - expected a newline
cpp\java/io/IOException_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/IOException_c.hh(90) : error C2039: 'Exception' : is not amember of
'lang'
cpp\java/io/IOException_c.hh(90) : error C2504: 'Exception' : base classundefin
ed
cpp\java/io/IOException_c.hh(127) : error C2039: 'OBV_Exception' : isnot a memb
er of 'lang'
cpp\java/io/IOException_c.hh(127) : error C2504: 'OBV_Exception' : baseclass un
defined
cpp\java/lang/Throwable_c.hh(21) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(18) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(21) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(22) : fatal error C1083: Cannot open includefile:
'org/omg/boxedRMI/seq1_octet_c.hh': No such file or directory
TraderHome_c.cpp
TraderHome_c.hh(15) : warning C4067: unexpected tokens following pragmadirectiv
e - expected a newline
C:\bea\wlserver6.0\samples\examples/rmi_iiop/ejb/generic_idl/Trader_c.hh(15): w
arning C4067: unexpected tokens following pragma directive - expecteda newline
cpp\javax/ejb/EJBObject_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\javax/ejb/EJBObject_c.hh(18) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\javax/ejb/RemoveEx_c.hh(15) : warning C4067: unexpected tokens followingpra
gma directive - expected a newline
cpp\javax/ejb/RemoveException_c.hh(15) : warning C4067: unexpected tokensfollow
ing pragma directive - expected a newline
cpp\java/lang/_Exception_c.hh(15) : warning C4067: unexpected tokens followingp
ragma directive - expected a newline
cpp\java/lang/Throwable_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/lang/Throwable_c.hh(18) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(18) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(21) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/Writer_c.hh(15) : warning C4067: unexpected tokens followingpragma
directive - expected a newline
cpp\java/io/Writer_c.hh(18) : warning C4067: unexpected tokens followingpragma
directive - expected a newline
cpp\java/io/IOEx_c.hh(15) : warning C4067: unexpected tokens followingpragma di
rective - expected a newline
cpp\java/io/IOException_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/IOException_c.hh(90) : error C2039: 'Exception' : is not amember of
'lang'
cpp\java/io/IOException_c.hh(90) : error C2504: 'Exception' : base classundefin
ed
cpp\java/io/IOException_c.hh(127) : error C2039: 'OBV_Exception' : isnot a memb
er of 'lang'
cpp\java/io/IOException_c.hh(127) : error C2504: 'OBV_Exception' : baseclass un
defined
cpp\java/lang/Throwable_c.hh(21) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(18) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(21) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(22) : fatal error C1083: Cannot open includefile:
'org/omg/boxedRMI/seq1_octet_c.hh': No such file or directory
Client.cpp
Have I misapplied some steps? Or, my env has not been set correctly?
Any help would be greatly appreciated.
Kevin Wu -
I get errors When running the example programs SampleMetadataDiscoverer10g
I installed database is 10g release 2 on Windows XP,and AWM version is 102010A.
When running the example programs SampleMetadataDiscoverer10g.java to get the OLAP metadata,I get the following errors:
oracle.express.idl.util.OlapiException: java.sql.SQLException: ORA-37158: CLOB 或可变数组输入参数错误: (情形 6)
ORA-06512: 在 "SYS.GENSERVERINTERFACE", line 46
ORA-06512: 在 line 1
at oracle.express.idl.ExpressConnectionModule.ServerInterfaceStub.connect(ServerInterfaceStub.java:694)
at oracle.express.olapi.data.full.ExpressDataProvider.connect(ExpressDataProvider.java:436)
at oracle.express.olapi.data.full.ExpressDataProvider.initialize(ExpressDataProvider.java:282)
at oracle.olapi.examples.chapter4.MyConnection10g.connectToDB(MyConnection10g.java:126)
at oracle.olapi.examples.chapter4.SampleMetadataDiscoverer10g.initialize(SampleMetadataDiscoverer10g.java:57)
at oracle.olapi.examples.BaseExample.execute(BaseExample.java:32)
at oracle.olapi.examples.BaseExample.execute(BaseExample.java:46)
at oracle.olapi.examples.chapter4.SampleMetadataDiscoverer10g.main(SampleMetadataDiscoverer10g.java:44)
Closing JDBC connection.
Closed the connection.
please..can someone give me some advice? thanks!I got the same error while doing "dp.initialize()"
I fixed this error by chang the the "olap_api.jar class12.jar" to "o4j.jar".
But i can't explain that.
Can anyone tell me why?
By the way , the "olap_api.jar class12.jar" are copy from the %ORACLE_HOME%\10.2.0\db_1\olap\api\lib . -
How can i run the example programme without hardware
Hi,
We are using NI-9233 for our Project. We would like to run the example programme, the NI-9233 getting started(host).vi ... I would like to ask that how can i run the Programme without Hardware.& How shall i get the input signal (simulating signal)?because we would like to test it while we are waiting for the hardware to be delivered .
thanks
Best regardsAs Mike indicated , " you can use MAX to simulate some (not all) DAQmx devices. There's a NI-USB-9233 device that you can probably use. Open MAX, then expand "My System", the expand "Devices and Interfaces", then right-click on "NI-DAQmx Devices" and select "Create New NI-DAQmx Device -> NI-DAQmx Simulated Device". Select the device from the list. See the online help for MAX for further help.
If you don't see "NI-DAQmx Devices" in MAX you need to install NI-DAQmx. You can download it from NI here. "
hi,
the link you gave me to download is "NI-DAQmx Devices" ... There is no software to download for Labview 8.2.1. So should i use 8.1 or 8.3 instead of 8.2.1 ? If not, can you tell me the CD no. that includes the "NI-DAQmx Devices" folder of Labview 8.2.1 version? Because we can get the cd from our school's component store. Thank you so much.
Best Regards,
Su -
Cann't run the examples in dir "webapps\standard-examples\xml" of jstl1.1.2
i'm learning jstl.
fisrtly i downloaded the jstl1.1.2 zip file and upziped it, then i put the standard-examples.war file to the webapps dir of tomcat5.5 to run the examples.
now i could run some of those examples, but strangely i could not run the example of the directory of "standard-examples\xml". if i try to run, an error as follows will emerg:
javax.servlet.ServletException: org/apache/xpath/VariableStack
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.xml.Parse_jsp._jspService(org.apache.jsp.xml.Parse_jsp:90)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NoClassDefFoundError: org/apache/xpath/VariableStack
org.apache.taglibs.standard.tag.common.xml.ExprSupport.doStartTag(ExprSupport.java:63)
org.apache.jsp.xml.Parse_jsp._jspx_meth_x_out_0(org.apache.jsp.xml.Parse_jsp:168)
org.apache.jsp.xml.Parse_jsp._jspService(org.apache.jsp.xml.Parse_jsp:76)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Could anyone give me some advices to deal with this problem? ThanksLOL.... i ran into the same problem with Tomcat 5.5... it's quite an idiotic problem cuz like you gotta hunt everywhere to figure out why it don't work... reason is cuz those brainchildren at Apache.org who make Tomcat also make the missing Jar file but forgot to include it with Tomcat... duh... :-p
any way... visit this site... http://xml.apache.org/xalan-j/
download the zip file and extract it (follow the instructions)
you only need to copy the xalan.jar file to your Tomcat 5.5's <installpath>\common\lib folder...
then that problem will be fixed...
have fun... :-p
- MaxxDmg...
- ' He who never sleeps... ' -
Helpme, I can run the example of statefulSession ejb Client that bring by weblogic5.1
hello
i have setup a weblogic5.1 on linux redhat 6.2
jdk1.3
the jsp
and servlt
can run well
but the ejb example statefulSession and statelessSession
client can't run
i have deploy the ejb in file weblogic.properitys
that i remove the "#" from some rows that deployed the examples ejb
and i can see the ejb is loaded well on the weblogic console
the error messages:
Exception in thread "main"
java.lang.NoClassDefFoundError:javax/ejb/EJBObject
I rn the client like follow:
java -Djava.naming.factory.initial=weblogic.jndi.TengahInitialContextFactory
-Djava.naming.provider.url=t3://localhost:7001 (or port 80,null)
examples.ejb.basic.statelessSession.Client
or
java examples.ejb.basic.statefulSession.Client "t3://localhost:7001(or
80,null)" scott tiger
can you contact me
[email protected]
i 'll than you very muchAt least for WebLogic Server, there's no internal classification of an EJB as being of a specific "version".
You'll need to work from the descriptors and your view of the application to work through it.
-steve- -
How to use ant1.3 in Wndows ME to build the examples in J2EE Tutorial?
When I tried to build the examples bundled with j2ee tutorial in the ..\j2eetutorial\examples directory using the ant 1.3 on Wndows ME I get the following exception.Anybody please help me.Is there any other build tool available for download?
StringIndexOutOfboundsException
D:\JAVATUTORIAL\J2EE\j2eetutorial\examples> ant -verbose all
Ant version 1.3 compiled on March 2 2001
Buildfile: build.xml
Detected Java Version: 1.3
Detected OS: Windows Me
parsing buildfile D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml with URI
= file:D:/JAVATUTORIAL/J2EE/j2eetutorial/examples/build.xml
Project base dir set to: D:\JAVATUTORIAL\J2EE\j2eetutorial\examples
Build sequence for target `all' is [init, savingsaccount, bank, cart, checker, c
onfirmer, converter, enroller, order, salesrep, storagebin, teller, htmlreader,
warehouse, simplemessage, cmproster, ejb, date, hello1, hello2, bookstore1, web-
ejb, bookstore2, bookstore3, web, all]
Complete build sequence is [init, savingsaccount, bank, cart, checker, confirmer
, converter, enroller, order, salesrep, storagebin, teller, htmlreader, warehous
e, simplemessage, cmproster, ejb, date, hello1, hello2, bookstore1, web-ejb, boo
kstore2, bookstore3, web, all, create-storagebin-table, get-cci-jar, procs, cci,
connector, create-salesrep-table, create-procs-alias, create-coffee-table, abou
t, create-enroller-table, create-savingsaccount-table, create-web-db, create-war
ehouse-table, create-bank-table, clean, create-order-table, create-teller-table,
prepare, create-ejb-db]
init:
[property] Loading Environment myenv.
BUILD FAILED
D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml:19: D:\JAVATUTORIAL\J2EE\j2
eetutorial\examples\build.xml:19: java.lang.StringIndexOutOfBoundsException: Str
ing index out of range: -1
--- Nested Exception ---
D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml:19: java.lang.StringIndexOu
tOfBoundsException: String index out of range: -1
--- Nested Exception ---
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1476)
at org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:
248)
at org.apache.tools.ant.taskdefs.Property.execute(Property.java:172)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)
Total time: 2 seconds
D:\JAVATUTORIAL\J2EE\j2eetutorial\examples>
*********************************************************************Please Help Me
-
Trying to run the example "rf record and playback reference application"
http://zone.ni.com/devzone/cda/epd/p/id/5894 trying to run this example but a lot of files are not being found. I'm using Labview 8.5 with version 4 of the sound and vibration toolkit. I suspect the problem is the old toolkit version. Can someone confirm? Can't find any info on upgrading to toolkit so I suppose it would mean a new purchase? thanks
Hello Mike,
This example is designed for our RF Hardware platform. You need the RFSG driver, RFSA driver, Spectral Measurements Toolkit, Modulation Toolkit, and the advanced signal processing toolkit for the example to run. You should be able to see this under the software requirements at the bottom of the page. The two drivers should be available for download on our website, but the toolkits must be purchased and they aren't generally available with the dev suite.
I hope this helps,
Paul C
Message Edited by Paul C. on 03-11-2010 12:28 PM -
i have written code for the following.
*Remote Interface
*Home Interface
*Stateless SessionBean
*Client Program
how do i run the client program. Im using a jboss application server. what files should be kept in which folder to run the program...Verify if the connect.properties match your deployment mode viz Local, EJB or Oracle8i.
Uday -
How can I run the examples?
I need make any test about WebLogic, I have WebLogic Server in Solaris 2.6.
Thanks in advancing.Well,
I do not know about Solaris, but for the Windows you have a pritty good explanation
HTML-files for each example.
So if you want to run for example the WebServices-example, you will look for the
HTML-File under C:\bea\samples\examples\webservices\rpc Folder.
I guess it is very the same on Solaris
good luck
naz -
Errors found when running the example of "Five XSLT 2.0 Features ..."
Does anyone encounter the error "XSL-1015: (Error) Function 'current-group' not found" when running Oraxsl grouping_20.xsl?
Despite I followed exactly what memtioned in the article, it still did not work.
Thank you very much.Before running the samples, I downloaded the Oracle XDK 10G via http://otn.oracle.com/tech/xml/xdkhome.html
just a week ago.
So, I believe I got the most up-to-dated version of XMLparserv2.jar.
I spent a day or 2, trying to execute some samples in the article, but things did not work out well. Whenever a stylesheet file (*.xsl) contains "current-group()" functions, it raises the above error. -
Not able to run the example given
Hi All, I just started with J2ME. Tried to run the sample program given in the sun site. The programs are FirstMIDlet.java and HelloMIDlet.java. I've followed the instructions given @ the location 'http://developers.sun.com/techtopics/mobility/midp/articles/setup/#compile'. This page shows how to make the program run. But I couldnt get the color menu out put, coz there is no run.jad file existing in my comp. I didnt understand from where the file should i get and while explaining abt the HelloMIDlet program till jar creation everything went well after creading jar, jad file is been used to execute the program. I didnt understand from where the jad has come. I tried executing the jar file instead, this is the error am getting 'java.io.UTFDataFormatException: invalid first byte 10100000'. Can some help in this. Do I need to do anymore settings ? I think it requires a descriptor file also as well, but not mentioned how to prepare it and where to keep it and how to include in the jar etc...
Hello. Have you ever tried to download Sun ONE Studio 4 update 1 Mobile Edition it is small, user-friendly and FREE. It is not perfect, but it will work
Maybe you are looking for
-
Trying to create a service that starts at boot
People, I'm trying to create a service that will start at boot (in single-user mode, actually). I am up and running but I do NOT want to run the service now. I only want to run the service when the machine reboots. I've been rummaging around all day
-
I took my MacBook Pro in for repairs and erased the drive for safety AFTER having copied the entire contents to an external firewire 800 drive using SuperDuper! The copy process made the disk bootable and I was able to boot up my iMac and run it just
-
What happened the ice features of the previous iMovie - I have verson10.0.1 and have lost all the abilty to crete nice titles (most of the fonts are not even adjustable,- and when Ii have the title created, I ca't adust the fade in/out of the title
-
We're experiencing a weird issue with our unity server. The time on our unity server is ahead by one hour, yet our callmanager server is on time. If I go into windows time and correct the time on the unity server, I am unable to dial into the voicema
-
I have a question that ... i have 2 options -- when select 1st option , show group1 screen when select 2nd option, show group2 screen like the follow ..which is pretty work!....but i have another question that how to set the screen field .. my questi