Workshop tutorial bugs
I found a few bugs in the Workshop tutorial. I wonder if this is the right place
to report them.
Step 7: Add Support for Cancellation and Exception Handling
* The timer is started using creditCardReportTimer.start(). But it is never stopped.
* context_onException() calls callback.onCreditReportDone(). One problem is the
Java client do not accept call back. So the onCreditReportDone() call result in
another exception. context_onException() is invoke again. This causes an infinite
loop and eventual crashed the WLS.
Step 8: Client Application
* The Java statement
if(context.getCallbackLocation() != "")
is not a correct way to test for empty string. Use String.length().
Wai Yip Tung
Wai,
Thanks for contacting us with your feedback.
You had mentioned that the timer was started but never stopped, the
following is a snippet from the Investigate.jws available in the
applications/samples/tutorial folder.
private void creditCardReportControl_creditCardDataResult(CreditCard[]
cards)
* Now that the web service has returned its results, stop the timer
started
* in the requestCreditReportAsynch method.
creditCardReportTimer.stop();
The timer also has a timeout value of 5 minutes after which it will stop.
Regarding the other issues, I will make sure that the information is sent to
the samples team.
We appreciate your feedback.
Thanks
Raj Alagumalai
WebLogic Workshop Support
"Wai Yip Tung" <[email protected]> wrote in message
news:[email protected]..
>
I found a few bugs in the Workshop tutorial. I wonder if this is the rightplace
to report them.
Step 7: Add Support for Cancellation and Exception Handling
* The timer is started using creditCardReportTimer.start(). But it isnever stopped.
>
* context_onException() calls callback.onCreditReportDone(). One problemis the
Java client do not accept call back. So the onCreditReportDone() callresult in
another exception. context_onException() is invoke again. This causes aninfinite
loop and eventual crashed the WLS.
Step 8: Client Application
* The Java statement
if(context.getCallbackLocation() != "")
is not a correct way to test for empty string. Use String.length().
Wai Yip Tung
Similar Messages
-
Database control hangs in Workshop Tutorial !!!
Hi,
I am using WLS 7.0.1.0/SP1 ( latest version ) with Workshop included, on Windows
XP Prof. In Workshop Tutorial, Step 3, the test hangs at the execution of
Applicant dbApplicant = bankruptciesDB.checkForBankruptcies(taxID);
I am asking if it is a known problem? There may be several reasons for this and
it is too expensive to investigate all of them:
1. Tutorial text misses a fragment describing special configuration for the Database
control
2. Tutorial is correct but default ( installation ) configuration of Database
control has bug(s)
3. A helper class, implementing BankruptciesDatabaseControl interface, is missed.
4. Implementation of Database control is buggy. What the magic happens when I
“SELECT TAXID, FIRSTNAME, LASTNAME, CURRENTLYBANKRUPT FROM BANKRUPTCIES WHERE
TAXID={taxID}”, i.e. only a sub-set of “Applicant” attributes in the query, and
how Database control ( using my interface method public Investigate.Applicant
checkForBankruptcies(String taxID) ) knows which database table field to map to
which Applicant” attribute ? [I suppose, creation of “Applicant” class is independent
from the database schema, isn’t it ?]
Thank you,
- MichaelSure, I will send you the dump. Please, provide me with your e-mail.
As of column names, don’t you find it error-prone approach where a developer has
to “find” the names and type them into the code ? Since you are already deal with
a db adapter/controller, I suggest, the adapter has to read a db schema, gets
the column names and data types. In other words, I would expect in this case the
same functionality as provided by, e.g., TogetherSoft’s Control Center. It creates
Entity Beans out of the db schema and only then allows you to manipulate them.
Thank you and wait for your e-mail.
- Michael
"Anurag Pareek" <[email protected]> wrote:
Michael,
The names of the elements in the 'Applicant' class should match one-on-one
with the database column names in the corresponding table.
I guess you are using the default Pointbase database. Can you check whether
you were able to create successful connections to the Pointbase database
during server startup?
If the server is hanging at the statement you have mentioned, can you
take a
thread dump by using Ctrl->Break and email it to me.
Thanks,
Anurag
"Michael Poulin" <[email protected]> wrote in message
news:[email protected]...
Hi,
I am using WLS 7.0.1.0/SP1 ( latest version ) with Workshop included,on
Windows
XP Prof. In Workshop Tutorial, Step 3, the test hangs at the executionof
Applicant dbApplicant = bankruptciesDB.checkForBankruptcies(taxID);
I am asking if it is a known problem? There may be several reasonsfor
this and
it is too expensive to investigate all of them:
1. Tutorial text misses a fragment describing special configurationfor
the Database
control
2. Tutorial is correct but default ( installation ) configuration ofDatabase
control has bug(s)
3. A helper class, implementing BankruptciesDatabaseControl interface,is
missed.
4. Implementation of Database control is buggy. What the magic happenswhen I
"SELECT TAXID, FIRSTNAME, LASTNAME, CURRENTLYBANKRUPT FROM BANKRUPTCIESWHERE
TAXID={taxID}", i.e. only a sub-set of "Applicant" attributes in thequery, and
how Database control ( using my interface method publicInvestigate.Applicant
checkForBankruptcies(String taxID) ) knows which database table fieldto
map to
which Applicant" attribute ? [I suppose, creation of "Applicant" class
is>independent>> from the database schema, isn't it ?
Thank you,
- Michael -
Confusing Service Control in Workshop Tutorial
When you are adding a Service Control, Workshop Tutorial recommends to drug-and-drop
the control descriptor – the .ctrl file from another project – onto your Service
Component in the Design View. This operation confuses me because it contradicts
the Web Services principles. If the author of this tutorial intended to demonstrate
an ability of the tool to accept pre-built 3-rd party control descriptors, I think,
it would be better to demonstrate this for an Application View Control.
For Web Services, an application/user, who wants to establish communication with
a Web Service, is assumed to obtain ( find in UDDI or on a Web Site or in a Repository
) related WSDL and, then, create/build appropriate helpers to support this communication.
So, for the tutorial purposes, I suggest, the right scenario has to
1) find the WSDL
2) create local ( for the current project ) control descriptor, not a control
descriptor packaged into another project as it appears in existing Tutorial implementation
3) automatically generate helper components for SOAP marshalling/unmarshalling
I have tested this scenario by copying the WSDL - CreditCardReportContract.wsdl
- into my “financialservices” project, performed WSDL-to-CTRL conversion and successfully
run it in the debugger.
I do invite your opinions on this subject!
- Michael PoulinSince Workshop is recommended by BEA as a Web Services development tool, I think,
this topic may be shared between Web Services and Workshop newsgroups.
Point in my comment is not about ability or disability of Workshop of copying
CTRL files into your project. I tried to explain that this feature is inadequate
to Web Services in general if it substitutes WSDL.
I would certainly agree with and appreciate a feature that allows me, as a developer,
to reuse already existing Control Descriptor available in MY environment. However,
the Tutorial does not teach “to copy the control's CTRL file to a common folder”.
Instead, it follows the statement: “If the control will be used only by a single
web service in your project, you may choose to copy the CTRL file to the same
folder as your web service”. I doubt that the statement represents Best Practices
– it couples projects by a derivative, not by the resource. That is, if WSDL has
been changed, the 3-rd project can re-build CTRL file for itself, you project
gets into troubles ( it is obvious, right ? ).
Using Workshop, I am trying to understand how BEA recommends working with Web
Services. I recognize the power of Connector architecture and common approach
to resources accessibility represented by CTRL files. At the same time, I see
that a repository of CTRL files for Web Services can shield developers from Web
Services in WebLogic environment. If this is an accidental consequence, it has
to be clearly explained, if not fixed; if it is an intention, I would like to
hear the BEA comments on how this relates to known WSDL repositories, other standards,
and reliability of Web Services in the enterprise environment, at least.
Thank you,
- Michael
"Anurag Pareek" <[email protected]> wrote:
Michael,
For questions regarding Workshop, I will suggest you to post to the
'weblogic.developer.interest.workshop' newsgroup.
Regarding this query, the docs do state explicitly the following, which
I
guess addresses your concern:
If the CTRL file for the control you wish to use is not in your project,
you
must copy it to your project. The destination to which you copy the control
depends on your expected usage. If the control will be used only by a
single
web service in your project, you may choose to copy the CTRL file to
the
same folder as your web service. If multiple web services in different
folders in your project may use the control, you may wish to copy the
control's CTRL file to a common folder. Remember that the CTRL file must
be
in your WebLogic Workshop project.
Wherever you decide to place the control's CTRL file, it must be in your
WebLogic Workshop project.
Do let me know if you have further inputs.
Regards,
Anurag
"Michael Poulin" <[email protected]> wrote in message
news:[email protected]...
When you are adding a Service Control, Workshop Tutorial recommendsto
drug-and-drop
the control descriptor - the .ctrl file from another project - ontoyour
Service
Component in the Design View. This operation confuses me because itcontradicts
the Web Services principles. If the author of this tutorial intendedto
demonstrate
an ability of the tool to accept pre-built 3-rd party control descriptors,I think,
it would be better to demonstrate this for an Application View Control.
For Web Services, an application/user, who wants to establishcommunication with
a Web Service, is assumed to obtain ( find in UDDI or on a Web Siteor in
a Repository
) related WSDL and, then, create/build appropriate helpers to supportthis
communication.
So, for the tutorial purposes, I suggest, the right scenario has to
1) find the WSDL
2) create local ( for the current project ) control descriptor, nota
control
descriptor packaged into another project as it appears in existingTutorial implementation
3) automatically generate helper components for SOAPmarshalling/unmarshalling
I have tested this scenario by copying the WSDL -CreditCardReportContract.wsdl
- into my "financialservices" project, performed WSDL-to-CTRL conversionand successfully
run it in the debugger.
I do invite your opinions on this subject!
- Michael Poulin -
Workshop 6 Bug with STLport hash_map operator []
Using hash_map<string, string>:operator[] in a debug build crashes; in release, it doesn't. This must be a compiler bug, yes? Here's how to reproduce it.
<PRE>
[valhalla:~/test] $ cat t.c
#include <string>
#include <hash_map>
using namespace std;
main()
hash_map<string, string> m;
m["stl"] = "port";
string s = m["stl"];
[valhalla:~/test] $ rm -rf SunWS_cache/
[valhalla:~/test] $ CC -I/apps/stlport-4.5.3/stlport -L/apps/stlport-4.5.3/lib -R/apps/stlport-4.5.3/lib -lstlport_sunpro t.c
[valhalla:~/test] $ a.out
[valhalla:~/test] $ rm -rf SunWS_cache/
[valhalla:~/test] $ CC -g -I/apps/stlport-4.5.3/stlport -L/apps/stlport-4.5.3/lib -R/apps/stlport-4.5.3/lib -lstlport_sunpro t.c
[valhalla:~/test] $ a.out
Bus Error (core dumped)
[valhalla:~/test] $ dbx -q a.out core
core file header read successfully
program terminated by signal BUS (invalid address alignment)
Current function is STL::_stl_delete
99 inline void STLPCALL __stl_delete(void* __p) { ::operator delete(__p); }
(dbx) where
[1] freeunlocked(0xffbee657, 0xff23a000, 0xffbee657, 0xff23a000, 0x237e8, 0xff1c291c), at 0xff1c2974
[2] free(0xffbee657, 0xffbee5d4, 0xffbee658, 0xffbee5e2, 0xffbee5e1, 0xff19bb88), at 0xff1c2924
[3] operator delete(0xffbee657, 0xffbee658, 0xffbee657, 0xff37e540, 0x13bb0, 0x1ee00), at 0xff3636f8
=>[4] STL::_stl_delete(__p = 0xffbee657), line 99 in "new"
[5] STL::_node_alloc<true,0>::deallocate(__p = 0xffbee657, __n = 4347225U), line 253 in "_alloc.h"
[6] STL::allocator<char>::deallocate(this = 0xffbee5b0, _p = 0xffbee657 "", __n = 4347225U), line 360 in "_alloc.h"
[7] STL::STLP_alloc_proxy<char*,char,_STL::allocator<char> >::deallocate(this = 0xffbee5b0, __p = 0xffbee657 "", __n = 4347225U), line 506 in "_alloc.h"
[8] STL::String_base<char,_STL::allocator<char> >::_M_deallocate_block(this = 0xffbee5a8), line 124 in "_string.h"
[9] STL::String_base<char,_STL::allocator<char> >::~_String_base(this = 0xffbee5a8), line 135 in "_string.h"
[10] STL::basicstring<char,_STL::char_traits<char>,_STL::allocator<char> >::~basic_string(this = 0xffbee5a8), line 302 in "_string.h"
[11] STL::hashmap<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> >,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> >,_STL::hash<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::equal_to<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::allocator<_STL::pair<const STL::basicstring<char,_STL::char_traits<char>,_STL::allocator<char> >,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > > >::operator[](this = 0xffbee680, __key = CLASS), line 186 in "_hash_map.h"
[12] main(), line 8 in "t.c"
(dbx) exit
[valhalla:~/test] $ exit
exit
[valhalla:~/test] $ which CC
/apps/SUNWspro64/bin/CC
[valhalla:~/test] $ CC -V
CC: Sun WorkShop 6 update 1 C++ 5.2 Patch 109508-09 2002/07/08
[valhalla:~/test] $ uname -a
SunOS valhalla 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Blade-100
</PRE>
STLport places all of its classes in its own _STL namespace, so there is no concern for name collision with std types that come with the Sun compiler.
Any ideas?
Regards,
JasonI found out this is compiler bug with Forte 6 that ocurrs when inlining is enabled and temporaries are used in conditional expressions with the ?: operator, e.g.,
[valhalla:~/test] $ cat tt.c
#include <iostream>
#include <stdlib.h>
using namespace std;
struct X {
X() { cout << "X ctor" << endl; }
~X() { cout << "X dtor" << endl; }
int foo() { return 1; }
struct Y {
Y() { cout << "Y ctor" << endl; }
~Y() { cout << "Y dtor" << endl; }
int foo() { return 1; }
inline int foo(int i)
return i ?
X().foo() :
Y().foo() ;
main(int, char **argv)
return foo(atoi(argv[1]));
[valhalla:~/test] $ rm -rf SunWS_cache/
[valhalla:~/test] $ CC -g tt.c
[valhalla:~/test] $ a.out 1
X ctor
X dtor
[valhalla:~/test] $ rm -rf SunWS_cache/
[valhalla:~/test] $ CC tt.c
[valhalla:~/test] $ a.out 1
X ctor
Y dtor
X dtor
[valhalla:~/test] $ g++ tt.c
[valhalla:~/test] $ a.out 1
X ctor
X dtor -
Hi,
can you approve that this is a bug:
http://java.sun.com/docs/books/tutorial/java/javaOO/innerclasses.html
public Iterator<Object> iterator() {
private class StackIterator implements Iterator<Object> {...Local classes cannot have access modifiers thus this example is wrong.
Is it a known bug?
-PuceThe compiler treats
those access modifiers
correctly though, so my guess is (as Kaj already
indicated) that one of
these tutorial authors got a bit slopppy ;-)Hmm, I tried it in NetBeans and I get a compiler error. After removing the access modifier it compiled successfully.
Test local class:
private class Test implements Comparator{
public int compare(Object o1, Object o2) {
return 42;
}Or what did you mean with "the compiler treats those access modifiers correctly though"?
-Puce -
Just started investigating new E71, and seems there is a bug in the Tutorial app. (Menu>Help>Tutorial) : Several topics cause the app. to end (crash) without showing info. e.g. Keys>Power key. Perhaps there are missing topics, because I also notice that where one of these "crash" topics appears in the middle of a list, lower topics actually launch the topic above them in the list e.g. anything below Calling>Dialled numbers.
Am I the only one suffering this? Seems relatively trivial, but then does not inspire confidence : if a simple app. like Tutorial is bad, what chance complex stuff being good?I noticed that too. On my E63 tough, it works fine. These tuts are a bit silly. The manual is better documented and even then there are settings I can't find. The connections and buttons on the side are not described in the Dutch version.
‡Thank you for hitting the Blue/Green Star button‡
N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009 -
Oracle WebCenter Framework Tutorial bug in af:tree / security ?
Hi
I'm following Oracle® WebCenter Framework Tutorial and come without big problems through Providing Security section however at the end of the chapter it is recommended to apply ccecurity on page elements to display files/ folders using af:tree component. After applying security so as suggested I'm able to see the files/ folders initailly, but when I collapse the folder to see the contents , I see only the arrows without any names (blank). After removing web-security it works correctly.
The authorization settings are as follow:
getItems2Iter:
Role: / Action
users / Read,Update,Create,Delete
getItems2:
Role / Action
users / Invoke
getItems3:
For all attributes: MyTutorialContent3.getItems2 (eg. name,URI, etc) 5 in total
Role / Action
users / Read, Update
Conform the manual there is also Page security on highest level of Page definied.
Thx.hello !
your steps look correct. also, if you initially see all the content, your steps are working. i just tried it and could reproduce this behavior. i will try to find out why this is happening.
it is quite interesting as we have not seen this behavior in pre-production builds.
thanks,
ph. -
Help with Workshop tutorial : building an ejb
Hi, I've been trying to compile a project, with no luck.
Please help!
I have an entity bean and a session bean that references the entity bean. I can compile the entity bean by itself, but when I add the session bean, I'm not able to compile :-( I'm really new to ejbs & java. Please help!
Thanks,
Meera
Here is the error log:
Build project MyEJBProject started.
BUILD STARTED
build:
check-env:
WARNING: Checking to see if there is anything new to build...
no-ejbgen:
run-build:
clean-modules:
removed module 'MyEJBProject.jar'
WARNING: Running EJBGen...
Loading source file C:\Temp\/wlw_MyEJBProject_build/../wlw_ejb_crc//ejbgentemp/Hello\HelloBean.java...
Loading source file C:\Temp\/wlw_MyEJBProject_build/../wlw_ejb_crc//ejbgentemp/Hello\VisitBean.java...
Constructing Javadoc information...
EJBGen 2.16
[Info:] Creating C:\Temp\/wlw_MyEJBProject_build/../wlw_ejb_crc//ejbgentemp\Hello\HelloHome.java
[Info:] Creating C:\Temp\/wlw_MyEJBProject_build/../wlw_ejb_crc//ejbgentemp\Hello\Hello.java
[Info:] Creating C:\Temp\/wlw_MyEJBProject_build/../wlw_ejb_crc//ejbgentemp\Hello\Visit.java
[Info:] Creating C:\Temp\/wlw_MyEJBProject_build/../wlw_ejb_crc//ejbgentemp\Hello\VisitHome.java
[Info:] Creating C:\Temp\/wlw_MyEJBProject_build/../wlw_ejb_crc//ejbgentemp\META-INF\ejb-jar.xml
[Info:] null [Bean] MAKE CLASS NAME G:HelloHome P:Hello N:HelloHome
[Info:] null [Bean] MAKE CLASS NAME G:Hello P:Hello N:Hello
[Info:] null [Bean] MAKE CLASS NAME G:VisitHome P:Hello N:VisitHome
[Info:] null [Bean] MAKE CLASS NAME G:Visit P:Hello N:Visit
[Info:] Creating C:\Temp\/wlw_MyEJBProject_build/../wlw_ejb_crc//ejbgentemp\META-INF\weblogic-ejb-jar.xml
[Info:] Creating C:\Temp\/wlw_MyEJBProject_build/../wlw_ejb_crc//ejbgentemp\META-INF\weblogic-cmp-rdbms-jar.xml
[Info:] Creating C:\Temp\/wlw_MyEJBProject_build/../wlw_ejb_crc//ejbgentemp\ejbgen-build.xml
post-ejbgen:
clean-ejbc:
Copying 10 files to C:\Temp\wlw_MyEJBProject_build
WARNING: EJBGen ok. Compiling...
runjavac:
Compiling 14 source files to C:\Temp\wlw_MyEJBProject_build
C:\Temp\wlw_MyEJBProject_build\Hello\Hello_oztp1s_EOImpl.java:15: cannot resolve symbol
symbol : class Hello
location: interface Hello.Hello
implements Hello.Hello, weblogic.utils.PlatformConstants
^
C:\Temp\wlw_MyEJBProject_build\Hello\Hello_oztp1s_HomeImpl.java:13: cannot resolve symbol
symbol : class HelloHome
location: interface Hello.Hello
implements Hello.HelloHome, weblogic.utils.PlatformConstants
^
C:\Temp\wlw_MyEJBProject_build\Hello\Hello_oztp1s_HomeImpl.java:68: cannot resolve symbol
symbol : class Hello
location: interface Hello.Hello
public Hello.Hello create ()
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s_ELOImpl.java:15: cannot resolve symbol
symbol : class Visit
location: interface Hello.Hello
implements Hello.Visit, weblogic.utils.PlatformConstants, java.io.Serializable
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s_Intf.java:33: cannot resolve symbol
symbol : class Visit_cbnl1s_Intf
location: interface Hello.Hello
(java.sql.ResultSet rs, java.lang.Integer offset, Object __WL_pk, Hello.Visit_cbnl1s_Intf var)
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s_LocalHomeImpl.java:13: cannot resolve symbol
symbol : class VisitHome
location: interface Hello.Hello
implements Hello.VisitHome, weblogic.utils.PlatformConstants
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s_LocalHomeImpl.java:70: cannot resolve symbol
symbol : class Visit
location: interface Hello.Hello
public Hello.Visit create (java.lang.String arg0)
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s_LocalHomeImpl.java:95: cannot resolve symbol
symbol : class Visit
location: interface Hello.Hello
public Hello.Visit findByPrimaryKey(java.lang.String arg0)
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:76: cannot resolve symbol
symbol : class VisitBean
location: interface Hello.Hello
public final class Visit_cbnl1s__WebLogic_CMP_RDBMS extends Hello.VisitBean
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:604: cannot resolve symbol
symbol : class Visit_cbnl1s_Intf
location: interface Hello.Hello
Hello.Visit_cbnl1s_Intf beanIntf)
^
C:\Temp\wlw_MyEJBProject_build\Hello\Hello_oztp1s_HomeImpl.java:72: cannot resolve symbol
symbol : class Hello
location: interface Hello.Hello
return (Hello.Hello) super.create(md_ejbCreate);
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s_LocalHomeImpl.java:74: cannot resolve symbol
symbol : class Visit
location: interface Hello.Hello
return (Hello.Visit) super.create(md_ejbCreate_S,
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s_LocalHomeImpl.java:99: cannot resolve symbol
symbol : class Visit
location: interface Hello.Hello
return (Hello.Visit)
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:238: cannot resolve symbol
symbol : variable super
location: class Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS
super.setEntityContext(arg0);
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:251: cannot resolve symbol
symbol : variable super
location: class Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS
super.unsetEntityContext();
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:263: cannot resolve symbol
symbol : variable super
location: class Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS
super.ejbActivate();
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:367: cannot resolve symbol
symbol : class Visit_cbnl1s__WebLogic_CMP_RDBMS
location: interface Hello.Hello
Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS __WL_bean = null;
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:443: cannot resolve symbol
symbol : class Visit_cbnl1s__WebLogic_CMP_RDBMS
location: interface Hello.Hello
__WL_bean = (Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS)__WL_pm.getBeanFromRS(__WL_pk, __WL_rsInfo);
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:607: cannot resolve symbol
symbol : class Visit_cbnl1s__WebLogic_CMP_RDBMS
location: interface Hello.Hello
Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS __WL_bean = (Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS)beanIntf;
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:607: cannot resolve symbol
symbol : class Visit_cbnl1s__WebLogic_CMP_RDBMS
location: interface Hello.Hello
Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS __WL_bean = (Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS)beanIntf;
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:733: cannot resolve symbol
symbol : variable super
location: class Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS
super.ejbLoad();
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:747: cannot resolve symbol
symbol : variable super
location: class Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS
super.ejbStore();
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:761: cannot resolve symbol
symbol : variable super
location: class Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS
super.ejbRemove();
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:826: cannot resolve symbol
symbol : class Visit_cbnl1s__WebLogic_CMP_RDBMS
location: interface Hello.Hello
case 0: __WL_loadGroup0FromRS(rs, offset, __WL_pk, (Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS)eb); break;
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:919: reference to + is ambiguous, both method +(java.lang.String,java.lang.String) in and method +(java.lang.String,int) in match
if(__WL_verbose) Debug.say("setting("+this+") 'visitNumber' using column " __WL_num ". Value is " + this.visitNumber);
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:1359: cannot resolve symbol
symbol : variable super
location: class Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS
super.ejbCreate( arg0);
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:1398: cannot resolve symbol
symbol : variable super
location: class Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS
super.ejbPostCreate( arg0);
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:1543: cannot resolve symbol
symbol : variable super
location: class Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS
super.ejbRemove();
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:1603: cannot resolve symbol
symbol : variable super
location: class Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS
super.ejbLoad();
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:1634: cannot resolve symbol
symbol : variable super
location: class Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS
super.ejbStore();
^
C:\Temp\wlw_MyEJBProject_build\Hello\Visit_cbnl1s__WebLogic_CMP_RDBMS.java:1750: cannot resolve symbol
symbol : variable super
location: class Hello.Visit_cbnl1s__WebLogic_CMP_RDBMS
super.ejbPassivate();
^
31 errors
BUILD FAILED
ERROR: Compile failed; see the compiler error output for details.It seems that the example provided (in the link) requires a web serverNo it doesn't. It requires an HTTP server.
tomcat will be a better option which you can useThe Apache HTTP server might be more to the point.
But If you are new to RMI and need to understand the exact flow of RMI I think this will not be a better exercise to start withI agree. I would get it running without the codebase feature. This isn't as widely used as you might think, and anyway it is a deployment option not something you need to engage with much when developing.
@OP: ignore the HTTP stuff and the codebase feature and build 3 JAR files:
(a) the common stuff (remote interface, stubs if any, and any classes referecned by the remote interface)
(b) the server (the remote object itself and anything server-side it uses)
(c) the client.
The common JAR file should be deployed to both the server and the client, and both the other JARs should name it in their Class-Path entry in the manifest. -
Problem with WorkShop 3.2 when lanching tomcat
hi!I met a problem with debugging projects in WorkShop.
I'm using tomcat 5.5.17 in WorkShop studio 3.2.All my server configurations are default!When debugging,I just right clicked on the project and chose "debug on server",then tomcat lanched.During that time,something weird happened.I found my project was deployed twice,and I also found that one was deployed as context "dms"(project's directory name),another as context "web"(project's real context).
I tried all means to solve this problem.Finally I got one.I set two attributes of host tag to false from server.xml,deployOnStartup and autoDeploy.It works.But I don't think it is the best way.so my questions is: is this a workshop deploy bug?
I guess it is.This is what I found from tomcat document.I think it may help us to slove this problem.
"When using automatic deployment, the docBase defined by an XML Context file should be outside of the appBase directory. If this is not the case difficulties may be experienced deploying the web application or the application may be deployed twice.
Finally, note that if you are defining contexts explicitly, you should probably turn off automatic application deployment. Otherwise, your context will be deployed twice each, and that may cause problems for your app. "
Maybe workshop should use the web context name as project directory name when deploying and do not define the context explicitly in server.xml.hi, I just do the same thing as you do!The problem still exists!
if you go to Tomcat Web Application Manager page and have a look at the applications you deployed. You will find your project is deployed twice with two different context(context root and project directory name as context root).
note:if you don't have access to the manager page,you can try the following:
-edit the settings for the server
-find 'Run modules directly from the workspace(do not modify the Tomcat installation)' setting and uncheck the checkbox before it
-then save your changes.
Doing this you can deploy your project directly to the appbase of your tomcat server directory.Then you will have access to the manager page with the url "http://localhost:8080/manager/html".
Also you may take a closer look at the output of your workshop console,you will find some output messages duplicated.
This problem originally starts from workshop 3.1.There is no such issue before 3.0 and lower versions.
Workshop studio was once an fatastic tool.But after integrated with WTP things have been changed.The biggest trouble is it costs too much memory.and some import features such as AJAX support,javascript debugger aren't available to us.I feel a little disappointed.:(
Hope you guys will fix those defects.
Regards! -
Database access tutorial doesn't add actionOutputs when action is added
I've installed weblogic portal 10.3
Potential issue:
The help shipped with 10.3 in the path %BEA_HOME%\tools\eclipse_pkgs\2.0\eclipse_3.3.2\eclipse\plugins is
org.eclipse.help.base_3.3.1.v20070813_33x.jar
not ...base_3.3.2.v...
In the workshop tutorial,
"Accessing a Database from a Beehive NetUI Web Application"
in step 2, "Add a Page Flow and a Control"
the effect of adding the action "getCustomers" is, according to the tutorial,
supposed to add the following annotation to the CustomerManagementController.java code:
@Jpf.Action(forwards = { @Jpf.Forward(name = "success", path = "",
actionOutputs = { @Jpf.ActionOutput(name = "getCustomersResult", type = model.Customer[].class) }) })
However, when I do this, the added code is missing the actionOutputs phrase.
Is this the only thing which is missing, or are there other missing pieces as well?
Edited by: user10508604 on Nov 24, 2008 1:24 PMIt appears the proper output annotation should be added as follows:
In the Page Flow Editor,
make sure the Action "getCustomers" centered.
There should be a blue arrow pointing to the right to "customers.jsp"
The arrow should have no small icons indicating parameters overlaid in front of it.
Right click on the blue arrow and select "Edit Action Outputs..." from the menu.
The "Edit Action Output Annotations" dialog should appear.
Click the "New" button with an arrow pointing to the left.
A new Action Output labelled "newActionOutput1{String} should appear under "Action Outputs:" on the left,
with its name and type under "Details" in the lower part of the dialog.
Change the name in the details to "getCustomersResult".
Change the type in the details to "model.Customer[]".
Hit the "Copy" button to make this action output also a page input for the "customers.jsp" page.
Hit "OK"
An icon indicating that parameters are being passed to the jsp page should appear
overlaid on top of the blue arrow.
Inspection of the "getCustomers" action definition annotation in CustomerManagementController.java will
show the action output definition for "getCustomersResult" is now present.
Examination of the code for "customers.jsp" will also show the following line declaring the page input:
<netui-data:declarePageInput name="getCustomersResult" type="model.Customer[]" required="true" /> -
Workshop error while WebLogic running
I am trying to work through the Workshop tutorial.
PetStore and others are working fine. I need a hint
where I should look at to correct the problem.
When I start the server either from the command line
in ..\weblogic700\samples\workshop or from the Tools
menu the server seems to work but I alway get continuous
messages in the command window:
<08.08.2002 14:02:15 CEST> <Error> <HTTP> <101083>
<Connection failure java.net.SocketException:
ReadFile failed:
Der angegebene Netzwerkname ist nicht mehr verf³gbar.
<in English: The Network name is not available>
(error 64, fd 2520)
at weblogic.socket.NTSocketMuxer.initiateIO(Native Method)
at weblogic.socket.NTSocketMuxer.read(NTSocketMuxer.java:461)
at weblogic.servlet.internal.MuxableSocketHTTP.requeue
(MuxableSocketHTTP.java:292)
at weblogic.servlet.internal.ServletResponseImpl.send
(ServletResponseImpl.java:1145)
at weblogic.servlet.internal.ServletRequestImpl.execute
(ServletRequestImpl.java:2473)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Thanks in Advance
Michael ThieleAnurag Pareek,
thanks for you answer. I could solve this problem by
using IP-Addresses instead of computer and network names.
Michael Thiele
"Anurag Pareek" <[email protected]> schrieb im Newsbeitrag
news:[email protected]..
Hi Michael,
This problem has been reported for WebLogic Server in general onnon-English
platforms, and is not specific to Workshop.
I will suggest you to open a case in WebLogic Support to get a resolution.
In case you do not have a Support A/c, you could still open a case as an
'Evaluation' customer.
Please do let us know if you have any further queries regarding the issue.
Regards,
Anurag
Workshop Support
"Michael Thiele" <[email protected]> wrote in message
news:[email protected]..
I am trying to work through the Workshop tutorial.
PetStore and others are working fine. I need a hint
where I should look at to correct the problem.
When I start the server either from the command line
in ..\weblogic700\samples\workshop or from the Tools
menu the server seems to work but I alway get continuous
messages in the command window:
<08.08.2002 14:02:15 CEST> <Error> <HTTP> <101083>
<Connection failure java.net.SocketException:
ReadFile failed:
Der angegebene Netzwerkname ist nicht mehr verf³gbar.
<in English: The Network name is not available>
(error 64, fd 2520)
at weblogic.socket.NTSocketMuxer.initiateIO(Native Method)
at weblogic.socket.NTSocketMuxer.read(NTSocketMuxer.java:461)
at weblogic.servlet.internal.MuxableSocketHTTP.requeue
(MuxableSocketHTTP.java:292)
at weblogic.servlet.internal.ServletResponseImpl.send
(ServletResponseImpl.java:1145)
at weblogic.servlet.internal.ServletRequestImpl.execute
(ServletRequestImpl.java:2473)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Thanks in Advance
Michael Thiele -
Investigate.jws Tutorial
Please help.
Gets the following error while trying to build Investigate.jws from the Workshop
Tutorial. (Infact, it looks like I can't run any of the services that has mesage-buffering/conversation
enabled):
"Unexpected exception occurred while trying to deploy the EJB for this Web Service..."
Following is from the log file:
"####<Jan 4, 2003 1:03:06 AM PST> <Error> <AI> <DreamWeaver> <cgServer> <main>
<kernel identity> <> <000000> <Failed to initialize the WLI-Application Integration
enterprise application due to an exception while initializing JMS resources.>
com.bea.wlai.JMSResourceException: Failed to initialize the WLAI asynchronous
service request JMS Queue 'WLAI_ASYNC_REQUEST_QUEUE' bound at JNDI context 'com.bea.wlai.ASYNC_REQUEST_QUEUE'.
Root Cause: javax.naming.NameNotFoundException: Unable to resolve 'com.bea.wlai.ASYNC_REQUEST_QUEUE'
Resolved: 'com.bea.wlai' Unresolved:'ASYNC_REQUEST_QUEUE' ; remaining name 'ASYNC_REQUEST_QUEUE'"
Appreciate your help.
Thanks
Sankar NairHere is the attached file.
"Raj Alagumalai" <[email protected]> wrote in message
news:[email protected]..
Krish,
Can you attach the Investigate.jws file you are working with ?
You could also compare this file with the Investigate.jws found under the
bea-home\weblogic700\samples\workshop\applications\samples\tutorialsfolder
>
Thanks
Raj Alagumalai
WebLogic Workshop Support
"kk" <[email protected]> wrote in message news:[email protected]..
I added the callback and the code to call this from the
requestCreditReportAsynch method. When I click on the green button tobuild
and run it, I get this error in the error output window,
Investigate.jws 0 An unexpected exception occured while attempting to
deploy the Enterprise Java Beans for this Web Service. Error: null
Any ideas?
--Krish.
[Investigate.jws] -
Create Oracle Service Bus using BEA workshop
Can someone please help with BEA Workshop developer guide/tutorial detailing how to create Oracle Service Bus using workshop IDE.
IDE - BEA Workshop 10gR3
OSB version - Oracle Service Bus 10gR3
Thank youThanks for your response Eric.
The tutorials that I've seen so far deal with OSB console, none of them talk about creating OSB using BEA-workshop.
On workshop IDE there is some help on OSB workshop plug-ins, but those are mostly one liners about the plug-in features
Please advice if you've link to OSB-Workshop tutorial.
Thanks -
JDev web resources besides OTN & JDev team blogs?
Gang,
Besides OTN, the OTN forums and the Oracle JDeveloper development team blogs, has anybody found any other JDeveloper resources on the 'Net?
I know Paul Dorsey, part author of the "Oracle JDeveloper 10g Handbook" has a website and a few presentations somewhere that was okay..... but are there any other rich sites I'm not visiting?... Or is Oracle it?
It would be nice to know what others have found.
Cheerio,
CM.Shay, I'd like to stick my foot in (my mouth?) too with my opinion.
(Apologies but I didnât have a lot of time to draft this message so please ignore any typos and poor grammar)
Let me start by saying I'm an Oracle programmer with 10 years experience, having coded using Designer, (-J)Headstart, Forms, Reports, database modelling, PLSQL everywhere you can possible stick it.... etc etc etc. I infrequently teach week courses on Forms, SQL, PLSQL etc. My point being is I'm no monkey in appreciating technology. Iâm not brilliant but you can call me Mr Average Programmer â if it makes sense Iâll work out how to use it.
I'm also on the Australian Oracle User Group committee, have been for several years, have meet and talked to several other senior consultants who have used JDeveloper who have extensive Oracle experience.
And the general consensus is that the JDeveloper documentation is of poor quality.
Now Iâd like to substantiate my claims by giving evidence rather than just expressing an opinion. For a minor documentation bug Iâve recently raised, see TAR 4212035.995 bug 4058863. Iâve found more documentation errors, but after a while I always become worn down through the tedious TAR process, and just prey it will be improved in the next release.
This bug, as youâd appreciate is a rather minor issue, but boy do I waste a lot of time working out how to use JDeveloper without the correct and complete documentation. I spend time having to search the OTN examples, forums etc, then posting to the Forums and Oracle Support for help. So much for âproductivityâ with choice.
As another example, do a search in JDeveloper for âuixStateâ. Most UIX LOVs are useless without it in the partialtargets elementâ¦.. but itâs another undocumented feature that I only found out about via the forums. Another, the javaType field within the UIX <invoke> tag: exactly what data types are allowed? If Iâm not mistaken (I might be, Iâm still learning my way around Java), âstringâ is not a valid Java typeâ¦. isnât it âStringâ? See my confusion, and the documentation doesnât say much at all. Does this mean if I return a âNumberâ I should use ânumberâ.
Would you like to get away from UIX documentation errors? Well try bringing up the help for the âPooling and Scalabilityâ tab, under the Configurations sub-menu option for an Application Module (the help page is entitled âConfiguration Manager â Pooling and Scalabilityâ). See all those âtextâ comments and âto be included in future releaseâ comments. Not much use are they?
Moving on to your question about âhow-toâs weâd like to see is a relevant one. I can only talk from my personal experience, but what Iâd like to see relevant to my current project is (or would have been useful in the past):
1) UIX lov â returning multiple fields.
2) UIX lov â using lovUpdate event with multiple LOVs on the screen.
3) UIX lov â a complete example that allows the user to âtypeâ in a value to a <messageLovInput>, validates the entry against a database table via some exposed AM/VO method, clears and displays the LOV if the user enters an invalid value.
4) UIX trees â proper discussion on setting up hierarchical VOs and associations.
5) UIX trees â example of programming insert and delete node functionality, with the example showing how to write the values through to the database.
6) UIX hgrids â example derived from database, where the user can insert/delete values through to the database.
Youâll notice Iâm focusing on the UIX technology. Simply put itâs what weâre using at my current site.
2 other issues Iâd like to point out too though. Notice the focus on LOVs? Well Iâm an ex-Forms programmer who knows the power of the Forms LOV control. Iâve been confused, annoyed then resigned to the fact that youâve got a hell of a lot to do yourself with JDeveloper LOVs, unlike Oracle Forms LOVs where so much functionality is built into the control. In return you might argue âthis is JDeveloper Chris, not Oracle Formsâ. Youâre right of course, and I can accept that I have to learn the JDev way of doing things. But, and âbigâ but here, there are no detailed how-tos comparing the features of Oracle Forms LOVs and how to do the same thing in JDeveloper. And I mean complete examples.... which check values against the database, pop-up the LOV as described above list.
So in your how-tos, try to think about what Forms programmers can do, and show how you would do it in JDeveloper. We need more than the simple examples because weâre learning your tool, weâre not experts in JDeveloper, and we canât read your mind when you give (what I consider to be) overly simple examples where the author assumes given a little headstart that everyone else will be able to run with it. It took me ages to work out how to return multiple fields from a LOV (and my implementation probably s*cks).... call me stupid, but a complete how-to would have saved me lots of time.... and other people too (ie. Forms programmers) because I see the same questions appear on OTN again and again.
To reiterate, think about the productive functionality Forms provides you, and provide how-tos on what to do in JDeveloper. Simple really.
The 2nd point Iâd like to make is you need to give complete examples. To give an example of a poor-example, recently Steven Muench (or was it Jones Jacob, sorry I forget) published a âhow-toâ on his blog on populating a UIX tree. What was missing? Firstly documentation (though a promise of some in the future was given). Secondly how to allow the user to add/delete entries from the tree. Thirdly how to add/delete those entries from the underlying table. Fourthly dealing with updating the underlying iterators and web page given the users actions. And so on....
I can hear you asking âwhat? You want us to do everything for you!?â No, but more complete examples would be great. Without a doubt in my opinion, the best example of this would be the âBuilding Oracle ADF Applications: A Comprehensive Workshopâ tutorial. Obviously a lot of effort was put into that tutorial, but if all tutorials were written with this level of detail, I donât think Iâd be writing this post, the JDeveloper team wouldnât be spending so much time answering queries on the Forums, and the Oracle Support team could spend more time doing training.
Hear me out on my next comment â Iâm not Oracle bashing! Just making a point.
With regards your comments about writing blogs, and increasing the JDeveloper web-community, thinking about it logically I just canât see it happening. The basic problem is youâre âOracle Corporationâ (aka the Other Microsoft). Youâre not an Open Source **community** group. So people donât have much reason to write blogs to the benefit of essentially Oracle.... unless they can make money out of it. They donât get the kudos or just the good vibes of writing for the effort of everybody (essentially why Open Source exists â for the benefit of all â communism, power to the people, etc). This leads onto my second point. The people who work with Oracle tools, in complex-detail, besides Oracleâs own staff, are being paid far too much money working with your tools to waste time working on blogs. Iâd love to write one, but time evades me and Iâd rather make money out of the exercise. (I gotta feed my kids somehow - or maybe have some, either one ;)
This puts you, the JDeveloper team in an interesting position. I know youâre really keen to get your tool used outside Oracle. Why do I think this? Basically your implementation of the Struts diagram tool and huge focus on JSF (aka ADF Faces) â I havenât seen the other IDEs provide such functionality yet and I think youâve tried very hard to provide these new features to beat the competition. But, unlike the Open Source efforts like Eclipse and Net Beans (etc), as I just mentioned, I donât think youâll ever get much support from the JDeveloper community in assisting your documentation efforts with this tool. So what have you got to do to increase market share besides great new features like the Struts diagrammer??....
Well I hopeâs itâs obvious after typing all of this......as there is little activity in the Internet regarding your product and how to use it besides OTN, and given complaints about your poor level of documentation, this means you should focus heavily on documentation in each release. Make sure itâs up to date. Make sure itâs complete. Review it all each time. Make plans for how it could be improved and expanded.... donât just focus on the tool.
I think I can hear you screaming âbut we do you bl**dy idi*t!â But Iâll answer in turn.... the perception is you donât, and the evidence in front of me shows you havenât..... so my conclusion is I think valid.
Also let me place a warning that the risk is if you donât provide better documentation, my peer-consultants will not recommend JDeveloper. I know of 2 specifically who will have a very hard look at JDeveloper a 2nd time before recommending it to a client, because of their experience with the tool â in particular there frustration with the poor documentation. If theyâre making such decisions, I bet others are too.
With all the above in mind please note my goal of this whole post, and I know Iâve posted a lot, is not to be exceptionally critical of JDeveloper and the JDeveloper team. However I thought it was worthwhile writing a comprehensive message to the forum for you to look at... rather than the 1 or 2 liners you usually get.
Gee, I should have started a blog and posted this entry I think.
Iâll finish this post by saying that Iâm thankful that the JDev team monitors this forum and puts in a good effort in supporting us, your clients, saving us a TAR or 2 and probably going bald.
Regards,
CM.
PS. If youâd like to contact me for further information, you can find my current email address associated with the TAR mentioned above.
Also please note the âstandard disclaimerâ, that none of the above is my employerâs or clientsâ opinions; it is all totally of my own opinion. -
CR10 Dev JRC ReportSDKException Report location is not specified in the configuration file error
I'm trying to embed a simple report into a j2ee application running under BEA WebLogic(without
workshop)
using the standalone Java Reporting Component (JRC), but I'm getting the exception
shown below (along with my config and source).
I'm just wondering at the cause of the exception, because I can successfully deploy
this code to jboss.
I've tried moving the CrystalReportEngine-config.xml file everywhere, from the
/WEB-INF/classes/ folder
to the /WEB-INF/ folder to the /WEB-INF/lib/ folder.
I consulted the product documentation on the JRC and its tutorials but it has
me stumped.
I went through the BEA WebLogic Workshop tutorial, which worked for some reason,
but I'm looking to do all the coding manually without any of BEA's controls and
what not.
Any information would be GREATELY APPRECIATED!!!
Thanks,
-Colin
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Report location is
not specified in the configuration file---- Error code:-2147
215356 Error code name:fileNotOpened
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown
Source)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.<init>(Unknown
Source)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.a(Unknown
Source)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown
Source)
at com.crystaldecisions.report.web.viewer.ReportAgentBase.case(Unknown
Source)
at com.crystaldecisions.report.web.viewer.ReportServerControl.getReportSource(Unknown
Source)
at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.int(Unknown
Source)
at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(Unknown
Source)
at jsp_servlet.__viewreport._jspService(__viewreport.java:197)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:446)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
My EAR file structure is as follows:
/crystal/ (context)
/reports/qtrade_sp_listing.rpt
/crystalreportviewers10/ -- bunch of crystal viewing stuff
/WEB-INF/classes/CrystalReportEngine-config.xml
/WEB-INF/lib/ -- bunch of crystal jar files
My CrystalReportEngine-config.xml is as follows
<?xml version="1.0" encoding="utf-8"?>
<CrystalReportEngine-configuration>
<reportlocation>../..</reportlocation>
<timeout>10</timeout>
<keycode>A2960-01C00FA-U700063</keycode>
</CrystalReportEngine-configuration>
My relevant Web.xml looks like:
<web-app>
<context-param>
<param-name>crystal_image_uri</param-name>
<param-value>/crystal/crystalreportviewers10/</param-value>
</context-param>
<taglib>
<taglib-uri>/crystal-tags-reportviewer.tld</taglib-uri>
<taglib-location>/WEB-INF/crystal-tags-reportviewer.tld</taglib-location>
</taglib>
</web-app>
My JSP Page Source:
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer"%>
<html>
<head>
<title>Web Application Page</title>
</head>
<body>
<crviewer:viewer
viewerName="SPListingReport"
reportSourceVar="_SPListingReport"
displayGroupTree="false"
displayToolbarToggleTreeButton="false"
reportSourceType="reportingComponent">
<crviewer:report reportName="reports/qtrade_sp_listing.rpt"></crviewer:report>
</crviewer:viewer>
</body>
</html>I'm trying to embed a simple report into a j2ee application running under BEA WebLogic(without
workshop)
using the standalone Java Reporting Component (JRC), but I'm getting the exception
shown below (along with my config and source).
I'm just wondering at the cause of the exception, because I can successfully deploy
this code to jboss.
I've tried moving the CrystalReportEngine-config.xml file everywhere, from the
/WEB-INF/classes/ folder
to the /WEB-INF/ folder to the /WEB-INF/lib/ folder.
I consulted the product documentation on the JRC and its tutorials but it has
me stumped.
I went through the BEA WebLogic Workshop tutorial, which worked for some reason,
but I'm looking to do all the coding manually without any of BEA's controls and
what not.
Any information would be GREATELY APPRECIATED!!!
Thanks,
-Colin
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Report location is
not specified in the configuration file---- Error code:-2147
215356 Error code name:fileNotOpened
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown
Source)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.<init>(Unknown
Source)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.a(Unknown
Source)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown
Source)
at com.crystaldecisions.report.web.viewer.ReportAgentBase.case(Unknown
Source)
at com.crystaldecisions.report.web.viewer.ReportServerControl.getReportSource(Unknown
Source)
at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.int(Unknown
Source)
at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(Unknown
Source)
at jsp_servlet.__viewreport._jspService(__viewreport.java:197)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:446)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
My EAR file structure is as follows:
/crystal/ (context)
/reports/qtrade_sp_listing.rpt
/crystalreportviewers10/ -- bunch of crystal viewing stuff
/WEB-INF/classes/CrystalReportEngine-config.xml
/WEB-INF/lib/ -- bunch of crystal jar files
My CrystalReportEngine-config.xml is as follows
<?xml version="1.0" encoding="utf-8"?>
<CrystalReportEngine-configuration>
<reportlocation>../..</reportlocation>
<timeout>10</timeout>
<keycode>A2960-01C00FA-U700063</keycode>
</CrystalReportEngine-configuration>
My relevant Web.xml looks like:
<web-app>
<context-param>
<param-name>crystal_image_uri</param-name>
<param-value>/crystal/crystalreportviewers10/</param-value>
</context-param>
<taglib>
<taglib-uri>/crystal-tags-reportviewer.tld</taglib-uri>
<taglib-location>/WEB-INF/crystal-tags-reportviewer.tld</taglib-location>
</taglib>
</web-app>
My JSP Page Source:
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer"%>
<html>
<head>
<title>Web Application Page</title>
</head>
<body>
<crviewer:viewer
viewerName="SPListingReport"
reportSourceVar="_SPListingReport"
displayGroupTree="false"
displayToolbarToggleTreeButton="false"
reportSourceType="reportingComponent">
<crviewer:report reportName="reports/qtrade_sp_listing.rpt"></crviewer:report>
</crviewer:viewer>
</body>
</html>
Maybe you are looking for
-
What will happen when I restore my iPod?
I have a few songs that I downloaded from the iTunes store, and cannot get them off my iPod Touch. See this thread for full discription of the problem. https://discussions.apple.com/message/16745511#16745511 Anyway long story short, what exactly happ
-
Dynamic table name in native SQL
Hi, How can i use dynamic table name in native SQL? My req is to select data from a external database table , but the table name will be only poulated during runtime. How can i acheive this? Regards, Arun.
-
How do I save PDF documents in Adobe Reader on my iPad that I have downloaded from Adobe.com?
-
Tomorrow's the day! Still undecided to go either 15" or 17". Thoughts?
Hello: I am very excited. Tomorrow is the day I will be getting my first Mac ever. I am finally going to take the plunge. So far, the things I know I need on this new Mac are anti-glare and 2.8ghz. I just can't decide whether it is worth the extra $2
-
Dump in calling BRF+ Function
Hi, i have implemented the BP-Rating Sample from TechEd Madrid 2011. It consists of an BRF+ application (via transaction fdt_workbench), a function with 2 Parameters and a result with an expression as a decision table. Then I took SE80 and called: tr