J2EE App Server with virtual servers

H! !
I have a Win2K with J2EE App Server 1.4. Everything is working fine. In this computer I stopped the IIS 5.0 in order to use the HTTP Server included with the product.
I also run the DNS on the same machine with 3 domains. All name resolutions for these 3 domains work fine.
Now I want to enter to any of the 3 domains freelyand execute JSP apps. But I don't want to enter ports numbers like this:
http://www.mytest.com:8081/hello.jsp
I just want to enter:
http://www.mytest.com/hello.jsp
So I defined a new http-port listener pointing to the 80 port on this server. With no SSL support.
Name: http-port80
IP Address: 0.0.0.0
POrt: : 80
Return server name: <blank> (Should I put here the name of the computer?)
Then I defined a new virtual server using the http-port listener. I set the following fields:
ID: mytest
Hosts: www.mytest.com (Should I put here the name of the computer?)
HTTP Listener: http-port80 (This is the name of the port listener)
Everything seems to be fine. I can enter http://www.mytest.com and call the hello.jsp it's ok.
But then I create a new virtual server for http://www.mytest2.com exactly as the one for the www.mytest.com, except for the host field: http://www.mytest2.com
Then when I restart the app server I got the message on the log: "Port already in use".
I want to use the same http-listener because I don't want to enter http://www.mytest2.com:<port>
Any ideas how to handle this?
Am I doing something wrong on the configuration?
Thank you very much!!

What I want is to enter to any of the 3 domains freely and execute JSP apps. But I don't want to enter ports numbers like this:
http://www.mytest.com:8081/hello.jsp
I just want to enter:
http://www.mytest.com/hello.jsp
As far as I understand only by having an http-listener linked to the virtual web server I can achieve this goal, right? Or Am I on the wrong direction?

