What is RSS?
bizarrerie: oracle driver error
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Ñîîáùåñòâà
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > Java Programming > bizarrerie: oracle driver error 22 April 2005 04:32:25

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Ìîäåðàòîð:

bizarrerie: oracle driver error

Primary 21 April 2005 10:48:27
 bizarrerie: oracle driver error in AuthenticationProvi­derImpl:

can't load oracle driver in this class.

but it can load in jsp.

who could tell me what's the most possible reasons?


messages:

[code]
begin..............­
1111111111111111111­
2222222222222222222­
[ERROR] [2005-04-21 14:46:05,281] com.opensymphony.we­bwork.dispatcher.Ser­vletDispatcher - Could not execute action
java.lang.ClassNotF­oundException: oracle.jdbc.OracleD­river
[/code]


[code]
<action name="hello" class="creatxr.demo­s.simple.webwork.act­ion.HelloAction">
<result name="success" type="dispatcher">
<param name="location">hel­lo.jsp</param>
</result>
<interceptor-ref name="standardStack­"/>
</action>

[/code]

[code]
package creatxr.demos.simpl­e.webwork.action;

import java.util.Map;

import com.opensymphony.xw­ork.Action;
import com.opensymphony.xw­ork.ActionSupport;
import com.opensymphony.xw­ork.ModelDriven;
import com.opensymphony.xw­ork.ActionContext;
/**
* @author Creatxr
*
*/
public class HelloAction extends ActionSupport implements Action, ModelDriven {

public String execute() throws Exception {
ActionContext ctx = ActionContext.getCo­ntext();
Map session = ctx.getSession();
Map params = ctx.getParameters()­;

System.out.println(­"begin..............­");
Class.forName("org.­hsqldb.jdbcDriver");­
System.out.println(­"1111111111111111111­");
Class.forName("net.­sourceforge.jtds.jdb­c.Driver");
System.out.println(­"2222222222222222222­");
Class.forName("orac­le.jdbc.OracleDriver­");
System.out.println(­"3333333333333333333­");
System.out.println(­"end................­");

return SUCCESS;
}

/* (non-Javadoc)
* @see com.opensymphony.xw­ork.ModelDriven#getM­odel()
*/
public Object getModel() {
// TODO Auto-generated method stub
return null;
}

}

[/code]


-------------------­--------------------­--------------------­----------
Posted via Jive Forums
http://forums.opens­ymphony.com/thread.j­spa?threadID=1714&me­ssageID=5281#5281


-------------------­--------------------­--------------------­----------
To unsubscribe, e-mail: dev-unsubscribe@web­work.dev.java.net
For additional commands, e-mail: dev-help@webwork.de­v.java.net


Add comment
Primary 21 April 2005 14:13:56 permanent link ]
 perhaps I've found the problem.

I used tomcat plugin for eclipse to startup tomcat.

I only use tomcat 's startup.bat to startup right now, It's ok.

but I don't know what 's the reason.

why only the classes in ojdbc14.jar of oracle can't be loaded?


I will retest tomorrow.


-------------------­--------------------­--------------------­----------
Posted via Jive Forums
http://forums.opens­ymphony.com/thread.j­spa?threadID=1714&me­ssageID=5302#5302


-------------------­--------------------­--------------------­----------
To unsubscribe, e-mail: dev-unsubscribe@web­work.dev.java.net
For additional commands, e-mail: dev-help@webwork.de­v.java.net


Add comment
Paul Zepernick 21 April 2005 16:57:04 permanent link ]
 do you have the jar under the WEB-INF/lib folder?

Paul


-------------------­--------------------­--------------------­----------
Posted via Jive Forums
http://forums.opens­ymphony.com/thread.j­spa?threadID=1714&me­ssageID=5306#5306


-------------------­--------------------­--------------------­----------
To unsubscribe, e-mail: dev-unsubscribe@web­work.dev.java.net
For additional commands, e-mail: dev-help@webwork.de­v.java.net


Add comment
Jason Carreira 21 April 2005 17:56:30 permanent link ]
 This is most likely a classloader issue. Make sure both the oracle driver and webwork are being loaded in the web application class loader.
perhaps I've found the problem. >
I used tomcat plugin for eclipse to startup tomcat. >
I only use tomcat 's startup.bat to startup right> now, It's ok. >
but I don't know what 's the reason. >
why only the classes in ojdbc14.jar of oracle can't> be loaded? >
I will retest tomorrow.


-------------------­--------------------­--------------------­----------
Posted via Jive Forums
http://forums.opens­ymphony.com/thread.j­spa?threadID=1714&me­ssageID=5313#5313


-------------------­--------------------­--------------------­----------
To unsubscribe, e-mail: dev-unsubscribe@web­work.dev.java.net
For additional commands, e-mail: dev-help@webwork.de­v.java.net


Add comment
Primary 22 April 2005 04:28:32 permanent link ]
 certainly.

I can load the driver in JSP


-------------------­--------------------­--------------------­----------
Posted via Jive Forums
http://forums.opens­ymphony.com/thread.j­spa?threadID=1714&me­ssageID=5411#5411


-------------------­--------------------­--------------------­----------
To unsubscribe, e-mail: dev-unsubscribe@web­work.dev.java.net
For additional commands, e-mail: dev-help@webwork.de­v.java.net


Add comment
Primary 22 April 2005 04:32:25 permanent link ]
 what's your mean? How to?

I've put the jar in the /WEB-INF/lib
Make sure> both the oracle driver and webwork are being loaded> in the web application class loader.


-------------------­--------------------­--------------------­----------
Posted via Jive Forums
http://forums.opens­ymphony.com/thread.j­spa?threadID=1714&me­ssageID=5412#5412


-------------------­--------------------­--------------------­----------
To unsubscribe, e-mail: dev-unsubscribe@web­work.dev.java.net
For additional commands, e-mail: dev-help@webwork.de­v.java.net


Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
respect your talk pals, avoid using obscene language, typing entire messages in CAPS, posting buy/sell ads or violating netiquette or the RF Criminal Code..


QAIX > Java Programming > bizarrerie: oracle driver error 22 April 2005 04:32:25

see also:
HELP WITH AWK2PERL SCRIPT
size of hash?
Arrow Notation Question
pass tests:
see also:
Standing Alone
TECT: Who you from Rozen…

  Copyright © 2001—2009 QAIX
Idea: Miñhael Monashev
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .