Problem of AppServer 7
Hi, I am new here. I got a problem of installation.
I have install AppServer7 and studio 5 upgrade 1 successfully. The default JDK directory is c:\j2sdk1.4.2_05. One day, I rename the C:\j2sdk1.4.2_05 to C:\jdk. After that, when I tried to run studio 5, it showed up error "can not find jvm.dll".
I uninstalled studio 5 successfully. Then I found I could not uninstalled AppServer7. Always shows me
that it could not find jdk directory. Then I made a big mistake. I just delete the AppServer 7 directory and remove items about Sun Microsystems in Register tree. Now I can not install AppServer 7 in default path which is C:\Sun\AppServer7. It always force me to install the plugin of Stuio but not the fully version of AppServer 7. What should I do now? Please help.
I am using Windows 2000 Professional, P4 and 512M RAM. Thanks a lot
INFO - Start core server configuration.
INFO - Domain successfully created
ERROR - createServerInstance returned following errormsg: INSTALL2030:Server instance by name: already exists within the given domain. Please choose a different servername.
WARNING - SNMP subagent installation did not succeed
INFO - End core server configuration.
INFO - Start samples configuration.
INFO - End samples configuration.
INFO - Start Sun ONE Messaging Queue configuration
INFO - End Sun ONE Messaging Queue configuration
INFO - Start PointBase configuration
INFO - End PointBase configuration
Similar Messages
-
Identity Server 6.1 problem in appserver 7.0
Hi,
I am trying to install ID6.1 on Appserver 7.0.They are all part of JES03Q4Sparc bits.
After installing the ID6.1 on Appserver7.0 ,i am not able to bring the amconsole.It says "page cannot be found".
I looked into the log file and there are visible problems during installation.
1./var/sadm/pkg/SUNWamsdk/install/postinstall: /usr/jdk/entsys-j2se/bin/native2ascii: not found
/var/sadm/pkg/SUNWamsdk/install/postinstall: /usr/jdk/entsys-j2se/bin/jar: not found
2: cannot access /opt/SUNWam/web-apps/introduction/WEB-INF/web.xml
/var/sadm/pkg/SUNWamsai/install/postinstall: /opt/SUNWam/web-apps/introduction/WEB-INF/web.xml: cannot create
cp: cannot access /opt/SUNWam/web-apps/introduction/WEB-INF/classes/FSIntroConfig.properties
3Installation of <SUNWamsai> was successful.
ps/introduction/WEB-INF/classes/FSIntroConfig.properties: cannot create
/var/sadm/pkg/SUNWamsai/install/postinstall: /usr/jdk/entsys-j2se/bin/jar: not found
mv: cannot access introduction.war
Installed Package: SUNWamsai
Install complete.
I could see the amadmin user in the directory server 5.2.The only problem seems to be that installation fails to load amconsole,ampassword related webmodule into the appserver.
Btw,am using JDK1.4_0_6.
Any help would be greatly appreciated.
Thanksit is evident that your jdk is not installed properly
jar and native2ascii are required for successful install
make sure these utilities installed properly
and reinstall ID server -
Deployment problem in appserver 9 pe
while creating same oracle JDBC connection created in creater 2. appserver PE9 gives following error.
Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Class name is wrong or classpath is not set for : com.sun.sql.datasource.DriverAdapter
i have added classpath but still i am getting the error pls help sos.I had the same problem and finally got it fixed.
I was trying to add datasource for SQL Server 2005.
Steps to correct for Sun App Server 8 or 9
1. Download Microsoft JDBC Driver for SQL Server 2005
2. Put sqljdbc.jar file at AppServer_Install/lib/msjdbc dir. Create if not there. My full path was:
F:\InstalledSoftware\Sun\Appserver\lib\msjdbc\sqljdbc.jar
3. Add this path to environment variable "CLASSPATH" for example my variable looks like:
F:\installedsoftware\QuickTime\QTSystem\QTJava.zip;F:\InstalledSoftware\Sun\Appserver\lib\msjdbc\sqljdbc.jar
to go there use my computer->properties->advance and use env. variable button to see CLASSPATH under System Variables
4. add this under
Sun Java System Application Server Admin ->JVM Settings->Path Settings-Classpath Suffix:
${com.sun.aas.installRoot}/lib/msjdbc/sqljdbc.jar
after doing so, restart the server and create a new connection pool using:
Datasource Classname:com.microsoft.sqlserver.jdbc.SQLServerConnectionPoolDataSource
Resource Type:javax.sql.ConnectionPoolDataSource
and connection wizard.
Hopefully you will be able to ping new connection. You may get user not associated with trusted connection if you turn ON IntegratedSecurity=true. So avoid that keep it false.
goodluck
Kashif -
Master/Detail deletion problem
Hi, I've discovered strange behaviour of SunApp server 8.1.EE.
In one ejb interface method, which is mapped onto one DB transaction I try to remove several detail DB records and at the end of the method to remove a master (parent) record.
All but one details (children) and the master (parent) are realized asCMPs. One of the children is not mapped to an CMP but is deleted via custom DAO object (basically by calling delete ... SQL command).
The problem is :
AppServer changes the order of executed SQL commands, so it tries to delete master record prior to the detail record that should be deleted by DAO object!
Have anyone come to this?
I've discovered a thread, that discusses almost similar problem, but without DAO and is from 2003:
http://forum.sun.com/jive/thread.jspa?forumID=114&threadID=18942
Thanks JanHi Jan,
The customer in the forum post was using EJB 1.1. Since beans in EJB
1.1 don't have relationships, CMP doesn't try to re-order SQL
statements to match database (foreign key) dependencies. But I
remember there was a very old bug that instances were not committed in
the user-defined order. But that was probably in AS 7.x times... This
should certainly not affect you.
To your problem:
In CMP 2.1, all instances are normally committed in the order of their
first modification. Commits are sometimes re-ordered to match database
constraints, preventing foreign key violations. This is required by
the EJB 2.1 spec.
As one child is not mapped as entity, CMP doesn't know about it. But
the non-mapped child should be removed immediately, whereas CMP
deletions are deferred until the end of the transaction, unless the
transaction executes a query. That's why I can't imagine why you're
seeing this error.
It would be great, if you could provide the code of the ejb interface
method and an cut-out of your server log for further
investigation. Can you try mapping the un-mapped child as a CMP bean? -
Load library failed when trying to call OPMN
Hi,
I have installation of DB and AppServer on one computer, DB is working really nice, but I have problems with appserver - when I try to start it from start menu - then there is timeout, but when I am trying to execute opmnctl from command line - then there is timeout, so then I made the following 2 requests and get relevant answers - what I shoul do further?
C:\product\10.1.3.1\OracleAS_5\opmn\bin>opmn
$ORACLE_HOME_AS\opmn\lib\libopmnohs.dll LoadLibrary failed: 126
Module libopmnohs: library load error:
$ORACLE_HOME_AS\opmn\lib\libopmnohs.dll
Module libopmnohs initialization failed: disabled
$ORACLE_HOME_AS\opmn\lib\libopmnoc4j.dll LoadLibrary failed: 126
Module libopmnoc4j: library load error:
$ORACLE_HOME_AS\opmn\lib\libopmnoc4j.dll
Module libopmnoc4j initialization failed: disabled
$ORACLE_HOME_AS\opmn\lib\libopmncustom.dll LoadLibrary failed: 126
Module libopmncustom: library load error:
$ORACLE_HOME_AS\opmn\lib\libopmncustom.dll
Module libopmncustom initialization failed: disabled
$ORACLE_HOME_AS\opmn\lib\libopmniaspt.dll LoadLibrary failed: 126
Module libopmniaspt: library load error:
$ORACLE_HOME_AS\opmn\lib\libopmniaspt.dll
Module libopmniaspt initialization failed: disabled
Module brl5.ALEKSS~HTTP_Server: no start callback
C:\product\10.1.3.1\OracleAS_5\opmn\bin>opmnctl validate "C:\product\10.1.3.1\Or
acleAS_5\opmn\conf\opmn.xml"
$ORACLE_HOME_AS\opmn\lib\libopmnohs.dll LoadLibrary failed: 126
Module libopmnohs: library load error:
$ORACLE_HOME_AS\opmn\lib\libopmnohs.dll
Module libopmnohs initialization failed: disabled
$ORACLE_HOME_AS\opmn\lib\libopmnoc4j.dll LoadLibrary failed: 126
Module libopmnoc4j: library load error:
$ORACLE_HOME_AS\opmn\lib\libopmnoc4j.dll
Module libopmnoc4j initialization failed: disabled
$ORACLE_HOME_AS\opmn\lib\libopmncustom.dll LoadLibrary failed: 126
Module libopmncustom: library load error:
$ORACLE_HOME_AS\opmn\lib\libopmncustom.dll
Module libopmncustom initialization failed: disabled
$ORACLE_HOME_AS\opmn\lib\libopmniaspt.dll LoadLibrary failed: 126
Module libopmniaspt: library load error:
$ORACLE_HOME_AS\opmn\lib\libopmniaspt.dll
Module libopmniaspt initialization failed: disabled
XML parse: brl5.ALEKSS~HTTP_Server, process-type: OHS, module: libopmnohs is mis
ing start callback.
opmnctl: opmn validation failed!
I have defined environment ORACLE_HOME_AS to point to AppServer installation and ORACLE_HOME to DB installation... Well - I had similar problems before this redefinition as well and then I decided - that it could be better to make separate variable and use it for AppServer... Anyway - what should I put in ORACLE_HOME - there can be so much installation on one machine!!!Well - I resolved some part of this. It happens, that opman is seeking config files in DB opmn config folder and so - I put them here (thanks God - there was not name conflict) and changed their content - so - that they point to real paths (not using ORACLE_HOME_AS).
But now I have error:
C:\product\10.1.3.1\OracleAS_5\opmn\bin>opmn -a dump
CONNECT: Result too large
Similar error is for any call or ompn -a command.
p.s. I feel that this is the issue of being DB and appServer on the came computer not the AppServer issue. So - thread is eligible for this forum. -
<p>it is really a hard work to deal with the installation of<br>ibm olap server analyzer analysis services (hyperion analyzer7.0.1.<img src="http://hyped.biz/community/Smileys/default/cool.gif" border="0"alt="Cool"> <br><br>i have read the article at http://businessintelligence.ittoolbox.com/groups/groups.asp?v=hyperion-l&i=277513<br><br>it is about a problem of installing hyperion analyzer.<br><br>I am now having the same problem and I trie the methods above butit doesn't work.<br><br>I have carefully checked the 3 variables (in the article):<br><br>ARBORPATH = points to the essbase directory<br>PATH = pointed to the essbase/bin directory<br>LD_LIBRARY_PATH = pointed to the /essbase/dlls and the/essbase/bin<br><br>NOTE: the essbase/dlls directory does not exists/<br><br>I have<br><br>1 - olap server (hyperion version 7.1) /opt/arbor<br>2 - db2 UDB /opt/IBM/db2/V8.1<br>3 - analyzer server /opt/hyperion/analyzer<br><br>all installed on the same machine which is a sun workstation(SPARC)running solaris 8 .<br><br><br> PATH=/opt/hyperion/analyzer/adm/bin/solaris:/opt/hyperion/analyzer/common::/usr/bin:/usr/sbin:/usr/ccs/bin:.:/opt/arbor/bin:/opt/arbor/common/ODBC/Merant/4.2/lib<br> LOGNAME=root<br> MAIL=/var/mail/root<br> ESSLANG=SimplifiedChinese_China.MS936@Binary<br> ARBORPATH=/opt/arbor<br> SHELL=/bin/ksh<br> JAVA_HOME=/opt/hyperion/analyzer/jdk<br> ICU_DATA=/opt/hyperion/analyzer/adm/bin/solaris:/opt/hyperion/analyzer/common:/HssEssDriver/<br> ODBCINI=/opt/arbor/common/ODBC/Merant/4.2/odbc.ini<br> HYPERION_HOME=/opt/hyperion/analyzer<br> HOME=/export/home/root<br> LD_LIBRARY_PATH=/opt/hyperion/analyzer/adm/bin/solaris:/opt/hyperion/analyzer/common:::/usr/openwin/lib:/usr/lib:/opt/arbor/bin:/opt/arbor/common/ODBC/Merant/4.2/lib<br><br><br>when i tried to make a connection to olap server through the appletprogram ,i got the following message:<br> <br><span style=" color: red;">[1033] native: 2001 Essbase Error;nested exception is :<br> <br> com.hyperion.ap.APException:[1033]Native: 2001<br> <br> Essbase Error</span><br>but when i try to connect to db2 udb ,it works fine.<br><br>my olap server also works fine , i can use maxl and ESSCMDcorrectly<br><br>anyone who can help me ? thanks in advance !<br><br>BTW ,i am from china ,so the lang var is zh.GBK<br></p>
I have solved the problem by creating symbol links to the essbase library file:libessapi.so -> libessapiu.so.1llibessapiu.so -> libessapiu.so.1libessotl.so -> libessotlu.so.1there are some very important log files which can help to position this problem:Analyzer_install_path/appserver/logs/.....
-
Websphere Application Server - MQ: JMS
All,
I have an MDB which dequeues a message, does some processing, and inserts data into the database.
Now problem I am having here is, I am running my application on Websphere Application Server 5.1.1.5 using MQ 5.3. When I have under 15,000 messages all is fine. But once this number exceeds 15,000 it tends to process messages at almost 1 message per 20 - 30 min.
I am curious is this a problem with AppServer or a JMS issue? Thanks in advance.
By the way, I do not have any exceptions or anything for you.Haha I just did that as you posted the message here. We are using hibernate for database management. Looks like it is taking up a lot of the cpu.
Also, we are using Hibernate with JDBCTransaction however our MDB is using Bean managed transactions, is it a possibility that the commit is not occuring at the Bean level to get to the next message? -
Its really rare that i am able so autostart my infrastructure and middle tier( both on same server) at system startup. I dont know with i do something wrong or is there problem with appserver
Right now i have autostart disabled but now i am facing aanother problem. I started listener and then asdb (infrastructure database) and opmn is showing status of HTTP_server as BOUNCE, before this i used emctl start iasconsole command which started my enterprose manager and also started all opmn managed processes but startus of my HTTP_Server was "Stop" and it was not working, i restarted my server and now before startign iasconsole i started opmn using "opmnctl start" command and then when i look at the status of all components, all are down but status of HTTP_Server is "Bounce"
How to solve this.
should i use some other method to start all components ?
RegardsHi,
i have posted the script i use to start application server 10g (9.0.4) after server reboot in this post
Oracle App Server Recovery process after System restrat
have a look
Best Regards
Rui Madaleno -
AppServer: problems trying to add users to roles in security dialog
I'm trying to learn J2EE using AppServer. My current example has a client accessing
an entity bean. I want two classes of user - Reader, and Updater. Most methods
of Home and Remote are accessible to both classes, a few are restricted to users
in Updater role. I'm currently having problems adding users to roles in deploytool.
I have defined users using the Admin client.
I have implemented and test run client and entity bean without security restrictions, it works.
I have defined roles associated with the application.
I have allocated roles to every method in Home and Remote interface of bean.
I have extracted the generated XML file and checked the <assembly-descriptor> section and
it appears that all roles and role descriptions are defined as required.
deploytool lets me use the "Security Role Mapping" dialog, I can select either of my roles and
try "Add user to role" - subsequent dialog shows my users and allows me to "Map user to role" -
but selected user does NOT appear in the user names panel.
What am I doing wrong or what am I omitting? Hints please!Thanks for suggestions. (I'm using Windows so file-protections pretty
non-existent).
I looked in the Sun file you mentioned and found the users were defined.
When I restarted AppServer and deploytool, the users were shown in the appropriate
panel.
There is probably some minor bug in deploytool that causes the User Panel not
to be updated as it should be after a user has been added to a role. -
Problem removing sample app JAAS from appServer 8
Running JSC 2.1 and packaged appserver 8.x with latest JSC updates
on windows XP SP2
Problem undeploying the JAAS sample application which shows up within the appserv admin console but does not showup from the JSC "Deployment Server" panel:
The application is not displayed within the "Deployment Server - Deployed Components" "panel" within Creator 2.1
How can I remove this application from the Application server 8 manually??
From the server log display with Creator 2.1
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
Compiling 1 source file to C:\Documents and Settings\gwheeler\My Documents\Creator\Projects\JAASAuthentication\build\web\WEB-INF\classes
compile:
compile-jsps:
pluto-hack-web-xml-run:
portlet-container-deploy:
jsCreatorDist:
run-deploy:
In-place deployment at C:\Documents and Settings\gwheeler\My Documents\Creator\Projects\JAASAuthentication\build\web
Start registering the project's server resources
Finished registering server resources
Application JAASAuthentication is already deployed on other targets. Please use create-application-ref command to create reference to the specified target; requested operation cannot be completed
deployment started : 0%
Application JAASAuthentication is already deployed on other targets. Please use create-application-ref command to create reference to the specified target; requested operation cannot be completed
deployment started : 0%
Deployment of application failed - null; requested operation cannot be completed
From "Web Application" within the Application Server Admin Console:
A "com.sun.enterprise.tools.guiframework.exception.FrameworkException" was caught. The message from the exception: "Unabled to handle pre-compiled JSP '/jsp/webApplicationsEdit.jsp'. Expected pre-compiled classname: 'org.apache.jsp.jsp.webApplicationsEdit_jsp'."
The root cause is "com.sun.enterprise.admin.common.exception.MBeanConfigException: Component not registered"
See the HTML source for more detailed (stack trace) information.
ThanksHi!
Try this:
1) Stop the Application Server
2) Go into $Server_Dir/domains/<domain_name>/config/ and edit domain.xml.
3) Find all the elements refering to your application and delete them.
4) Try to deploy again.
I hope it helps.
Thanks,
Roman. -
JDO object id problem when working with an appserver
Hi,
I'm running into a problem when passing a JDO object id as an argument to a
bean. My client is finding a JDO object locally, then attempting to
instantiate a bean which wraps the JDO object. Since the JDO object is not
Serializable, I'm passing the object id to the bean constructor, so that the
bean can look up the object again, this time in the appserver, and wrap it,
without ever serializing the object.
I'm guessing that the JDOId class for the JDO object is generated on the fly
in the client, and therefore does not exist in the ClassLoader in the
appserver. Any ideas how I can fix this?
Thanks,
Eric
Exception in thread "main" java.lang.reflect.UndeclaredThrowableException:
java.lang.ClassNotFoundException: test.TheTest$JDOId (no security manager:
RMI class loader disabled)
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
wn Source)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:25
8)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
at $Proxy0.create(Unknown Source)
at test.TheTestRemote.<init>(Unknown Source)
at test.TheTest.getRemoteObject(TheTest.java:19)
at
com.hcm.tools.util.CollectionHelper.getFirst(CollectionHelper.java:23)
at
com.hcm.tools.jdo.JDOFactory.executeSingletonQuery(JDOFactory.java:234)
at test.Test.print(Test.java:22)
at test.Test.main(Test.java:11)Hi David,
I'm trying to use JDO to completely replace Entity Beans. Of course, this
leaves me with an important question: how do you make the JDO object
available remotely? My answer is to wrap JDO objects with a stateful
session bean, and pass through method calls made on the bean to the JDO
object. Both the bean and the JDO object will implement some interface, so
you can use an object in a client without any knowledge as to whether it is
a bean or a JDO object. ( Important note: I can get away with this because
of another cool Solarmetric product, the session bean creator, which
enhances a simple java object into a session bean )
Now, once I have some interface implementation, maybe a local persistent
object, maybe a remote object, I will want to do something with it. There
are a couple considerations here. First, if I want to edit the object, I
need to make sure a transaction gets started. I do this by having my
session beans take care of starting and committing transactions. Since I
have written my own JDO Factory that takes care of synchronizing PM caches
across transactions, this has the effect of keeping all my caches in the
appserver up-to-date as well ( more on that if you're interested ). So, in
order to call a 'set' method, I need to ensure that the object I have is in
it's "remote" state, so-to-speak.
So I created an interface called RemotePersistentObject, which all these
other interfaces extend. It includes two methods, getRemoteObject (), and
getObjectId (). The reason for getObjectId (), instead of
getPersistentObject (), is that often times you don't want your JDO objects
to be Serializable, especially if you have JDO objects that you want to
guarantee remain unique ( say, no two Stock objects have the same ticker
symbol ). Besides, you want the remote object to represent the same
concept, and as soon as you serialize the persistent object, you have a copy
of the original JDO object that will no longer do nice things you'd like it
to do, like get updated when some transaction in a different thread modifies
a field.
So, to get around this serialization issue, I just pass the JDO object id to
the bean, and have the bean lookup and wrap the appropriate JDO object on
the server. I wrote a couple optional base classes that provide a lot of
the functionality for this, since it turns out that wrapping a
non-serializable JDO object is non-trivial. The problem there is that when
the bean passivates, it serializes the state of the session bean... oops.
So the base classes take care of keeping a transient reference to the actual
object, while keeping a non-transient ref to the object id. All attempts to
use the actual JDO object are filtered through a getObject () method, which,
if the transient ref has disappeared due to bean passivation, looks up the
object in a read-only PM again.
Hmmmm. Lots of stuff here. I'll stop here and answer any questions (
criticisms ) you may have.
-Eric
"David Ezzio" <[email protected]> wrote in message
news:[email protected]...
Eric,
Curious minds want to know: what are you up to here? I found this to
be a very interesting post, and I would like to know more about the
architecture you are using and its motivation if you can share it.
David Ezzio
Eric Lindauer wrote:
Hi,
I'm running into a problem when passing a JDO object id as an argument
to a
bean. My client is finding a JDO object locally, then attempting to
instantiate a bean which wraps the JDO object. Since the JDO object isnot
Serializable, I'm passing the object id to the bean constructor, so thatthe
bean can look up the object again, this time in the appserver, and wrapit,
without ever serializing the object.
I'm guessing that the JDOId class for the JDO object is generated on thefly
in the client, and therefore does not exist in the ClassLoader in the
appserver. Any ideas how I can fix this?
Thanks,
Eric
Exception in thread "main"java.lang.reflect.UndeclaredThrowableException:
java.lang.ClassNotFoundException: test.TheTest$JDOId (no securitymanager:
RMI class loader disabled)
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
wn Source)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:25
8)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
at $Proxy0.create(Unknown Source)
at test.TheTestRemote.<init>(Unknown Source)
at test.TheTest.getRemoteObject(TheTest.java:19)
at
com.hcm.tools.util.CollectionHelper.getFirst(CollectionHelper.java:23)
at
com.hcm.tools.jdo.JDOFactory.executeSingletonQuery(JDOFactory.java:234)
at test.Test.print(Test.java:22)
at test.Test.main(Test.java:11) -
Hi
I have a problem when I started the admin server, the error is:
......C:/Sun/AppServer/pointbase/lib/pbclient.jar;C:/Sun/AppServer/pointbase/lib/pbembedded.jar
com.sun.enterprise.server.PEMain
start
display
native|#]
*** EXITING ERROR:
Can't create Java VM
How I can repair it?
ThanksLooks like a horribly failed install - one that didn't load any of the J2EE SDK libraries in the runtime classpath.
-
HELP JSTL problem when mixed with appserv-rt.jar
Hi,
I've started using JSTL tags in my JSP. All was good until i needed to call a remote EJB from a servlet, store the object to a session, and redirect to a JSP page to display the content of the remote object. We'll just to clear things, i am able to do this properly using JSP expressions <%=myVar%>. And i am able to use <c:out value="${myVar}" /> on a project which does not have appserv-rt.jar inside it's lib directory. I'm getting a java.lang.NoSuchMethodError: javax.el.ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory; when i add appserv-rt.jar in my lib. I'm using tomcat6 as my web server and glassfish as my app server. Below is the complete stack trace from tomcat:
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NoSuchMethodError: javax.el.ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory;
at org.apache.jasper.compiler.JspUtil.getExpressionFactory(JspUtil.java:1166)
at org.apache.jasper.compiler.JspUtil.validateExpressions(JspUtil.java:628)
at org.apache.jasper.compiler.Validator$ValidateVisitor.getJspAttribute(Validator.java:1341)
at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1117)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:834)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1482)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2257)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2307)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2313)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:481)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2257)
at org.apache.jasper.compiler.Validator.validate(Validator.java:1837)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:195)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:409)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at gogogo.MyServlet.doPost(MyServlet.java:88)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
This has been driving me nuts for days... any help would be deeply appreciated.
thanksSo the solution is not to have appserv-rt.jar in the lib directory?
Which lib directory are you referring to?
Your WEB-INF/lib or Tomcat's lib?
I presume you are including appserv-rt.jar for the remote EJB stuff?
After a quick google I found [this page|http://www.java2s.com/Code/Jar/glassfish/Downloadappservrtjar.htm] listing all the classes included in this jar.
There are a bunch of Tomcat classes in there - including org.apache.jasper.compiler.
That would be plenty enough to create classpath clashes between your app and Tomcat's classes.
After some googling I found this link
[http://nicl.net/2008/06/tomcat-glassfish-and-ejb-what-a-mess/]
Maybe it will help you sort out your problem? But definitely this appserv-rt.jar seems overkill for the job of just providing EJB support. -
BEA Appserver 9.1 server creation problem
Hi
I'm facing a issue with an installation of BEA Appserver 9.1 on Solaris 10. I have a working installation on a separate machine which I set up myself, but am having a problem on this one machine.
More specifically, I'm facing an issue with the creation of the Admin server and Managed Server within the domain.
I ran the '/usr/local/bea/weblogic91/common/bin/config.sh' to create the domain and managed servers. The domain gets created, but the Admin and Managed servers do not created within the domain. I see all directories EXCEPT the 'servers' directory beneath the domain.
I tried several times, and also ran that configurator in both console and GUI modes, but I get the same result each time.
The logfile created when I use the '-log' option with the configurator, doesn't show any errors/exceptions.
I also tried un-installing and re-installing the product.
I'm wondering if any of you came across such a situation and resolved it.
RG.Rahul,
you can also add the following entry to the startWebLogic.cmd script in your domain
set PRODUCTION_MODE=true
cheers
Raj -
AppServer: again problem with DB configurations
I have successfully configured a pooled Oracle data source and had it run, but I'm
having problems establishing an XA Oracle connection. (Using admin console)
The pooled source used the parameters:
-- Datasource-classname oracle.jdbc.pool.OracleDataSource
-- Resource type javax.sql.DataSource
-- Pool settings - all as per defaults
-- Connection-validation etc - as per defaults
-- Transaction isolation - changed to "default for driver" (i.e. blank)
-- Properties - user, password, and url
it works;
the XA connection I tried configuring as:
-- Datasource-classname oracle.jdbc.xa.client.OracleXADataSource
-- Resource type javax.sql.XADataSource
-- the rest of parameters as for the pool connection
When I try to test the connection via "Ping" (in admin console) I get an error
with the server log recording:
java.lang.ClassNotFoundException: oracle.jdbc.xa.client.OracleXADataSource
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
Since both the oracle.jdbc.pool.OracleDataSource and oracle.jdbc.xa.client.OracleXADataSource
classes are in the same ojdbc14.jar file this seems very odd.
Any suggestions?
Thanks.i just tested this and it works fine for me. Here are the properties that are set (from domain.xml):
<jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="oracle.jdbc.xa.client.OracleXADataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="false" max-pool-size="32" max-wait-time-in-millis="60000" name="cts-oracle-xa-pool" pool-resize-quantity="2" res-type="javax.sql.XADataSource" steady-pool-size="8">
<property name="Password" value="cts1"/>
<property name="URL" value="jdbc:oracle:thin:@jsesun11:1521:cts1"/>
<property name="User" value="cts1"/>
</jdbc-connection-pool>
Maybe you are looking for
-
How to access objects in the Child Form from Parent form.
I have a requirement in which I have to first open a Child Form from a Parent Form. Then I want to access objects in the Child Form from Parent form. For example, I want to insert a record into a block present in Child Form by executing statements fr
-
Creating random timeseries in Labview to Arbitrary wave generator
I do not know anything about Labview but somehow i need to get this task done. How do i make a random data time series using the data arrays in a text file to be generated into the arbitrary wave generator? Can somebody please provide an example file
-
WHSCON or SHPCON : how to transfer the picking request number ?
Hello, I want to pick & pack an outbound delivery using the idoc WHSCON. Using the WE19 transaction I have simulated an inbound idoc with qualif. PIC in segment E1EDL18. It works fine. My problem is that a new picking request is created for the deliv
-
IS-U contract account field under R/3 quotation side
Dear Friend, As I have a requirement called IS-U contract account field should be available in R/3 quotation side. what is the configuration for this, and I did the config for IS-U and SD side integration(reference field under FPP1), but the contact
-
I've been using Dreamweaver for years now, usually just simple stuff. But I've just started using CSS in my latest site and I've noticed that EVERY layer I've ever drawn on a page is retained as a 'style' in the code. It doesn't matter whether I dele