Similar Messages

  • Help with J2EE SDK 1.4 Virtual Servers please!

    H!
    Are we doomed to have just one virtual server pointing to port 80??
    I have a Win2K computer with J2EE App Server 1.4. In this computer I stopped the IIS 5.0 in order to use the HTTP Server included with the product. I also run the DNS on the same machine with 3 domains. All name resolutions for these 3 domains work fine.
    Now I want to enter to any of the 3 domains freely and execute JSP apps. But I don't want to enter ports numbers like this:
    http://www.mytest.com:8081/hello.jsp
    I just want to enter:
    http://www.mytest.com/hello.jsp
    So I defined a new http-port listener pointing to the 80 port on this server. With no SSL support.
    Name: http-port80
    IP Address: 0.0.0.0
    POrt: : 80
    Then I defined a new virtual server using the http-port listener. I set the following fields:
    ID: mytest
    Hosts: www.mytest.com
    HTTP Listener: http-port80 (This is the name of the port listener)
    Everything seems to be fine. I can enter http://www.mytest.com and call the hello.jsp it's ok.
    But then I create a new virtual server for http://www.mytest2.com exactly as the one for the www.mytest.com, except for the host field: http://www.mytest2.com
    Then when I restart the app server I got the message on the log: "Port already in use".
    I don't want to enter http://www.mytest2.com:<port> but I've read that you cannot assign the same http-listener to 2 virtual servers, so I created another listener pointing to the same port 80. But I still have the same error.
    Any ideas how to handle this?
    Am I doing something wrong on the configuration?
    Thank you very much!!

    I can help you out with this, because I just solved this problem using the Apache web server 2.0 with mod_proxy and mod_proxy_http.
    this is how the configuration works.
    setup sunone creating one virtual host for each http-listener on a different port. and make sure these ports are any port except the 80. -- we will configure apache on this port and then use it as a reverse proxy to get to our hosts.
    like this
    virtual-listener-1 - port 8081
    virtual-listener-2 - port 8082
    virtual-listener-3 - port 8083
    virtual-host-1: www1.domain.com bind to: virtual-listener-1
    virtual-host-2: www2.domain.com bind to: virtual-listener-2
    virtual-host-3: www3.domain.com bind to: virtual-listener-3
    now download apache with all the modules http://www.apache.org
    in your httpd.conf add the following lines of code.
    #the code below will tell apache to enable the proxy for your host
    <IfModule mod_proxy.c>
    # Proxy Server directives. Uncomment the following lines to
    # enable the proxy server:
    ProxyRequests On
    <Proxy *>
    Order deny,allow
    Deny from all
    Allow from www1.domain.com
    Allow from www2.domain.com
    Allow from www3.domain.com
    </Proxy>
    # Enable/disable the handling of HTTP/1.1 "Via:" headers.
    # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
    # Set to one of: Off | On | Full | Block
    ProxyVia On
    # End of proxy directives.
    </IfModule>
    NameVirtualHost *:80
    <VirtualHost *:80>
    ServerName www1.domain.com
    <Location />
    Order allow,deny
    Allow from all
    ProxyPass http://sunoneserver:8081/
    </Location>
    </VirtualHost>
    <VirtualHost *:80>
    ServerName www2.domain.com
    <Location />
    Order allow,deny
    Allow from all
    ProxyPass http://sunoneserver:8082/
    </Location>
    </VirtualHost>
    <VirtualHost *:80>
    ServerName www3.domain.com
    <Location />
    Order allow,deny
    Allow from all
    ProxyPass http://sunoneserver:8083/
    </Location>
    </VirtualHost>
    note the sunone server indicates the server where you installed sunone-as (J2EE 1.4). this will give you the result you are looking for: all three of these sites will run on port 80 and each of them will respond to a different web application on sunone.
    there are naturally limits because when you run out of ports on your application server this won't work any more but then again there are about 60000 of those free and i don't think you will be able to run that many sites on one server anyway.
    Chris.

  • J2EE app server not able to compile JSP

    Hi,
    I have just installed J2EE app server and am trying to deploy a JSP. The following error is generated. can anyone help me please.
    Thank you,
    Deepika.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    No Java compiler was found to compile the generated source for the JSP.
    This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
    to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
    If using an alternate Java compiler, please check its installation and access path.
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:348)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:424)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:448)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:551)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200)

    This is a known issue.
    Here's an explanation of the behaviour you are seeing:
    The misleading error message is printed only in the case where a javac
    compilation error line number cannot be mapped back to a line number
    in the JSP source code.
    The internal representation of a JSP element ("JSP node") in the JSP compiler
    contains the following info:
    - The begin line number of the JSP element in the JSP page
    - The begin and end line numbers ("range") of the Java code that was
    generated for the JSP element
    When attempting to map a javac error line number back to the JSP
    source line, we determine the range into which the javac error line
    number falls, and retrieve the JSP source number of the JSP element
    associated with that range.
    However, in some cases, it is impossible to trace a javac error line
    number back to the JSP element that caused the error. For example,
    consider the following scriptlet:
    <%
    String query = request.getParameter("query");
    if(query != null) {
    out.println(query);
    } else {
    out.println("(null)");
    // } // <-- !Missing brace syntax error
    %>
    Since the JSP compiler wraps the generated code into a
    try-catch-finally block, the above syntax error in the scriptlet
    causes havoc with that try-catch-finally block, and results in 3 javac
    errors:
    <file>jsp.java:<line1>: 'catch' without 'try'
    } catch (Throwable t) {
    ^
    <file>jsp.java:<line2>: 'try' without 'catch' or 'finally'
    try {
    ^
    <file>jsp.java:<line3>: '}' expected
    Notice that all of the above javac error numbers are outside the range
    of the java line numbers corresponding to the scriptlet that caused the
    error, and therefore cannot be mapped back to any line numbers in the
    JSP page source.
    AS 8.0 PE does not handle this case correctly, and prints out the
    misleading error message (though the real error message can be found
    in the server log).
    Notice that this problem is going to be fixed in AS 8.1, so that if a
    javac error line number cannot be mapped back to a JSP page line
    number, the javac error is still returned to the client.
    In AS 8.0 PE, you need to check your server log to find out why the compilation failed.
    If you still have any problems, send me your JSP, and I will take a look at it.
    Thanks,
    Jan

  • Can I use Oracle app server with mysql

    Can I use Oracle app server with mysql. I seem to have the following error when trying to create a datastore. I have mysql.jar in my classpath. Can any one tell me what's wrong.
    Error initializing data-source 'jdbc/topup': DriverManagerDataSource driver 'org.gjt.mm.mysql.Driver' not found

    Yes you can forward requests from your own apache to the iAS. This can be done using mod_proxy. Some hints about how to do this are availlable on this forum.
    mod_oc4j is not a standard apache module, and therefore is not availlable when you download apache. There is no apparent reason to use mod_oc4j on a "regular" webserver (unless you want to build your own iAS). Also there might be some licenseing issues with using mod_oc4j module on a standard apache.
    You can encrypt data that is passed from a random Apache to you iAS.

  • Security Exception deploying to App Server with Creator

    I'm trying to deploy a Spring/Hibernate application to the default app server with creator. I'm getting an exception which seems to be related to security settings on the server and the cglib library that Hibernate requires. Below is the full stack trace. Does anyone know what I can do to solve this problem? I had a brief look at the server.policy file but don't know what to modify or if I need to modify it at all.
    When I deploy the .war to Tomcat, I do not receive this exception.
    Thanks!
    Mike
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.ExceptionInInitializerError: null
    java.lang.ExceptionInInitializerError
    at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:167)
    at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
    at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:215)
    at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
    at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
    at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
    at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
    at net.sf.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:237)
    at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:805)
    at org.springframework.orm.hibernate.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:535)
    at org.springframework.orm.hibernate.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:470)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1065)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:343)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:276)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:317)
    at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:131)
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:224)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:150)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4010)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4522)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:827)
    at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:125)
    at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:147)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:809)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1279)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1006)
    at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:160)
    at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:238)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:918)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:905)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:427)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)
    at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:288)
    at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:155)
    at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:258)
    at com.sun.enterprise.deployment.phasing.StartPhase.runPhase(StartPhase.java:87)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:361)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:396)
    at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:702)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:302)
    at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:357)
    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
    at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
    at $Proxy1.invoke(Unknown Source)
    at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
    at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
    at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission getProtectionDomain)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
    at java.security.AccessController.checkPermission(AccessController.java:427)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    at java.lang.Class.getProtectionDomain(Class.java:2074)
    at net.sf.cglib.core.ReflectUtils$1.run(ReflectUtils.java:42)
    at java.security.AccessController.doPrivileged(Native Method)
    at net.sf.cglib.core.ReflectUtils.<clinit>(ReflectUtils.java:40)
    ... 98 more

    Try this:
    //Required permissions for Hibernate
    grant codeBase "file:/path-to-web-project/Creator-project-name/build/web/-"{
    permission java.util.PropertyPermission "*", "read,write";
    permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
    permission java.lang.RuntimePermission "accessDeclaredMembers";
    permission java.lang.RuntimePermission "getProtectionDomain";
    };Replace path-to-web-project with the path to your project's folder. For example,
    file:/C:/Documents and Settings/localuser/My Documents/Creator/MyCreatorProject/build/web/-

  • EJB Deployment in J2EE Apps Server

    Hi,
    Can any one please help me in deploying EJB in J2EE Apps server?I have installed J2EE Apps Server 9 in my machine.Can any one please suggest me a document regarding EJB deployment in J2EE apps server or help me regarding this?
    Thanks in advance,
    Aravindhan.C

    Go to https://j2ee-sdk.dev.java.net/ and checkout "Methods of deploying applications" under the recent articles section; The tutorial link present in this page (under the references section) will also be useful. The samples bundle has reference samples which will also be useful

  • App Server 9 - virtual server listener

    Problem - getting 'Already bound: 80' if virtual server using 2 IP's
    Yes, I know the answer to the question is...
    There MUST be something else bound to port 80 - but there ISN'T.
    Pretty 'basic' stuff. But, after 2 days work, I am
    unable to configure with 2 different IP's - I know it
    'should work' - but curious if anyone can confirm it DOES work?
    fresh install OS & Application Server
    Sparc Solars 11/06, Sun V210
    Java Aplication Platform SDK-5 Update 3
    DNS: (x's are valid IP address)
    x.x.x.34 -> web30.domainabc.com - machine primary IP bge0
    x.x.x.35 -> www.domaindef.com - 2nd IP bge0:1
    ======== WORKS ==== (listens to all IP's)
    listeners...
    admin-listener true 0.0.0.0 8444 __asadmin
    http-listener-2 true 0.0.0.0 443 server
    http-listener-1 true 0.0.0.0 80 server
    virtual servers...
    server http-listener-1,http-listener-2
    __asaadmin admin-listener
    domaindef http-listener-1
    ======== DOES NOT WORK ====
    listeners...
    admin-listener true x.x.x.34 8444 __asadmin
    http-listener-2 true 0.0.0.0 443 server
    http-listener-1 true x.x.x.34 80 server
    http-domaindef true x.x.x.35 80 domaindef
    virtual servers...
    server http-listener-1,http-listener-2
    __asaadmin admin-listener
    domaindef http-domaindef
    netstat -a ONLY shows domainabc.com using port 80
    NOTHING else is using port 80
    Server will not restart - server log shows:
    grizzlyHttpProtocol.endpoint.initerror
    java.net.BindException: Already bound: 80
    WHILE in Admin, if 'Enable' listener http-domaindef
    it WORKS - but netstat shows the server 'clobbered' the x.x.x.34:80
    and is only running the x.x.x.35:80 listener instead
    [#|2007-04-16T17:09:44.261-0400|SEVERE|sun-appserver9.1|org.apache.catalina.core.StandardService|_ThreadID=22;_ThreadName=httpWorkerThread-8444-1;_RequestID=ea8003f3-d4df-40bd-a403-558f4f6928a2;|Connector.initialize
    LifecycleException: PWC3985: Protocol handler initialization failed: java.net.BindException: Already bound: 80
    at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1592)

    You are mixing version.
    EJB 2.0 is part of J2EE 1.3.
    EJB 2.1 is part of J2EE 1.4.
    Oracle Application Server 9.0.4 supports J2EE 1.3
    There is also a preview of the J2EE 1.4 version.
    Both can be found here:
    http://www.oracle.com/technology/tech/java/oc4j/index.html

  • JDK1.5.0_12 crash when I try to startup a tomcat app server with it.

    Hi,
    I am support a Blackboard application running on a PrimePower box.
    Recently I installed JDK1.5.0_12 on the box. When I re-configured Blackboard to use the new JDK and tried to restart the server, the tomcat portion will keep getting the JVM Hotspot crash error as illustrated below.
    The startup is invoked from a shell script that starts the web server as well as the tomcat (app) server. As long as the root partition has enough diskspace, the script will try to "start" the tomcat server.
    The JVM will keep throwing core dumps and issuing messages like the following, with each core dump taking about 100 to 150MB in space from the root partition.
    Only when there isn't enough space in the root partition for another core dump, did I notice that it stopped.
    My sys admin has since cleaned up the dump files and I have reverted back to the earlier minor release of JDK1.5.0.
    I have used ldd -r libjvm.so and the command could return me the list of libraries that the libjvm.so depends on (not a problem with the loading of the dynamic libraries and such).
    I have submitted the JVM crash report. But no one has gotten back to me.
    Has anyone encountered the same problems / have any suggestions on what could be cause and how to resolved this?
    Thanks.
    Regards,
    Hon Peng.
    =============================
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0xfea84b00, pid=13715, tid=1
    # Java VM: Java HotSpot(TM) Server VM (1.5.0_12-b04 mixed mode)
    # Problematic frame:
    # V [libjvm.so+0x284b00]
    --------------- T H R E A D ---------------
    Current thread (0x00036e20): JavaThread "main" [_thread_in_vm, id=1]
    siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x57726974
    Registers:
    O0=0x00000000 O1=0x00000000 O2=0x0000015c O3=0x00000000
    O4=0x0000015c O5=0x0000015c O6=0xffbfe6f8 O7=0x0000015c
    G1=0x00000000 G2=0x0000015c G3=0x0000015c G4=0x00000000
    G5=0x00000000 G6=0x00000000 G7=0xff350000 Y=0x00000000
    PC=0xfea84b00 nPC=0xfea84b04
    Top of Stack: (sp=0xffbfe6f8)
    0xffbfe6f8: 000373fc 57726974 000adfb0 ff028d48
    0xffbfe708: 00032778 fefdc000 001b3990 b4805210
    0xffbfe718: ffbfe84c 00000000 00000000 ff010c40
    0xffbfe728: 00009c00 80000000 ffbfe7e8 fea84674
    0xffbfe738: 00000000 e3908660 ffbfe7c0 f900587c
    0xffbfe748: b4a64018 007f9a80 ffbfe7b4 b4a5e2c5
    0xffbfe758: ffbfe7b8 ffbfe8e0 f9015b04 00000000
    0xffbfe768: 00000000 f900576c b4a64018 007f9a80
    Instructions: (pc=0xfea84b00)
    0xfea84af0: 80 a5 a0 00 04 40 00 15 b4 10 20 00 e2 04 a0 08
    0xfea84b00: d4 04 60 00 d2 04 60 04 8b 2a b0 20 88 12 40 05
    Stack: [0xffb80000,0xffc00000), sp=0xffbfe6f8, free space=505k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [libjvm.so+0x284b00]
    V [libjvm.so+0x28467c]
    j java.lang.Object.notify()V+0
    j blackboard.util.Queue.put(Ljava/lang/Object;)V+19
    j blackboard.platform.log.impl.QueuedLogger.doLogMessage(Ljava/lang/String;)V+77
    j blackboard.platform.log.impl.BaseLogger.log(Ljava/lang/String;Lblackboard/platform/log/LogService$Verbosity;)V+10
    j blackboard.platform.log.impl.BaseLogger.logInfo(Ljava/lang/String;)V+5
    j blackboard.platform.log.impl.BbLogServiceImpl.logInfo(Ljava/lang/String;)V+5
    j blackboard.platform.BbServiceManager.init(Ljava/io/File;Ljava/util/Properties;Z)V+249
    j blackboard.platform.BbServiceManager.init(Ljava/lang/String;Ljava/util/Properties;Z)V+44
    j blackboard.platform.ApplicationLauncher.main([Ljava/lang/String;)V+479
    v ~StubRoutines::call_stub
    V [libjvm.so+0x19b4dc]
    V [libjvm.so+0x2dd2cc]
    C [java+0x222c] main+0x1164
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j java.lang.Object.notify()V+0
    j blackboard.util.Queue.put(Ljava/lang/Object;)V+19
    j blackboard.platform.log.impl.QueuedLogger.doLogMessage(Ljava/lang/String;)V+77
    j blackboard.platform.log.impl.BaseLogger.log(Ljava/lang/String;Lblackboard/platform/log/LogService$Verbosity;)V+10
    j blackboard.platform.log.impl.BaseLogger.logInfo(Ljava/lang/String;)V+5
    j blackboard.platform.log.impl.BbLogServiceImpl.logInfo(Ljava/lang/String;)V+5
    j blackboard.platform.BbServiceManager.init(Ljava/io/File;Ljava/util/Properties;Z)V+249
    j blackboard.platform.BbServiceManager.init(Ljava/lang/String;Ljava/util/Properties;Z)V+44
    j blackboard.platform.ApplicationLauncher.main([Ljava/lang/String;)V+479
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x0037fbe8 JavaThread "FileLogSinkImpl Daemon" [_thread_blocked, id=15]
    0x0015ddc0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=13]
    0x0015c4e8 JavaThread "CompilerThread1" daemon [_thread_blocked, id=12]
    0x0015b670 JavaThread "CompilerThread0" daemon [_thread_blocked, id=11]
    0x0015a7f8 JavaThread "AdapterThread" daemon [_thread_blocked, id=10]
    0x001599e8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=9]
    0x0014d768 JavaThread "Finalizer" daemon [_thread_blocked, id=8]
    0x0014d228 JavaThread "Reference Handler" daemon [_thread_blocked, id=7]
    =>0x00036e20 JavaThread "main" [_thread_in_vm, id=1]
    Other Threads:
    0x0014ab40 VMThread [id=6]
    0x000aff90 WatcherThread [id=14]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
    [0x00032778/0x00035dd0] SignatureHandlerLibrary_lock - owner thread: 0x00036e20
    Heap
    PSYoungGen total 39424K, used 5458K [0xe3400000, 0xe6000000, 0xf8c00000)
    eden space 33792K, 16% used [0xe3400000,0xe3954b40,0xe5500000)
    from space 5632K, 0% used [0xe5a80000,0xe5a80000,0xe6000000)
    to space 5632K, 0% used [0xe5500000,0xe5500000,0xe5a80000)
    PSOldGen total 90112K, used 0K [0xb8800000, 0xbe000000, 0xe3400000)
    object space 90112K, 0% used [0xb8800000,0xb8800000,0xbe000000)
    PSPermGen total 16384K, used 4896K [0xb4800000, 0xb5800000, 0xb8800000)
    object space 16384K, 29% used [0xb4800000,0xb4cc83e8,0xb5800000)
    Dynamic libraries:
    0x00010000      /usr/local/jdk1.5.0_12/bin/java
    0xff370000      /usr/lib/libthread.so.1
    0xff3fa000      /usr/lib/libdl.so.1
    0xff280000      /usr/lib/libc.so.1
    0xff3a0000      /usr/platform/FJSV,GPUS/lib/libc_psr.so.1
    0xfe800000      /usr/local/jdk1.5.0_12/jre/lib/sparc/server/libjvm.so
    0xff240000      /usr/lib/libsocket.so.1
    0xff220000      /usr/lib/libsched.so.1
    0xff1f0000      /usr/lib/libCrun.so.1
    0xff1a0000      /usr/lib/libm.so.1
    0xff080000      /usr/lib/libnsl.so.1
    0xff170000      /usr/lib/libmp.so.2
    0xfe7e0000      /usr/local/jdk1.5.0_12/jre/lib/sparc/native_threads/libhpi.so
    0xfe7b0000      /usr/local/jdk1.5.0_12/jre/lib/sparc/libverify.so
    0xfe770000      /usr/local/jdk1.5.0_12/jre/lib/sparc/libjava.so
    0xfe740000      /usr/local/jdk1.5.0_12/jre/lib/sparc/libzip.so
    0xf8cd0000      /usr/local/jdk1.5.0_12/jre/lib/sparc/libj2pkcs11.so
    0xb3580000      /usr/lib/libpkcs11.so
    0xf8c50000      /usr/lib/libasn1.so
    0xb3400000      /usr/lib/libcmicmn.so
    0xb47a0000      /opt/FJSVsmee/lib/libinfoca.so
    0xf8f90000      /opt/FJSVsmee/lib/libinfocacom.so
    0xf8c30000      /opt/FJSVsmee/lib/libsctl15d.so
    VM Arguments:
    java_command: blackboard.platform.ApplicationLauncher -S ../config/update-tool-vm/install-tool-vm-servicedef.properties -A blackboard.apis.updatetools.CommandLineToolInvokerApp blackboard.apis.updatetools.tooldefs.install.ServiceControllerTool services.stop
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=/usr/local/jdk1.5.0_12
    CLASSPATH=
    PATH=/usr/local/blackboard/apps/openssl/bin:/usr/local/blackboard/apps/bbcms/bin:/usr/local/jdk1.5.0_12/bin:/usr/bin:/usr/ucb:/etc:/usr/local/bin:.
    LD_LIBRARY_PATH=/usr/local/jdk1.5.0_12/jre/lib/sparc/server:/usr/local/jdk1.5.0_12/jre/lib/sparc:/usr/local/jdk1.5.0_12/jre/../lib/sparc
    SHELL=/bin/ksh
    HOSTTYPE=sparc
    OSTYPE=solaris2.9
    MACHTYPE=sparc-sun-solaris2.9
    Signal Handlers:
    SIGSEGV: [libjvm.so+0x70cb50], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
    SIGBUS: [libjvm.so+0x70cb50], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
    SIGFPE: [libjvm.so+0x2743ac], sa_mask[0]=0x7fbffeff, sa_flags=0x0000000c
    SIGPIPE: [libjvm.so+0x2743ac], sa_mask[0]=0x7fbffeff, sa_flags=0x0000000c
    SIGILL: [libjvm.so+0x2743ac], sa_mask[0]=0x7fbffeff, sa_flags=0x0000000c
    SIGUSR1: [libjvm.so+0x67f5f0], sa_mask[0]=0x00000000, sa_flags=0x00000008
    SIGUSR2: [libjvm.so+0x2743ac], sa_mask[0]=0x7fbffeff, sa_flags=0x0000000c
    SIGHUP: [libjvm.so+0x67e22c], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
    SIGINT: [libjvm.so+0x67e22c], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
    SIGQUIT: [libjvm.so+0x67e22c], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
    SIGTERM: [libjvm.so+0x67e22c], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
    --------------- S Y S T E M ---------------
    OS: Solaris 9 4/04 s9s_u6wos_08a SPARC
    Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
    Use is subject to license terms.
    Assembled 22 March 2004
    uname:SunOS 5.9 Generic_118558-33 sun4us (T2 libthread)
    rlimit: STACK 8192k, CORE infinity, NOFILE 5120, AS infinity
    load average:0.05 0.12 0.16
    CPU:total 4 has_v8, has_v9, has_vis1, has_vis2, is_ultra3
    Memory: 8k page, physical 8388608k(6679936k free)
    vm_info: Java HotSpot(TM) Server VM (1.5.0_12-b04) for solaris-sparc, built on May 2 2007 02:33:21 by unknown with unknown Workshop:0x550

    Hi,
    Thanks for the reply. I have tried this on another machine running the same version of Blackboard. It works fine.
    Only difference is that the machine that has the JVM crash is running on Fujitsu PrimePower and the OS is Solaris 9 (but twigged for PrimePower).
    The one where it runs and starts up successfully is running on SunFire (OS is Solaris 10).
    I am wondering if there is a problem with the JVM loading required libraries because of the OS being different versions.
    Any leads on this is welcomed. Thank you.
    Regards,
    Hon Peng
    ===================
    On Fujitsu Primepower
    SunOS 5.9 Generic_118558-33 sun4us sparc FJSV,GPUS
    the Dependencies for libjvm.so are as follows:
    ===================
    bash-2.05$ ldd -r libjvm.so
    libsocket.so.1 => /usr/lib/libsocket.so.1
    libsched.so.1 => /usr/lib/libsched.so.1
    libdl.so.1 => /usr/lib/libdl.so.1
    libCrun.so.1 => /usr/lib/libCrun.so.1
    libm.so.1 => /usr/lib/libm.so.1
    libthread.so.1 => /usr/lib/libthread.so.1
    libc.so.1 => /usr/lib/libc.so.1
    libnsl.so.1 => /usr/lib/libnsl.so.1
    libmp.so.2 => /usr/lib/libmp.so.2
    /usr/platform/FJSV,GPUS/lib/libc_psr.so.1
    =====================================
    On SunFire, Sun machine
    SunOS 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-280R
    the dependencies are different for the libjvm.so:
    =====================================
    bash-2.05$ ldd -r libjvm.so
    libsocket.so.1 => /lib/libsocket.so.1
    libsched.so.1 => /usr/lib/libsched.so.1
    libdl.so.1 => /lib/libdl.so.1
    libCrun.so.1 => /usr/lib/libCrun.so.1
    libm.so.1 => /lib/libm.so.1
    libthread.so.1 => /lib/libthread.so.1
    libc.so.1 => /lib/libc.so.1
    libnsl.so.1 => /lib/libnsl.so.1
    libmp.so.2 => /lib/libmp.so.2
    libmd5.so.1 => /lib/libmd5.so.1
    libscf.so.1 => /lib/libscf.so.1
    libdoor.so.1 => /lib/libdoor.so.1
    libuutil.so.1 => /lib/libuutil.so.1
    /platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
    libm.so.2 => /lib/libm.so.2
    /platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1

  • MMS J2ee app made with JBOSS want to use it with JRUN

    Hello fellow developers,
    I am very interested in creating a small website for uploading photos from my cell phone to a j2ee app running on a JRUN 4 server.
    I've downloaded the J2, JSR-212 SAMS Messaging API EJB Reference Implementation, from the nokia site. II also down load an MMSC and SMSC simulator from NOkia, which I believe developers can use in conjunction with testing the above ejb web application.
    Briefly this is what I think is happening so far from reading tid bits here and there like the aritcle in Java Boutique.
    It seems todescribe the SAMS api as being generic enough to accept all clients that supply SPI, which I believe is the interface that verizon, cingular, or that some other cell phone service might provide. This interface allows the forwarding of a text message or media message to another operation ( like yahoo mobile). Thus, when I send my photo to a [email protected], it goes to the MMSC that communicates through SPI say a SAMS J2EE applicaiton running on yahoo, which presents my recently snapped cell phone photo in my yahoo phone album.
    I would like to test this J2ee app I download from nokia. However, in part of the instructions it claims that a person must down load JBOSS 4.0.
    Does any one know if this Nokia J2ee app for JBoss can be used on a JRUN 4?
    Can the NOKIA SMSC/MMSC simulator I downloaded work as well with JRUN4, as I notice the word JBOSS when I was installing this Simulator?
    Does anyone know where, I can get anymore information on SAMS and how to implement it in a simple J2ee app?
    When we can upload a cell phone photofrom the web browser of our phone than we will have arrived!.

    Hello fellow developers,
    I am very interested in creating a small website for uploading photos from my cell phone to a j2ee app running on a JRUN 4 server.
    I've downloaded the J2, JSR-212 SAMS Messaging API EJB Reference Implementation, from the nokia site. II also down load an MMSC and SMSC simulator from NOkia, which I believe developers can use in conjunction with testing the above ejb web application.
    Briefly this is what I think is happening so far from reading tid bits here and there like the aritcle in Java Boutique.
    It seems todescribe the SAMS api as being generic enough to accept all clients that supply SPI, which I believe is the interface that verizon, cingular, or that some other cell phone service might provide. This interface allows the forwarding of a text message or media message to another operation ( like yahoo mobile). Thus, when I send my photo to a myphone#@photo.yahoo.com, it goes to the MMSC that communicates through SPI say a SAMS J2EE applicaiton running on yahoo, which presents my recently snapped cell phone photo in my yahoo phone album.
    I would like to test this J2ee app I download from nokia. However, in part of the instructions it claims that a person must down load JBOSS 4.0.
    Does any one know if this Nokia J2ee app for JBoss can be used on a JRUN 4?
    Can the NOKIA SMSC/MMSC simulator I downloaded work as well with JRUN4, as I notice the word JBOSS when I was installing this Simulator?
    Does anyone know where, I can get anymore information on SAMS and how to implement it in a simple J2ee app?
    When we can upload a cell phone photofrom the web browser of our phone than we will have arrived!.

  • DB2 and AIX on p570 server with Virtual I/O Server

    Hi, All
    We are implementing a system landscape on IBM p5 570 servers and currently are planning of 3 LPARs with dual VIO-servers on each box.
    Have anybody expirience for this configuration in production systems ?
    Is there any DB2-specific problems for working with virtual SCSI volumes over VIO-server ?
    Is there any IBM/SAP whitepapers/technote for this ?
    Big thanks and sorry for my bad english

    We recently rolled-out 2 p550's configured with dual VIO servers each for redundancy. So far we have installed SAPs Solution Manager and Portals on top of DB2. At this point we are using internal SCSI disk but intend to use SAN disk in future.
    Performance has been good, although these are not yet Production systems. DB2 doesn't care about the virtual disk, since they appear as normal SCSI disks to the OS. I've seen it recommended NOT to use Virtualized disk in production, but I think this may be a CYA-type recommendation.
    There are a couple of White Papers from the "IBM SAP International Competence Centre" in Waldorf, that discuss SAP on AIX 5.3 and Power5. Sorry I don't have the links anymore.

  • SCCM 2007 Server with remote servers

    I'm working on a virtual lab envirement on a server 2008 R2.
    All the virtual servers run Wndows Server 2008 SP2 x86 full updated.
    1. Server: DC, DHCP, DNS and all that stuff.
    2. Server is a file share server for the network.
    3. Server is the SQL Server whit SQL Server 2005 SP2 atm.
    4. Server is the SCCM Server with WSUS SP2.
    My plan is to have SCCM installed on one server and then have 2 remote servers to that one. One to the SQL (already done) and one for the updates to SCCM WSUS function..
    Will that setup work?

    Will it work? Sure. Is it the best practice? no.
    John Marcum | Microsoft MVP - Enterprise Client Management
    My blog: System Center Admin | Twitter:
    @SCCM_Marcum | Linkedin:
    John Marcum

  • Using Office Web Apps Server with SharePoint Foundation 2013

    I want to know whether I can configure Office Web Apps server to edit Excel documents on a SharePoint Foundation 2013 site.
    I came across a TechNet article that states that "When used together with SharePoint Server 2013, Office Web Apps Server provides updated versions of Word Web App, Excel Web App, PowerPoint Web App, and OneNote Web App".
    However, later in the same article, it states "If your organization licenses Office 2013 through a Volume Licensing program, you can enable Office Web Apps editing for SharePoint 2013 on-premises" (without mentioning Foundation or Server).

    Hi Lemesnil,
    The Office Web App server should support the Edit licenses for SharePoin Foundation 2013, Office Web App is free to
    download, you can also try installing and configuring in a test environment, see more from the below article applied to SharePoint Foundation 2013.
    http://support.microsoft.com/kb/2886404/en-us
    http://blogs.technet.com/b/speschka/archive/2012/12/31/enabling-licensing-and-editing-for-office-web-apps-in-sharepoint-2013.aspx
    Anohter useful article aobut how to license Office Web App server, you can take a look.
    http://blogs.technet.com/b/volume-licensing/archive/2013/05/22/how-to-license-office-web-apps-server.aspx
    Thanks
    Daniel Yang
    TechNet Community Support

  • How to protect an application running on Apache Tomcat app server with OAM 11gR2

    Gurus,
    We have an Apache Tomcat based application named "ABCD" here at client site that we want OAM 11gR2 PS1 to integrate with for SSO purposes. I have successfully configured OHS to reverse proxy requests to Apache Tomcat server whenever somebody tries to access the application URL but still, I am getting the application login page once I have successfully authenticated on OAM SSO login page. The Tomcat based application is authenticating users against a "UserDatabase realm".
    I know in terms of weblogic application, there is an OAM identity asserter provider which then populates the User Principal for the java environment with the authenticated OAM user. But there is no such OAM identity provider for Tomcat.
    So my question is, is there an provider (or Tomcat equivalent) which will entrust authentication to a header, that could be used to populate the Java User Principal from the OAM_REMOTE_USER header? Is the weblogic equivalent of authentication providers present in tomcat as well? Are those called valves?
    Please advise to the earliest.
    Thanks !!

    Aakash,
    I did follow the 4 steps that you mentioned to me. Out of the 4 that you had mentioned, I already had the webgate in place on OHS server and I was already passing the remote_user http header in oam policy as action.
    As part of Step #2: Install mod_jk plugin on OHS server that you mentioned
    1.) I downloaded the tomcat connector - tomcat-connectors-1.2.37-src
    2.) I had to run ./configure,make, make install on my OHS server which runs on RHEL 6. It created the mod_jk.so file. I pasted it in the needed folder.
    3.) I then created the httpd.conf file and workers.properties file as said in the connector docs.
    4.) Restarted OHS.
    As part of Step #3: Configure tomcat's ajp connector that you mentioned and I went through all the links pasted below but didn't find actually what needs to be in place to configure tomcat's ajp connector. I do see in the server.xml of tomcat app server that the ajp 1.3 protocol is supported:
    http://tomcat.apache.org/tomcat-4.0-doc/config/ajp.html
    http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html#s8
    http://tomcat.apache.org/tomcat-7.0-doc/config/ajp.html
    http://www.mulesoft.com/understanding-tomcat-connectors
    <!-- A "Connector" represents an endpoint by which requests are received
             and responses are returned. Documentation at :
             Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
             Java AJP  Connector: /docs/config/ajp.html
             APR (HTTP/AJP) Connector: /docs/apr.html
             Define a non-SSL HTTP/1.1 Connector on port 8080
        -->
        <Connector port="8080" protocol="HTTP/1.1"
                   connectionTimeout="20000"
                   redirectPort="8443" />
    <!-- Define an AJP 1.3 Connector on port 8009 -->
        <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
    Do we need to disable the HTTP protocol in Tomcat and keep only AJP connector enabled? If yes, how to do that?
    I am trying to connect to the application from OHS server like so I am using the http protocal right? How should I use the ajp protocol to connect to tomcat application? 
    http://ohs-host:ohs-port/abcd
    Thanks !!!!!

  • 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
    null

    Did you ever find a solution to this Ishaan?
    I imagine you ended up having to upgrade 10gR2 to 10gR3 at least. Correct?

  • Integrating Sun App Server with WebSphere MQ

    Hi,
    I am using Sun App server V8.1 . I also have a websphere MQ v5.3 installed in my system. I want to integrate this MQ with the App server.
    I created a queueManager and a Queue in MQ and using the JMSAdmin console of the Mq, i created jndi lookup resources using INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
    In the application server side, i created a Resource adapter using the command:
    create-resource-adapter-config --property SupportsXA=true:ProviderIntegrationMode=jndi:RMPolicy=OnePerPhysicalConnection:JndiProperties=java.naming.factory.url.pkgs\\=com.ibm.mq.jms.naming,java.naming.factory.initial\\=com.sun.jndi.fscontext.RefFSContextFactory,java.naming.provider.url\\=file\\:D\\:\\MQ:LogLevel=finest mqra
    Then i deployed this resource adaptor using the command :
    deploy name mqra target server "D:\Sun\AppServer\lib\addons\resourceadapters\genericjmsra\genericra.rar"
    Using this resource adapter i created a connection pool, connector resource and an admin object using the commands
    create-connector-connection-pool raname mqra connectiondefinition javax.jms.QueueConnectionFactory transactionsupport  XATransaction property ConnectionFactoryJndiName=MQQCF mymqpool
    create-connector-resource --poolname mymqpool jms/MyMqQCF
    create-admin-object raname mqra restype javax.jms.Queue --property DestinationJndiName=RTQueue jms/MyMqQueue
    After that, i wrote a java code to lookup these resources and put a message into the queue.
    This is the snippet of my java code
    InitialContext ic = new InitialContext();
    QueueConnectionFactory cnxFact = (QueueConnectionFactory)ic.lookup("jms/MyMqQCF");
    Queue qu = (Queue)ic.lookup("jms/MyMqQueue");
    try {               
    QueueConnection qConn = cnxFact.createQueueConnection();
    QueueSession qSess = qConn.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);
    QueueSender qSend = qSess.createSender(qu);
    TextMessage msg = qSess.createTextMessage();
    msg.setText("1");
    qSend.send(msg);
    qConn.close();
    I am getting an exception in the line, QueueConnection qConn = cnxFact.createQueueConnection();
    here is the stack trace
    java.lang.ClassCastException: com.ibm.mq.jms.MQQueueConnectionFactory
    at com.sun.genericra.outbound.ManagedQueueConnectionFactory.createXAConnection(ManagedQueueConnectionFactory.java:45)
    at com.sun.genericra.outbound.AbstractManagedConnectionFactory.createPhysicalConnection(AbstractManagedConnectionFactory.java:127)
    at com.sun.genericra.outbound.AbstractManagedConnectionFactory.createManagedConnection(AbstractManagedConnectionFactory.java:111)
    at com.sun.enterprise.resource.ConnectorAllocator.createResource(ConnectorAllocator.java:90)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getUnenlistedResource(IASNonSharedResourcePool.java:437)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:355)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:250)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:213)
    at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:174)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:286)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:145)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:121)
    at com.sun.genericra.outbound.ConnectionFactory.createConnection(ConnectionFactory.java:69)
    at com.sun.genericra.outbound.ConnectionFactory.createQueueConnection(ConnectionFactory.java:101)
    Can anybody help???

    bump
    update:
    So to avoid this problem I added spring.jar to the server classpath. that got rid of this message but then it started complaining that its missing struts2 core jar..i added that in server classpath as well...I did same for 4 other files and in the end it said 'bean for xwork has already been initialized' (because all these jars are in the application as well).
    So I am stuck. if I add all jars to server classpath..it says beans have already been initialized. If I take out the jars from server classpath then it says that stuff is missing (eg. contextLoader.properties missing - orig post)
    again, all this goes away when I restart the server..so i am just trying to avoid having to restart server every code change.

Maybe you are looking for