Oracle9i jdbc on linux with Sun App Server7
Hello all,
I'm having trouble setting up oracle9i jdbc drivers on linux. I downloaded ojdbc14.jar from oracle's download site and put it in sun/domains/domain1/lib. I also added the jar file in the server classpath suffix, but somehow the connections are not going through. I wrote a simple java test application to test the drivers and that works perfectly. It's just the server that's not being able to connect for some reason. Any ideas? I use thin connection.
Yes, here it is (I use CMP beans):
Exception thrown from bean; nested exception is: com.sun.jdo.api.persistence.support.JDOFatalInternalException: JDO76519: Failed to identify vendor type for the data store.
NestedException: java.sql.SQLException: Error in creating connection
com.sun.jdo.api.persistence.support.JDOFatalInternalException: JDO76519: Failed to identify vendor type for the data store.
NestedException: java.sql.SQLException: Error in creating connection
at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.initializeSQLStoreManager(SQLPersistenceManagerFactory.java:864)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getFromPool(SQLPersistenceManagerFactory.java:780)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:667)
Similar Messages
-
Problem : App works with Sun App server 8.0 but fails with 8.1
Hi All
I am experiencing some strange problem with executing my JSF application with Sun App Server.
I have an EAR deployed on Sun Application Server 8.0 and 8.1.
Strangely it works quite fine with 8.0 but fails with 8.1.
In my JSP page ..I have a dummy component whose getter method is used as a "FormLoad" event of the page.
<h:form id="imageForm" enctype="multipart/form-data">
<h:messages showDetail="true" />
<table width="980" border="1" cellpadding="0" cellspacing="0" bordercolor="#A9B8C2">
<tr>
<td>
<h:inputHidden value="#{Screen1.initializeService}"/>
<h:selectOneListbox styleClass="style2" id="cmbMiddleArea" immediate="true" value="#{Screen1.selectedMiddleArea}">
<f:selectItems value="#{Screen1.middleAreaList}" />
</h:selectOneListbox>
In my backing bean i have ..
public String getInitializeService() {
..... Retrieve all the data from DB to initialize all the components on the JSP page
.......setMiddleAreaList......
.......setSelectedMiddleArea.....
........set the values of the individal component...
I am retrieving all the data from DB in this getter method and intializing the components on the JSP page.
I have also checked the code generated for JSP by both the servers.I am posting the code here for reference although
i did not find any significant difference between the two...
For Server 8.0
private boolean jspxmeth_h_inputHidden_0(javax.servlet.jsp.tagext.JspTag jspxth_h_form_0, PageContext jspxpage_context)
throws Throwable {
JspWriter out = jspxpage_context.getOut();
// h:inputHidden
com.sun.faces.taglib.html_basic.InputHiddenTag jspxth_h_inputHidden_0 = (com.sun.faces.taglib.html_basic.InputHiddenTag) jspxtagPool_h_inputHidden_value.get(com.sun.faces.taglib.html_basic.InputHiddenTag.class);
jspxth_h_inputHidden_0.setPageContext(_jspx_page_context);
jspxth_h_inputHidden_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_h_form_0);
jspxth_h_inputHidden_0.setValue("#{searchBean.initializeService}");
int jspxeval_h_inputHidden_0 = jspxth_h_inputHidden_0.doStartTag();
if (_jspx_th_h_inputHidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
jspxtagPool_h_inputHidden_value.reuse(_jspx_th_h_inputHidden_0);
return false;
For Server 8.1
private boolean jspxmeth_h_inputHidden_0(javax.servlet.jsp.tagext.JspTag jspxth_h_form_0, PageContext jspxpage_context)
throws Throwable {
PageContext pageContext = jspxpage_context;
JspWriter out = jspxpage_context.getOut();
// h:inputHidden
com.sun.faces.taglib.html_basic.InputHiddenTag jspxth_h_inputHidden_0 = (com.sun.faces.taglib.html_basic.InputHiddenTag) jspxtagPool_h_inputHidden_value_nobody.get(com.sun.faces.taglib.html_basic.InputHiddenTag.class);
jspxth_h_inputHidden_0.setPageContext(_jspx_page_context);
jspxth_h_inputHidden_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_h_form_0);
jspxth_h_inputHidden_0.setValue("#{searchBean.initializeService}");
int jspxeval_h_inputHidden_0 = jspxth_h_inputHidden_0.doStartTag();
if (_jspx_th_h_inputHidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
jspxtagPool_h_inputHidden_value_nobody.reuse(_jspx_th_h_inputHidden_0);
return false;
Now the actual problem is "getInitializeService" method never gets called when i deploy and run the application on Sun App Server8.1
However with Sun App Server 8.0 it woeks perfectly fine.
Can anybody help me in resolving these issues ?
Actually generated JSP code can be referred as ...
For Server 8.0
private boolean jspxmeth_h_inputHidden_0(javax.servlet.jsp.tagext.JspTag jspxth_h_form_0, PageContext jspxpage_context)
throws Throwable {
JspWriter out = jspxpage_context.getOut();
// h:inputHidden
com.sun.faces.taglib.html_basic.InputHiddenTag jspxth_h_inputHidden_0 = (com.sun.faces.taglib.html_basic.InputHiddenTag) jspxtagPool_h_inputHidden_value.get(com.sun.faces.taglib.html_basic.InputHiddenTag.class);
jspxth_h_inputHidden_0.setPageContext(_jspx_page_context);
jspxth_h_inputHidden_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_h_form_0);
jspxth_h_inputHidden_0.setValue("#{Screen1.initializeService}");
int jspxeval_h_inputHidden_0 = jspxth_h_inputHidden_0.doStartTag();
if (_jspx_th_h_inputHidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
jspxtagPool_h_inputHidden_value.reuse(_jspx_th_h_inputHidden_0);
return false;
For Server 8.1
private boolean jspxmeth_h_inputHidden_0(javax.servlet.jsp.tagext.JspTag jspxth_h_form_0, PageContext jspxpage_context)
throws Throwable {
PageContext pageContext = jspxpage_context;
JspWriter out = jspxpage_context.getOut();
// h:inputHidden
com.sun.faces.taglib.html_basic.InputHiddenTag jspxth_h_inputHidden_0 = (com.sun.faces.taglib.html_basic.InputHiddenTag) jspxtagPool_h_inputHidden_value_nobody.get(com.sun.faces.taglib.html_basic.InputHiddenTag.class);
jspxth_h_inputHidden_0.setPageContext(_jspx_page_context);
jspxth_h_inputHidden_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_h_form_0);
jspxth_h_inputHidden_0.setValue("#{Screen1.initializeService}");
int jspxeval_h_inputHidden_0 = jspxth_h_inputHidden_0.doStartTag();
if (_jspx_th_h_inputHidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
jspxtagPool_h_inputHidden_value_nobody.reuse(_jspx_th_h_inputHidden_0);
return false;
} -
Problem with sun app server startup
hi,
i am getting problem with sun app server default start.the error is::
[#|2006-03-01T13:54:35.121+0530|WARNING|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|LAUNCHER005:Spaces in your PATH have been detected. The PATH must be consistently formated (e.g. C:\Program Files\Java\jdk1.5.0\bin; ) or the Appserver may not be able to start and/or stop. Mixed quoted spaces in your PATH can cause problems, so the launcher will remove all double quotes before invoking the process. The most reliable solution would be to remove all spaces from your path before starting the Appservers components. |#]
now i am useing Win Xp operating system,
show me a solution.
Regs..
NarasimhaYou haven;t specified the exceptions you r getting ........while starting your default server.
if u r getting exception about InetClass then connect your system with LAN/Internet then your problem will be solved becoz i m using same location address as you specified, space doesn't matter at all - i think so, it is running fine........ -
Web Services with Sun App Server
We are load testing a simple web service running in SJSAS 8.0 Standard. With 1 or 2 users concurrent it seems OK, but once we move up to 5 concurrent users calling the WS, the domain in SJSAS crashes.
Does anyone have experience or information regarding the app server and load with web services? Are there some config options that we can tweak? Are there any numbers out there about how many simultaneous connections the server can handle?
A final note, things seem fine if we are just serving a simple web page from the server, its only when we try to call a WS that we run into these performance issues.
Thanks.Are you connecting to any external resource using JNDI by any chance? If you're using Unix, check the number of file descriptors being opened on the Sun App server. "new dirContext(env)" creates OS file descriptors each time it's invoked (calling the web service for example).
use
$ps -ax
get the process number of sjas and try issuing a:
lsof -p <sjas_process_number> |wc -l
and keep invoking the web service. If this number keeps increasing then you've an "fd" leak (perhaps not closing the dirContext). Linux for example has a default max file limit of 1024 under "root" user and when depleted, sjas will hang.
Could this be the problem?
Cheers
Steve -
I am not sure where to post this but here it is:
I am using Sun App. Server 9 along with a XE database...I use two schemas in my web app but on the first I get ORA error -table or view does not exist from SAS ,although it exists..the second works fine...
Q: I cannot use 2 simultaneous connection with XE? or what seams to be the problem...
PS: I also experimented randomly a oracle.toplink error that my Persistance Unit was unable to connecttwo PU's
two Database Connections (in fact jsf pages ware generate based on entity classes-witch ware made using the connection)
two schemas: HR and CONTA
On a second thought I think somehow you're right ...it must be some connection error regarding the schema used...
I'll look into it...but later...
Florin POP -
"Message Driven Bean" doesn't work with Sun App Server
Hello all,
i have a little bit problems, running a simple "Message Driven Bean" under the Sun App Server. The deployment of it works fine, but after starting the SUN App Server i get the following error message:
An error occurred during the message-driven beancontainer initialization at runtime. The most common cause for this is that the physical resource(e.g. Queue) from which the message-driven bean is consuming either does not exist or has been configured incorrectly. Another common error is that the message-driven bean implementation class does not correctly implement the required javax.ejb.MessageBean or MessageListener interfaces.
Has anybody a workaround for this problem?
The queue seems to be correctly installed. A simple client programm from the Sun Tutorial (Consumer & Producer) works fine without any Errors or Exceptions.
I am a little bit confused, because the queue seems to work with the client programms but not with a MDB running on the SUN App Server.
Thanks for you help!
Greetings
ManuelHello Mr Manuel!
could you plz help me with the steps for creating a message driven bean using netbeans ver 5.0(with Sun Java� System Application Server Platform Edition 8.2 )
I just know how to work with Session beans & Entity Bean, and am try to learn to work on Message Driven Beans too. there are no proper tutorials where i can find steps for creating these..
I need the steps from the scratch.,like creating QueueConnection Factory & Destination etc..
It will be gr8 if you can help me with this at the earliest .
Thank you
Bye -
Access Manger with sun app server 8.1 configuration problem
Hi,
I have installed Access Manger on web Server 6 through JES 5 with configure later option, its working fine.
Now I am trying to install with same options on Sun Application Server 8, AM deployed properly on App server, but when I am trying to launch the access manager console it giving error...
exception
javax.servlet.ServletException
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:300)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
root cause
java.lang.NoClassDefFoundError
com.sun.identity.authentication.UI.LoginServlet.initializeRequestContext(LoginServlet.java:112)
com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:578)
com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:459)
javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
Please any body tell me the solution.DENGO PROBLEMA CON EL JAVA DE PAJINA INTERNET
-
CC for Linux with Sun Studio 12 gets Signal 11 parsing gtk.h
I just install SunStudio 12 on a Fedora 7 Linux box, and it appears it can not compile
even the simplest gtk application written in C++.
/opt/sun/sunstudio12/bin/CC -c -g -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include tstgtk.cc
>> Signal 11:
while processing /usr/include/gtk-1.2/gtk/gtk.h at line 1.
tstgtk.cc only contains the one line
#include <gtk/gtk.h>
The same command works if I replace the CC with lowercase suncc or with g++.
/opt/sun/sunstudio12/bin/sunCC -V
sunCC: Sun C++ 5.9 Linux_i386 2007/05/03
uname -a
Linux galactica-304 2.6.21-1.3194.fc7 #1 SMP Wed May 23 22:35:01 EDT 2007 i686 i686 i386 GNU/LinuxThis is probably different problem since the one mentioned above is in compiler's front end, which shouldn't depend on target architecture option, which from what I know affects back end only.
Can you post source code of hello.cc here so that we can reproduce it?
Thanks! -
Deployment error with sun app server 8.2
hi,
i'm a newbieto java programming.
i'm following the j2ee tutorial.
but i'm stuck when deploying
could anyone help me on this?
thanks in advance.
Distributing /opt/CustomerBook/dist/customerbook.ear to [localhost:4848_server]
Unable to construct properties list for: getConnectionPoolProperties
deployment started : 0%
Deployment error: Deployment timed out after 120 seconds.. See the messages.log file for details.
/opt/CustomerBook/nbproject/build-impl.xml:219: Deployment error: Deployment timed out after 120 seconds.. See the messages.log file for details.
BUILD FAILED (total time: 2 minutes 54 seconds)
EXECUTION SECTION
=================
line 219:
** <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" forceRedeploy="${forceRedeploy}" debugmode="false"/>**For future references:
this happens to me too and I found that the cause is that the AM server you are going to configure, is already registered into the directory server.
Try running this command (with the obvious parameters substituted)
ldapsearch -B -T -D 'cn=directory manager' -w YOUR_CREDENTIALS -b ou=1.0,ou=iPlanetAMPlatformService,ou=services,YOUR_BASEDN -s base objectclass=* | grep YOUR_SERVERNAMEIf you found that the server you are configuring is listed here try going to AMserver console (if you have another AMserver configured) and browse to Configuration->System Properties->Platforms. If the server is here, remove it, if not, just hit Save (very important).
If this is your first AM and is a first installation you can just get rid of the Directory Server suffix and recreate it with the Top Entry alone.
Edited by: flistello on Mar 27, 2008 4:30 PM -
JDev with Sun App Server Install
I'm just starting with EJB and am trying to compile a Remote interface and am getting the following compile error:
Error(5,48): cannot access class javax.ejb.EJBObject; file javax\ejb\EJBObject.class not found
I added the CLASSPATH for j2ee.jar to Windows and also included it at Project Settings > Development > Paths in JDev. The error persists.
What am I missing?double click on your project in JDeveloper to go to project settings.
Make sure the EJB libraries are part of your project. -
Sun App Server 8.1 and 8.2 could not start
Hi friends, thank for various suggestions. pls i'm having problem with Sun App Server 8.1 and 8.2. I installed Portal 7 on Red Hat Enterprise Linux 3 and also Sun Portal 6 on Suse Linux 9. The problem is that App server keep giving Login exception after using them for a while. The details is given below:
after typing ./asadmin start-domain --user admin domain1. Instead of it to give me the password prompt, it threw the following exception:
INFO: SEC5046: Audit: Authentication refused for [admin]
Login Failed javax.security. auth.login.LoginException: Failed file for login admin
CL1156 could not start the domain domain1.
I always login to the O/S as root.
Any suggestion will be highly appreciated. ThanksThanks very much kedar.mhaswade for your suggestions.
I do not have a regular access to the Internet, I
would have gotten back earlier than this, so i'm
sorry. Anyway, i checked the content of
~/.asadminprefs and the password is not the same with
the one i'm using. I found the default password
supplied by Sun but I don't think this could be the
problem. I'm actually using the App server that is
bundled with Sun Portal 6 and 7 and so i supplied my
own password during installation and i've logged in
several times after installation. It just failed in
one of those logins and had stopped working since. I
always encountered the same problem either when using
Sun Portal 7 or 6 on Red Hat ES 3 and Suse 9
respectively.
I'm posting the content of admin-keyfile as you
requested:
admin;{SSHA}Qf/m4KEBDPojsP1mkjywE5XZA6SPh7i8WQmV/A==;a
sadmin
# Domain User and Password - Do Not Delete Entry
Above
So i will so much appreciate your help and i wouldn't
mind if you could send me your phone number. Thanks.Hi tolulike,
Even if you supplied your own password, we have this developer friendly
feature that has side effects that are at times hard to diagnose. Can you
please
- rename the .asadminprefs file and make sure that there is no .asadminprefs file in your home directory?
- attempt to start the domain.
You should be prompted for the password.
The idea is that when you've got that file and that entry AS_ADMIN_PASSWORD in your home directory, asadmin will read it
from there and you land in this (unfortunate) situation.
Obviously doing this might have some side effects with other domains. This
is because for all domains, asadmin reads this file as a last resort. So,
it might so happen that this file is actually required for functioning of your
other domains.
But now you know when this file is used, so there is no mystery (hopefully).
Let me know if this works.
Thank you.
Kedar -
JMS problem with Sun Application Server 8.2
Hi!
I've just started trying JMS and found a problem.
I set a connection factory called "QueueConnectionFactory" in the Sun Application Server Admin Consol.
After this I test this code:
import javax.jms.*;
import javax.naming.*;
public class Sun_JNDI
public static void main(String args[]) throws Exception
Context jndiContext = null;
System.setProperty("java.naming.factory.initial","com.sun.enterprise.naming.SerialInitContextFactory" );
System.setProperty("java.naming.factory.url.pkgs","=com.sun.enterprise.naming");
System.setProperty("java.naming.provider.url","localhost:1024");
jndiContext = new InitialContext();
Object O = jndiContext.lookup("QueueConnectionFactory");
System.out.println(jndiContext);
in result I got this long Exception message:
2006.02.12. 10:52:59 com.sun.corba.ee.spi.logging.LogWrapperBase doLog
INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/1356"
2006.02.12. 10:53:00 com.sun.enterprise.connectors.ActiveRAFactory createActiveResourceAdapter
SEVERE: RAR6001 : Class Not found : com.sun.messaging.jms.ra.ResourceAdapter
2006.02.12. 10:53:00 com.sun.enterprise.connectors.ActiveRAFactory createActiveResourceAdapter
SEVERE:
com.sun.enterprise.connectors.ConnectorRuntimeException: Error in creating active RAR
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:76)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:267)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:189)
at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:71)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at Sun_JNDI.main(Sun_JNDI.java:40)
Caused by: java.lang.ClassNotFoundException: com.sun.messaging.jms.ra.ResourceAdapter
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:50)
... 7 more
2006.02.12. 10:53:00 com.sun.enterprise.naming.SerialContext lookup
SEVERE: NAM0004: Exception during name lookup : {0}
com.sun.enterprise.connectors.ConnectorRuntimeException: Error in creating active RAR
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:76)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:267)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:189)
at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:71)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at Sun_JNDI.main(Sun_JNDI.java:40)
Caused by: java.lang.ClassNotFoundException: com.sun.messaging.jms.ra.ResourceAdapter
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:50)
... 7 more
Exception in thread "main" javax.naming.CommunicationException: serial context communication ex [Root exception is com.sun.enterprise.connectors.ConnectorRuntimeException: Error in creating active RAR]
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:317)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at Sun_JNDI.main(Sun_JNDI.java:40)
Caused by: com.sun.enterprise.connectors.ConnectorRuntimeException: Error in creating active RAR
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:76)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:267)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:189)
at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:71)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
... 2 more
Caused by: java.lang.ClassNotFoundException: com.sun.messaging.jms.ra.ResourceAdapter
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:50)
... 7 more
So I tested this code under Netbeans5 and I don't where to find jar file contains the class: com.sun.messaging.jms.ra.ResourceAdapter
Other time I tryied to lookup this URL: "java:comp/env/jms/QueueConnectionFactory"
The result was: javax.naming.NameNotFoundException
I know it is a small code example but if I'm not able to solve this problem I can't go on with JMS.
I would be glad by any help.
Regards:
SandorHello
In my code it looks like that:
1: System.setProperty("com.sun.jndi.ldap.LdapCtxFactory", "iiop://localhost:3700");
2: Context ctx = new InitialContext();
3: TopicConnectionFactory factory = (TopicConnectionFactory)ctx.lookup("jms/DailyDestinationFactory");
4: TopicConnection connection = factory.createTopicConnection();
5: TopicSession session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
6: Topic topic = (Topic)ctx.lookup("jms/DailyBean");
7: TopicPublisher pub = session.createPublisher(topic);
8: TextMessage msg = session.createTextMessage();
9: msg.setText("NewMessage");
10: pub.send(msg);
and it work with Sun App Server 8.2. -
Installing sun apps server 7 on redhat 7.3
Firstly I have redhat 9 so can I install the sunapps server 7 on redhat 9 ?
secondly
can I install sun apps server 7 on atleast redhat 7.3?
the document with sun apps says that I can install sun apps server 7 on 7.2
regards
MishraHey Paul,
I'm having problems just installing SUN ONE AS Standard Edition 7.0 on my Redhat 7.2 as ROOT. Did you not get any problems even starting it. It installed okay, but when I initially ran the script to start it (./asadmin start-appserv)... it kept crapping out. I did notice some JMS errors in the log, but I haven't come across any documentation on possible bugs. Thanks in advance,
Tak. -
JAX-WS 2.1.1 RI on Sun App Server 8.1
I'm trying to deploy a JAX-WS 2.1.1 web service on Sun App Server 8.1 and I keep getting these "no such method" exceptions thrown:
java.lang.NoSuchMethodError:
javax.xml.soap.MessageFactory.newInstance(Ljava/lang/String;)Ljavax/xml/soap/MessageFactory;
I've found the javax.xml.soap.MessageFactory class in j2ee.jar packaged with Sun App Server 8.1, which indeed does not have that method. And I've also found javax.xml.soap.MessageFactory in saaj-api.jar that came with the JAX-WS 2.1.1 RI distribution, which does have that method.
Is there some way to get JAX-WS 2.1.1 RI to play nice in Sun App Server 8.1?If possible specify saaj-api.jar before j2ee.jar on your runtime classpath.
I am not familiar with Sun App Server 8.1. I had to patch domain classpath to resolve similar issues on weblogic. Also, there may be some configuration options to specify which jars get loaded first. -
Sun app server 8.1 vs 8.2 for jsf 1.1
Currently we have download sun studio creator 2 which comes with sun app server 8.1 as its default server. We want to make our default server in studio creator 2 as app server 8.2, since our production environment is running on 8.2.
Any help will be appreciated.I experienced this error on an application (not jsf), but it was something silly in the end. There may be a bug with JSF in 8.1 but I would just check the obvious before you start delving into the depths of the code.
Are you calling the app with http://localhost/AppA and the posting to http://svr03/AppA ?
Set the web.xml file to point to an HTTP file (leave everything else as is) what happens?
Simon
Maybe you are looking for
-
Sync Pages doc ok - but how to update them?!
With my imac and ipad2, I am syncing some pages doc' and it worked fine - until i tried to update them. I continued working on the pages doc on my imac and now I want the same "version" on my iPad. It's impossible to update it! Does anyone know what
-
Hi all, line breaks that i'm giving in text area's text are not been showed by JSP's simple function recordset.getObject(). for instance, if u know PHP...i want a function that perform task similar to nl2br(); desperately waiting for replies. Regards
-
Editing HTML through the browser itself
Today, I went to JotSpot and reached the following page saying that Safari is not supported [from http://feedback.jot.com/KnownIssues/]: Mac Support <item>1. Mac support: WYSIWYG will work with the Firefox browser (free, open-source), but not with Sa
-
Hi I've found that although the original files are still in the folders they were in when a first created a catalog in Lightroom, when I now click on the preview images the message "file could not be opened" appears. The only way around that I've fou
-
Simple Tree using custom container
Hi all, I am facing a problem, I am preparing a simple tree in a custom container of using two table such as mchb and mska, from these table i am selecting fields wearks ,matrn ,veblen, quantity , lgort (storage location) and made a internal table, f