Up |
|
|
  |
Author: dealton002002dealton002002
Date: Jan 12, 2007 07:24
I know that this is a topic that has been disscussed in detail. I had my datasource connection working fine. Then I had to reference a new alias and connection. I have changed everything in my bean to reference the new JNDI
protected void initializer() {
select = new DBSelect();
try {
select.setDataSourceName("java:comp/env/jdbc/MyDB");
select.setCommand("SELECT * FROM MyDb.MD_HOLD");
execute();
} catch (SQLException ex) {
ex.printStackTrace();
}
}
And yet I still get this:
[1/12/07 9:42:48:688 EST] 00000041 SystemErr R com.ibm.db.beans.DBException: Unexpected error; javax.naming.NameNotFoundException: Name "comp/env/jdbc/MyDb" not found in context "java:".
at com.ibm...
|
| Show full article (6.08Kb) |
|
| |
no comments
|
|
  |
|
|
  |
|
|
  |
Author: milsoftmilsoft
Date: Dec 18, 2006 06:00
Hi,
We have the same problem with Websphere Network Deployment 6.1. We are using Hibernate for OR persistency. When returning retrieved data from the server to the client, CORBA MARSHALL exception is raised due to proxy objects.
Any ideas?
Thank you very much,
Serkan Toprak
|
| |
|
1 Comment |
|
  |
Author: rida.abrahamsrida.abrahams
Date: Dec 15, 2006 05:37
Hi,
Please assist me in solving the problem I'm experiencing when enabling security in WSAD 5.1.2:
SECJ0305I: Role based authorization check failed for security name , accessId UNAUTHENTICATED while invoking method rebind_java_object on resource NameServer and module /com/ibm/ws/naming/bootstrap/xml/NameServer.xml.
The program executes correctly when security is not enabled.
I have an EJB that uses Hibernate to query a SQLServer 2000 database.
The instant I execute this code:
String configFileName = "hibernate-system.cfg.xml";
new Configuration().configure(configFileName).buildSessionFactory()
I get the Role based authorization check exception stated above.
The call to the JNDI name: "hibernate/HibernateFactorySystem" fails with a permission error.
I've include my hibernate config file and the stack trace in the attachment.
|
| |
|
no comments
|
|
  |
Author: ahiit77ahiit77
Date: Dec 13, 2006 23:29
Hi all,
Please tell steps how can i create DataSource using admin console of websphere and also tell how can i use that DataSource in my application.
Currently i am succesful in creating DataSource using admin console but may be i have missed a step becaz with that DataSource i fail to connect with my application and got this ( javax.naming.NameNotFoundException: Name "sample1" not found in context "java:comp/env") error.
Kindly tell in detail which file like web.xml, ibm-web-bnd.xmi or any other which i should configure.
Thanx and Regards,
Salman Ahmad Akmal
|
| |
|
no comments
|
|
  |
Author: gaetan_chgaetan_ch
Date: Dec 13, 2006 00:58
When the server is launching, we can see the messages in the console. Next, after a undetermine time, the System.out.println() not send message in console any more.
Log4j too but It sends nice in defining log file.
The System.err.println() is always displaying.
WebSphere: 6.0.1 on VMWare
No problem with Websphere 5.x !!!!
Any idea?
Thans a lot for your answer.
|
| |
|
no comments
|
|
  |
|
|
  |
Author: dhatri_pdhatri_p
Date: Dec 6, 2006 13:08
I am using web sphere 5.1.2 and having problem testing my webservices. I get following error
WebServicesFault
faultCode: Server.generalException
faultString: org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element actionIndicator of bean com.caremark.psd.mailorder.webservices.wsdl.wsmodel.PrescriptionValidationRequestData. To see the message containing the parsing error in the log, either enable web service engine tracing or set MessageContext.setHighFidelity(true).
faultActor: null
faultDetail:
org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element actionIndicator of bean com.caremark.psd.mailorder.webservices.wsdl.wsmodel.PrescriptionValidationRequestData. To see the message...
|
| Show full article (2.73Kb) |
|
1 Comment |
|
  |
|
|
  |
Author: muks_kejmuks_kej
Date: Dec 6, 2006 08:56
> Hi There. I am also running into the same issue. I am
> using WSAD 5.1 (and I am new to it) I have created a
> datasource and I am trying to access it through a
> simple Java application as follows
> public class HelloWorld {
> public static void main(String args[]){
> System.out.println("Hello World");
> try
> {
> Hashtable env = new Hashtable();
> env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.web
> sphere.naming.WsnInitialContextFactory");
> InitialContext ctx = new InitialContext(env);
> System.out.println("InitialContext success" + ctx);
> Object obj = (Object)ctx.lookup("jdbc/ds1");
>
> DataSource ds = (DataSource)obj;
>
>
> ...
|
| Show full article (1.01Kb) |
|
no comments
|
|
|
|
|
|