Problem reinstalling App Server 8.1 2005Q1
I installed App Server 8.1 and run it successfully. Later I had to uninstall it, but then, when I want to reinstall the App Server it fails. When I set the installation folder and press next, nothing happens.
Thanks in advance.
Marcelo.
Thanks,
it did work. I just followed the steps it mentioned and when I reinstalled the App Server 8.1 everything was successfully.
Marcelo.
Similar Messages
-
Sun App Server 8.1 2005Q1 & Netbeans
I noticed that Netbeans EJB deployment is no longer compatible with the app server, because some API has changed.
It was one of those features that was really, really useful for development...The error that it gives is:
java.lang.NoClassDefFoundError: com/sun/enterprise/deployapi/actions/RedeployAction
And this class is missing in the new appserv-rt.jar.
Before (2004Q4):
com/sun/enterprise/deployapi/actions/LocalStrings.properties
com/sun/enterprise/deployapi/actions/ClientConfigurationImpl.class
com/sun/enterprise/deployapi/actions/DeployAction.class
com/sun/enterprise/deployapi/actions/ModuleStateAction.class
com/sun/enterprise/deployapi/actions/RedeployAction.class
After (2005Q1):
com/sun/enterprise/deployapi/actions/LocalStrings.properties
com/sun/enterprise/deployapi/actions/ClientConfigurationImpl.class
What happened? -
Problem installing App Server 8.1 on Linux
I've got App server 8.1 that came with a Messaging Server bundle. I tried installing on a new machine, and it wouldn't go through with the full configuation at the time of install, so I took the "configure later" option.
I'm now trying to manually configure and start the App server, which usually is in /var/opt/sun/appserver/bin.
However, there's nothing in there except a PointBase directory, and there's no installer file for the appserver in /opt/sun. Anyone know where the manual installer script for the app server gets kept?Okay - it looks like I've found the answer to my own question, unless anyone has a better answer:
http://docs.sun.com/app/docs/doc/819-2328/6n4khb8jl?a=view
This document goes over the post-install instructions for Sun Java Application server. It assumes you were able to run the installer, and then choose the "configure now" option to enter in all of the values right then and there for the install.
If you choose the "configure later" option, and don't enter in all of the server values right there, you are pretty much up a creek as I've found no way to actually do the post-install after this. There is literally no executible which does this.
The only thing I was able to do that worked was to try (and fail) to run the uninstall script, and then -- when that bombed out and wouldn't actually un-install everything, I did an rpm -qa | grep sun-, and then on EVERYTHING in that list, I did an rpm -e to remove it. That finally worked and allowed me to re-run the install.
Does anyone else have better advice on this one?
--Tad
System Administrator
Church of Scientology International
http://www.scientology-washingtondc.org -
Connection problems with App Server database
Hello All.
On my project it has been noticed in the database listener logs that our Application Server is attempting to make a jdbc connection to the database multiple times a second on different ports. The port numbers appear to be increasing on each attempt.
We believe this is causing the number of connections available to be rapidly taken up, and limiting the App Server from making any connections for future processes.
Here are some of the events in the database listener log:
20-AUG-2006 13:10:40 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PWTS)) * (ADDRESS=(PROTOCOL=tcp)(HOST=OUR_HOST)(PORT=37870)) * establish * PWTS * 0
20-AUG-2006 13:10:40 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PWTS)) * (ADDRESS=(PROTOCOL=tcp)(HOST=OUR_HOST)(PORT=37871)) * establish * PWTS * 0
20-AUG-2006 13:10:40 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PWTS)) * (ADDRESS=(PROTOCOL=tcp)(HOST=OUR_HOST)(PORT=37872)) * establish * PWTS * 0
20-AUG-2006 13:10:40 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PWTS)) * (ADDRESS=(PROTOCOL=tcp)(HOST=OUR_HOST)(PORT=37873)) * establish * PWTS * 0
20-AUG-2006 13:10:40 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PWTS)) * (ADDRESS=(PROTOCOL=tcp)(HOST=OUR_HOST)(PORT=37874)) * establish * PWTS * 0
20-AUG-2006 13:10:41 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PWTS)) * (ADDRESS=(PROTOCOL=tcp)(HOST=OUR_HOST)(PORT=37875)) * establish * PWTS * 0
20-AUG-2006 13:10:41 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PWTS)) * (ADDRESS=(PROTOCOL=tcp)(HOST=OUR_HOST)(PORT=37876)) * establish * PWTS * 0
Has anyone seen anything similar to this or have any suggestions as to where to look?
Thanks,
Seansqlnet does switch the ports dynamically, I guess for scaling and security - but I have to admit, I am not a db guru - o it's jsut what i remember from previous chats with colleaques..
-
EJB problem under App Server 7
Hi, I get this error message when using CMP beans under app server 7. Works fine under the reference impementation but not under app server 7.
SEVERE: EJB5032: Exception in creating new bean : [{0}]
java.lang.NullPointerException
at gem.purchasing.ejb.ecx.members.EcxMembersEBEJB_1077136325_ConcreteImpl.jdoLookupPersistenceManagerFactory(Ecx
MembersEBEJB_1077136325_ConcreteImpl.java:694)
at gem.purchasing.ejb.ecx.members.EcxMembersEBEJB_1077136325_ConcreteImpl.setEntityContext(EcxMembersEBEJB_10771
36325_ConcreteImpl.java:724)
at com.sun.ejb.containers.EntityContainer$EntityContextFactory.create(EntityContainer.java:2599)
at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:176)
at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:133)
at com.sun.ejb.containers.EntityContainer.getPooledEJB(EntityContainer.java:1896)
at com.sun.ejb.containers.EntityContainer.getContext(EntityContainer.java:560)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:452)
at gem.purchasing.ejb.ecx.members.EcxMembersEBEJB_1077136325_ConcreteImpl_RemoteHomeImpl.create(EcxMembersEBEJB_
1077136325_ConcreteImpl_RemoteHomeImpl.java:24)
at gem.purchasing.ejb.ecx.members._EcxMembersEBHome_Stub.create(Unknown Source)
at gem.purchasing.util.ecx.EcxSupplierDefaultPopulate.create(EcxSupplierDefaultPopulate.java:189)
at gem.purchasing.util.ldapservices.DlcuPersistenceHelper.insertEcxData(DlcuPersistenceHelper.java:997)
at gem.purchasing.ejb.ldapservices.ValidatorEJB.sendToMapper(ValidatorEJB.java:981)
at gem.purchasing.ejb.ldapservices.ValidatorEJB_EJBObjectImpl.sendToMapper(ValidatorEJB_EJBObjectImpl.java:112)
at gem.purchasing.ejb.ldapservices._ValidatorEJB_EJBObjectImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:569)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:211)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:83)
at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(ServicableWrapper.java:25)
at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(FastThreadPool.java:283)
at java.lang.Thread.run(Thread.java:536)
SEVERE: EJB5017: Exception while running preinvoke : ejbName = [EcxMembersEB]
SEVERE:
javax.ejb.EJBException: nested exception is: java.lang.NullPointerException
java.lang.NullPointerException
at gem.purchasing.ejb.ecx.members.EcxMembersEBEJB_1077136325_ConcreteImpl.jdoLookupPersistenceManagerFactory(Ecx
MembersEBEJB_1077136325_ConcreteImpl.java:694)
at gem.purchasing.ejb.ecx.members.EcxMembersEBEJB_1077136325_ConcreteImpl.setEntityContext(EcxMembersEBEJB_10771
36325_ConcreteImpl.java:724)
at com.sun.ejb.containers.EntityContainer$EntityContextFactory.create(EntityContainer.java:2599)
at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:176)
at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:133)
at com.sun.ejb.containers.EntityContainer.getPooledEJB(EntityContainer.java:1896)
at com.sun.ejb.containers.EntityContainer.getContext(EntityContainer.java:560)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:452)
at gem.purchasing.ejb.ecx.members.EcxMembersEBEJB_1077136325_ConcreteImpl_RemoteHomeImpl.create(EcxMembersEBEJB_
1077136325_ConcreteImpl_RemoteHomeImpl.java:24)
at gem.purchasing.ejb.ecx.members._EcxMembersEBHome_Stub.create(Unknown Source)
at gem.purchasing.util.ecx.EcxSupplierDefaultPopulate.create(EcxSupplierDefaultPopulate.java:189)
at gem.purchasing.util.ldapservices.DlcuPersistenceHelper.insertEcxData(DlcuPersistenceHelper.java:997)
at gem.purchasing.ejb.ldapservices.ValidatorEJB.sendToMapper(ValidatorEJB.java:981)
at gem.purchasing.ejb.ldapservices.ValidatorEJB_EJBObjectImpl.sendToMapper(ValidatorEJB_EJBObjectImpl.java:112)
at gem.purchasing.ejb.ldapservices._ValidatorEJB_EJBObjectImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:569)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:211)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:83)
at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(ServicableWrapper.java:25)
at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(FastThreadPool.java:283)
at java.lang.Thread.run(Thread.java:536)
javax.ejb.EJBException: nested exception is: java.lang.NullPointerException
at com.sun.ejb.containers.EntityContainer$EntityContextFactory.create(EntityContainer.java:2607)
at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:176)
at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:133)
at com.sun.ejb.containers.EntityContainer.getPooledEJB(EntityContainer.java:1896)
at com.sun.ejb.containers.EntityContainer.getContext(EntityContainer.java:560)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:452)
at gem.purchasing.ejb.ecx.members.EcxMembersEBEJB_1077136325_ConcreteImpl_RemoteHomeImpl.create(EcxMembersEBEJB_
1077136325_ConcreteImpl_RemoteHomeImpl.java:24)
at gem.purchasing.ejb.ecx.members._EcxMembersEBHome_Stub.create(Unknown Source)
at gem.purchasing.util.ecx.EcxSupplierDefaultPopulate.create(EcxSupplierDefaultPopulate.java:189)
at gem.purchasing.util.ldapservices.DlcuPersistenceHelper.insertEcxData(DlcuPersistenceHelper.java:997)
at gem.purchasing.ejb.ldapservices.ValidatorEJB.sendToMapper(ValidatorEJB.java:981)
at gem.purchasing.ejb.ldapservices.ValidatorEJB_EJBObjectImpl.sendToMapper(ValidatorEJB_EJBObjectImpl.java:112)
at gem.purchasing.ejb.ldapservices._ValidatorEJB_EJBObjectImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:569)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:211)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
INFO: CORE3282: stdout: **FROM DPH @ ecxLoad.create : java.lang.Exception: EcxSupplierDefaultPopulate calling ejb (creat
ing member): java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
INFO: CORE3282: stdout: java.rmi.RemoteException: nested exception is: java.lang.NullPointerException; nested ex
ception is:
INFO: CORE3282: stdout: java.lang.NullPointerException
Any help would be greatly appreciated.
Cheers,
Michael.app_DLCU: There were no failed tests.
dlcuModule: There were no failed tests. -
Installing Access Manager under App Server platform
We have done an install of Access Manager 2005Q1 under App Server platform edition 2005Q1 (v8.1) on Linux Redhat Enterprise edition (v3).
When starting up Access Manager, we get a NoClassDefFound exception. Some postings mention some issues with the SUN mobile access, and suggest uninstalling / reinstalling, but these seem to apply to Solaris only. We have had no luck with this suggestion with Linux.
Does anyone have any other suggestions?
Thanx,
GB
[#|2005-09-14T10:50:34.118-0700|SEVERE|sun-appserver-pe8.1_01|javax.enterpri
se.system.container.web|_ThreadID=10;|WebModule[/a
mserver]Exception starting filter amlcontroller
java.lang.NoClassDefFoundError
at com.iplanet.services.ldap.LDAPUser.getPasswd(LDAPUser.java:117)
at
com.iplanet.services.ldap.ServerInstance.getPasswd(ServerInstance.java:128)
at
com.sun.identity.security.ServerInstanceAction.run(ServerInstanceAction.java
:92)
at java.security.AccessController.doPrivileged(Native Method)
at com.iplanet.ums.DataLayer.getInstance(DataLayer.java:210)
at
com.sun.identity.sm.ldap.SMSLdapObject.initialize(SMSLdapObject.java:143)
at
com.sun.identity.sm.ldap.SMSLdapObject.<init>(SMSLdapObject.java:118)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at com.sun.identity.sm.SMSEntry.<clinit>(SMSEntry.java:116)
at
com.sun.identity.sm.ServiceSchemaManager.<clinit>(ServiceSchemaManager.java:
67)
at
com.iplanet.am.util.AMClientDetector.getServiceSchemaManager(AMClientDetecto
r.java:219)
at
com.iplanet.am.util.AMClientDetector.<clinit>(AMClientDetector.java:94)
at com.sun.mobile.filter.AMLController.init(AMLController.java:85)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
Config.java:229)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
terConfig.java:312)
at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterCon
fig.java:83)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:38
81)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4528)
at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:833)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:483)
at org.apache.catalina.startup.Embedded.start(Embedded.java:894)
at com.sun.enterprise.web.WebContainer.start(WebContainer.java:707)
at
com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:507)
at
com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifec
ycle.java:54)
at
com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java
:300)
at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
|#]Everytime I click the Access Manager in the JES 2005Q4installer the directory server would click itself. Unchecking this prompted me for a remote repository which worked.
I wasn't able to get the install to complete with the state file, it stopped before configuring access manager. -
i have a problem reinstalling apps that were on my iphone also updating apps that need an update buth of them won't work.
this is a problem on my iphones and ipadHi Pankaj jain1234,
If you appear to be missing default apps like the iTunes Store or App Store on your iPad, you may want to check to make sure Restrictions haven't been turned on. You may find the following article helpful:
iOS: Understanding Restrictions (parental controls)
http://support.apple.com/kb/ht4213
Regards,
- Brenden -
TS3960: Server App or Server Admin can't connect to a newly upgraded Lion server
same problem with mavericks server app....tried additional info solution did not work..any suggestions?
All log in info is correct. will not accept worked fine on 10.8 just upgraded to 10.9 and will not work. deleted and reinstalled server app 3.0.1Figured it out....went to server...settings...check allow remote administration using Server
-
Problem Re-Installing Sun One App Server 7 on Solaris 8
I will try my best to describe my problem.
I successfully installed Sun One App Server 7 Standard Edition on Solaris 8. It was installed on a mounted secondary hard disk. That hard disk has since gone bad. I bought a new hard disk and have that mounted.
I want to install Sun One App Server 7 again. I am installing through the GUI, but do not the options to install the server even though it is completely gone. I guess the installer seems to think that the product is already installed, even though the previous hard disk with all of the application server files are gone. Is there any way to uninstall or remove the installed status of the application server so I can reinstall?
Thanks.Thanks! I tried the prodreg tool and found the Application Server node, and clicked Uninstall. It went through an uninstall process. Even though it came back with an error, the re-install process after worked great. Thanks again.
-
Office Web Apps Server 2013 - Word Web App - Problem with Tab space
Hello We have Office Web Apps Server 2013 running with SharePoint 2013. Users Editing a Word document with Office Web Apps, can't use "Tabs", any Word document with Tabs; the tabs are replaced with a single space.
Has anyone noticed this? Is this a bug?
-thanks
thomas
-TomYes, currently the Word Web App does not support
Tab Keyboard shortcut for editing document content .
For more information, you can have a look at
the article:
http://office.microsoft.com/en-us/office-online-help/keyboard-shortcuts-in-word-online-HA010378332.aspx?CTT=5&origin=HA010380212
http://social.technet.microsoft.com/Forums/en-US/3f5978d3-67a1-4c8c-981f-32493d72610b/office-web-apps-server-2013-word-web-app-problem-with-tab-space?forum=sharepointgeneral -
Problem with READ DATASET when reading file from app server
Hi,
wondering if anyone can help, I'm using the following code to read from a file on app server, the file is of type .rtf
OPEN DATASET file_rtf FOR INPUT IN TEXT MODE
ENCODING DEFAULT
WITH SMART LINEFEED.
DO.
READ DATASET file_rtf INTO string.
IF SY-SUBRC = 0.
EXIT.
ENDIF.
ENDDO.
the open dataset part works sy-subrc = 0, but the read returns sy-subrc = 8 and no data is passed to string.
Any ideas as to what is causing this problem appreciated, <removed>
Thanks
Edited by: Thomas Zloch on Mar 17, 2010 3:57 PM - please don't offer p...Hi Adam,
The source code in the below link has details about how to read/write to application server.
[Application server file operartions|http://www.divulgesap.com/blog.php?p=NDk=]
Please let us know if you have any issues.
Regards,
Ravi -
Deployement problem in Oracle App Serv with hibernate + JPA and Spring
Dear All,
I am facing a problem in deployment of a web application in oracle application server 10g. but the same is working fine with Tomcat. The following Exception. Is being thrown.
Failed to deploy web application "OraTest". Failed to deploy web application OraTest". . Nested exception Resolution:
Base Exception:
java.rmi.RemoteException
deploy failed!: ; nested exception is:
oracle.oc4j.admin.internal.DeployerException: Unknown assembly root-tag attribute: version. deploy failed!: ; nested exception is:
oracle.oc4j.admin.internal.DeployerException: Unknown assembly root-tag attribute: version I am using the following technologies
1. Spring 2.0.7
2. Struts 2.0.9
3. Hibernate 3.3
4. JPA 1.0
5. Oracle App Server 10.1.2.0.2
Web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>My Application</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>/index.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>dwr-invoker</servlet-name>
<servlet-class>
org.directwebremoting.servlet.DwrServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>dwr-invoker</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/conf/spring/datasource-context.xml,
/WEB-INF/conf/spring/aop-context.xml
</param-value>
</context-param>
</web-app>
/Datasource-context.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
<bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" lazy-init="true"/>
<!-- following code is for using oracle -->
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource" lazy-init="true">
<property name="driverClassName">
<value>oracle.jdbc.driver.OracleDriver</value>
</property>
<property name="url">
<value>jdbc:oracle:thin:@//xxx.xxx.xxx.xxx/mydb</value>
</property>
<property name="username">
<value>admin</value>
</property>
<property name="password">
<value>admin</value>
</property>
</bean>
<!-- following code is for using mysql -->
<!--
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource" lazy-init="true">
<property name="driverClassName">
<value>org.gjt.mm.mysql.Driver</value>
</property>
<property name="url">
<value>jdbc:mysql://192.168.10.157:3306/tpsadmin</value>
</property>
<property name="username">
<value>tpsadmin</value>
</property>
<property name="password">
<value>tpsadmin</value>+
</property>
</bean>
-->
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" lazy-init="true">
<property name="persistenceUnitName" value="mkclsetsPersistenceUnit"/>
<property name="dataSource" ref="dataSource"/>
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" lazy-init="true">
<property name="database" value="ORACLE"/>
<property name="showSql" value="true"/>
</bean>
</property>
</bean>
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager" lazy-init="true">
<property name="entityManagerFactory" ref="entityManagerFactory"></property>
</bean>
<tx:annotation-driven transaction-manager="transactionManager"/>
</beans>Aop-context.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
<!-- Bean Definition of all the required Interceptors -->
<bean id="methodLoggingAdvice" class="com.mkcl.sets.common.interceptor.MehodLogInterceptor"/>
<!--
<bean id="appCacheManager" class="net.sf.ehcache.CacheManager">
<constructor-arg index="0" type="java.net.URL" value="classpath:country-ehcache.xml"/>
</bean>
-->
<!--bean id="methodCacheInterceptor" -->
<bean id="methodCachingAdvice"
class="com.mkcl.sets.common.interceptor.MethodCacheInterceptor">
<property name="cache">
<ref local="methodCache" />
</property>
</bean>
<bean id="cacheManager"
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
<property name="configLocation">
<value>WEB-INF/conf/other/ehcache.xml</value>
</property>
</bean>
<bean id="methodCache"
class="org.springframework.cache.ehcache.EhCacheFactoryBean">
<property name="cacheManager">
<ref local="cacheManager" />
</property>
<property name="cacheName">
<value>mkclSetsCache</value>
</property>
</bean>
<!--
<bean id="methodCachingAdvice" class="interceptor.MethodCachingInterceptor"/>
-->
<aop:config>
<aop:pointcut id="getCountriesPointCut" expression="execution(* com.mkcl.sets.dao.master.impl.LocationDAOImpl.getCountries())"/>
<!-- <aop:pointcut id="methodLogPointCut" expression="execution(* com.mkcl.sets.service.master.impl.CategoryServiceImpl.getAllCategories(..))"/> -->
<aop:pointcut id="methodLogPointCutDao" expression="execution(* com.mkcl.sets.dao..*.*(..))"/>
<aop:pointcut id="methodLogPointCutService" expression="execution(* com.mkcl.sets.service..*.*(..))"/>
<aop:advisor id="methodCachingAdvisor" advice-ref="methodCachingAdvice" pointcut-ref="getCountriesPointCut"/>
<aop:advisor id="methodLoggingAdvisorDao" advice-ref="methodLoggingAdvice" pointcut-ref="methodLogPointCutDao"/>
<aop:advisor id="methodLoggingAdvisorService" advice-ref="methodLoggingAdvice" pointcut-ref="methodLogPointCutService"/>
</aop:config>
</beans>Persistence.xml
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="mkclsetsPersistenceUnit" transaction-type="RESOURCE_LOCAL">
<!-- jta-data-source>mkclDS</jta-data-source-->
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<!-- properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.OC4JTransactionManager"/>
</properties-->
</persistence-unit>
</persistence>Do I need to add some other configuration in the existing files or do I need to add some other configuration files ? Please help to deploy my application.
Thanks a lot in advance.
With Best Regards,
Ishaan
nullDid you ever find a solution to this Ishaan?
I imagine you ended up having to upgrade 10gR2 to 10gR3 at least. Correct? -
Problem with Connection to SQL Server via Servlet (in iPlanet 6 App Server)
Hi ,
I am using the iPlanet ApplicationServer 6.0 SP2 for development & testing of an internet application.
I am facing a problem when I am trying to connect to MS SQL SERVER via the native jdbcodbc driver (obdc32.dll). The error is something like this :
[26/Jul/2001 11:50:35:7] warning: DriverConnect: (28000): [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '\'.(DB Error: 18456)
[26/Jul/2001 11:50:35:7] warning: ODBC-027: CreateConn: failed to create connection [new connection]: DSN=fadd,DB=cashbook,USER=test,PASS=xxxxxxxxx
[26/Jul/2001 11:50:35:7] error: DATA-108: failed to create a data connection wit
h any of specified drivers
Error in connecting to the Database for cirrus :java.sql.SQLException: failed to
create a data connection with any of specified drivers
java.sql.SQLException: failed to create a data connection with any of specified
drivers
at com.netscape.server.jdbc.Driver.afterVerify(Unknown Source)
at com.netscape.server.jdbc.Driver.connect(Unknown Source)
at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source)
at gefa.util.DBConnection.jdbcConnectionOpen(DBConnection.java:65)
at gefa.servlet.ServUpload.doPost(ServUpload.java:45)
at gefa.servlet.ServUpload.doGet(ServUpload.java:29)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
wn Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)
I have configured a DSN with the name "fadd" on the machine with the application server and it used NT authentication. I have supplied an NT userid and password that has appropriate rights on the database "cashbook".
When I write a java standalone program, it does connect but via a servlet it does not connect.
Can some guide me with this problem please ?
Anything one might have observed in the past ? (may be specific to iPlanet ?)
Thanks a lot in advance
~SunilI'm using iPlanet App server as well and experiencing similar problem. I load my SQL Server driver by Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"), then use DriverManager.getDriver() to obtain the Driver.
However, the Driver returned is not the SQLServerDriver as expected. The Driver returned is com.netscape.server.jdbc.Driver! And then when I do Driver.getConnection("jdbc:microsoft:sqlserver://MyServer"), it throws an SQLException saying that it doesn't accept a jdbc:microsoft:sqlserver subprotocol. Well, of course it doesn't, it's not a microsoft Driver at all.
I suspect the problem is that the netscape Driver's acceptsURL() method ALWAYS returns true in iPlanet app server, thus when you getDriver(), the netscape Driver is always returned (and always returned as the first one since it's default?). Thus even though the same piece of code works fine as a standalone application, it just doesn't work on iPlanet app server.
My work around is:
Class.forName("my.Driver");
Enumeration enu = DriverManager.getDrivers();
Driver useThis = null;
while (enu.hasMoreElements()) {
Driver d = (Driver)enu.nextElement();
if (d.getClass().toString().indexOf("my.Driver") > -1) {
useThis = d;
Mind that my above code does not have an performance issue. If you look into the source code of how DriverManager get a Driver for a particular URL, it also loads the whole set of available Drivers, then call acceptsURL() method on each of them to find the first "suitable" one. Thus time complexity is the same.
I know this is not a very elegant solution and it defeats the purpose of having a DriverManager. Does any one else has a better way to solve this problem, like a way to specify the priority of each Driver so that SQLServerDriver is returned before the netscape Driver?
Thanks a lot. -
App server HTTP install problem
Trying to install the 9i app server on SuSE 7.1 gives a javacore dump almost immediately that ends with the heading "Object Monitor Status".
Any ideas what is wrong?
Thanks,
DanMost likely there is a problem in your configuration, such that the admin service could not get started (didn't you originally get a 505 error?) Check your logs: admin and Tomcat (usually catalina.log) for any errors and fix the problems indicated in the logs.
-
I have sun app server v8 installed on a winXP Pro laptop (I just want to take the J2EE tutorial). My problem is that when I bring up a command prompt and type asadmin to start the app server it gives me error "The system cannot find the path specified". When I echo the PATH variable I see "C:\Sun\AppServer\bin" in there (which corresponds to the directory on my machine with file asadmin.bat in it). It's interesting that when I type "asant" I get this message:
C:\Sun\AppServer\bin>asant
Warning: JAVA_HOME environment variable is not set.
If build fails because sun.* classes could not be found
you will need to set the JAVA_HOME environment variable
to the installation directory of java.
Buildfile: build.xml does not exist!
Build failed
C:\Sun\AppServer\bin>
I did upgrade my jdk from 1.4 to 1.5 so maybe that's the problem although my JAVA_HOME is set to "C:\Program Files\Java\jdk1.5.0_01" which is the correct dir for my java install.
I can't even type "asant.bat" in directory "C:\Sun\AppServer\bin" either so I'm really confused as to what's going on.
Any ideas? Much appreciatedsame thing happened to me...I set the JAVA_HOME value correctly..rechecked it using echo...
but I recvd the same mesg...cannot find path...
I then went to the desktop...right clicked on the my computer icon--->-Properties--->advanced----->environment_variables...
There when I checked the JAVA_HOME value it was different..why?......
I changed the value again and it worked...:) try it though I didnt know what was wrong ..why it wasnt set when I set it from the cmd prompt
Maybe you are looking for
-
Can i install flash drive in mid-2009 macbook pro
I want to increase the storage on my MacBook pro - mid-2009. I use Final Cut so there are demands. Must I stay with a spinning drive or can I install a large flash drive? I big can I go? 2.26 ghz, 8 gigs ram, running latest Mountain Lion (10.8.2) Tha
-
The email account name contains special characters
im trying to create a apple id without payment method for my cousin. his email does not contains any special character and it's a valid email...my problem is that "the email account name contains special characters" message is always showing..any hel
-
Acrobat 9.0 - bookmarks disappear
This just started happening and I'm not sure why. When I click on a bookmark, all of the bookmarks disappear. I have to keep reopening the bookmarks to see them every time I click on one. I use this feature extensively so it's more than a minor nuisa
-
SX50 HS. Dark smudge appearing on my pictures when in C1 and C2 modes at 50x zoom
I have owned a Canon SX50 HS for nearly a year now and have noticed a dark smudge has appeared top right on some of my photos. It only happens on C1 and C2 settings when zooming out to 50X. It has not appeared on other settings (YET). It has also see
-
I was printing a Microsoft Excel document when I got the message that the program has unexpectedly quit, Now I can't even open Word or Excel, Any suggestions or help would be greatly appreciated. Thanks in advance