[Beginners Corner] - Re: ADF help
by mrchit_2000
When I moved the jar files to WEB-INF\lib\. I get the error message of Class Not Found.
00:40:00,706 INFO [StartupServletContextListener] ServletContext 'C:\EJB3.0\Jboss4.0.5\server\default\.\tmp\deploy\tmp4335autosas-web-exp.war\' initialized.
00:40:00,706 INFO [StartupServletContextListener] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
00:40:00,706 ERROR [[/autosas-web]] Exception starting filter adfFaces
java.lang.ClassNotFoundException: oracle.adf.view.faces.webapp.AdfFacesFilter
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355)
I have no clues why it cannot find the class while the jar files are put in WEB-INF\lib. Could anyone help please? I don't know if there is any problem with my posts but it seems no one is answering.
Thanks,
L
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992991#3992991
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992991
19 years, 4 months
[JBoss Seam] - Re: Basic Seam questions
by SmokingAPipe
There are subtle differences here. I'll go through your post sentence-by-sentence.
When you inject an entity into a session, you could get an instance that already exists. For example, here's injection:
@In User user;
and here's instantiating it manually:
User user = new User();
These do totally different things. In the injection case, we'll be getting the user, perhaps from the SESSION scope, and so we can do things with it. In the "instantiating manually" case we make up a new one every time. Do you see the difference? They are for different purposes.
@In(create=true) will inject the entity if it can be found in the relevant scope, and creates it if it isn't there. When wouldn't you want to have create=true? Imagine a typical application where a User object is stored in the SESSION scope. If there is no user in that scope, we might leave out certain functionality. Creating a new user instance wouldn't make sense.
Does this make sense? Think of your session beans as being parts of an assembly line. Various objects get injected into them, they do things to these objects, and then they can outject results. If a certain part on this assembly line requires an object that isn't there, it could (unlike in a real assembly line) create the object by saying create=true. Or if it will ALWAYS create its own objects for its own use it could simply instantiate them. But this means that it will not get objects that have been outjected by some other component, and the power of Seam is really being able to tie these various components together by outjecting from one and injecting to the other.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992985#3992985
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992985
19 years, 4 months
[Beginners Corner] - handeling multiple writes to Oracle
by minixman
All
I keep getting the following from jboss
| [CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@1d889aa
|
In my class which is a thread off the main program the class connects to a Topic and to the DS and i want to post a new message to the Topic and then write the information to the database so it can be updated later. How do i handel multiple writes to the database without closing the connection.
| ObjectMessage objMsg = (ObjectMessage)message;
| eventMSG = (MonitorMSG)objMsg.getObject();
| // Get DS objects
| InitialContext ctxt = new InitialContext();
| DataSource ds = (DataSource) ctxt.lookup("java:OracleDS");
| conn = ds.getConnection();
| PreparedStatement ps2 = conn.prepareStatement(eventSQL);
| ResultSet rs2 = ps2.executeQuery();
|
If i push 2 messages through the queue the first one goes into the database and the second one gives me the error above.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992984#3992984
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992984
19 years, 4 months