Tomcat to jboss
i have a web application using struts deployed under tomcat server i have another web application(based onservlets) deloyed under jboss both of them have their respective login pages. i am accessing the login page of 2nd application by giving its local url address in a jsp of first appication, now i want to pass the username and password of login page my first application into the login pag of second application.........how can i do that......how can i pass the username and password? plz help
In web.xml making the following entry:
<web-app>
<description>MySQL Test App</description>
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/test</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
Next, add a file jboss-web.xml under WEB-INF/ folder of the web-application. This file should contain entry as:
<jboss-web>
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/test</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:/jdbc/test</jndi-name>
<res-auth>Container</res-auth>
</resource-ref>
</jboss-web>
Next, in JBOSS_HOME/server/default/deploy folder make a xx-ds.xml file or else, a similiar file can be found in that same folder with the name hsqldb-ds.xml. Make following entries in that xml file:
<datasources>
<local-tx-datasource>
<jndi-name>/jdbc/test</jndi-name>
<type-mapping>MySQL</type-mapping>
<connection-url>jdbc:mysql://localhost:3306/shopping_cart</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>root123</password>
<min-pool-size>1</min-pool-size>
<max-pool-size>5</max-pool-size>
</local-tx-datasource>
This should bind the jndi name.
In our client application, we need to look up as:
Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:/jdbc/test");
Connection conn = ds.getConnection();
This works perfectly.
Similar Messages
-
Hello! I'm not that new to web programming in Java but there are some things that I think I need to fully understand. Can anyone here give me a comparison between Tomcat and JBoss? What are the similarities and key differences between the two? Tomcat is a servlet container while JBoss is an application container(?? not sure about that, still haven't read enough about it).
Thanks in advance,
RomaineHi Romaine,
Tomcat is not only a servelet container...its actually the webserver which is a servlet container and jsp engine as well.
Where as JBOSS is one of the application servers where it provides the run time environment for the business components( the ejbs) in addition to the support environment for servlets and jsps.
examples of application servers: JBOSS, WEBLOGIC, WEBSPHERE -
What are the steps to Migrate a Web Service from Tomcat to JBoss
Hi,
I am totally new to JBoss and need some help. I mostly worked on BEA and Oracle. I have a web service deployed on Tomcat that needs to be now migrated to JBoss. What are the steps in moving a web service from Tomcat to JBoss.
Is there some step by step tutorial on developing and deploying a web service on JBoss along with sample build script.
Any help is really appreciated.
ThanksR u using axis. If you want to stick with axis and don't want to use JBossWS there is nothing else you need to do. Move all the axis to Jboss. If you plan to reimplement all ur services in JBossWS here it is:
http://jbws.dyndns.org/mediawiki/index.php?title=Quick_Start
http://jbws.dyndns.org/mediawiki/index.php?title=User_Guide
Let me know if you need anything else. -
Distinguishing between Tomcat and JBoss
I have a servlet that does a JNDI lookup, and I need that servlet to be able to figure out whether it's being served by Tomcat or JBoss (because the JNDI lookup is done differently depending on which servlet container it is). Using getServletContext().getServerInfo() doesn't help because it returns tomcat in both cases, since JBoss uses Tomcat as the servlet container. Does anyone know another way of determining whether it's Tomcat or JBoss?
Thanks!
--vlb1http://dinoch.dyndns.org:7070/axis1.2/AboutArrays2.jsp
-
Migrating application from tomcat to jboss
My application is working on tomcat but when try to deploy the same application war file it gives the following error
no valid JNDI binding. Check the jboss-web/resource-ref.
My web.xml is like this(only giving few lines here)
<resource-ref>
Inventory Source
<res-ref-name>jdbc/InventorySource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Jboss-web.xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<!-- Uncomment the security-domain to enable security. You will
need to edit the htmladaptor login configuration to setup the
login modules used to authentication users.
<security-domain>java:/jaas/jmx-console</Dsecurity-domain>
-->
<reference-ref>
<res-ref-name>jdbc/InventorySource</res-ref-name>
<jndi-name>java:jdbc/InventorySource</jndi-name>
</reference-ref>
</jboss-web>
postgres-ds.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- Example of the pointbase 4.8 datasource configuration -->
<!-- $Id: pointbase-ds.xml 23720 2004-09-15 14:37:40Z loubyansky $ -->
<local-tx-datasource>
<jndi-name>jdbc/InventorySource</jndi-name>
<use-java-context>false</use-java-context>
<connection-url>jdbc:postgresql://localhost:5432/demo</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<user-name>admin</user-name>
admin
<type-mapping>PointBase</type-mapping>
</local-tx-datasource>
Please help me
Thanks
ParimojIn web.xml making the following entry:
<web-app>
<description>MySQL Test App</description>
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/test</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
Next, add a file jboss-web.xml under WEB-INF/ folder of the web-application. This file should contain entry as:
<jboss-web>
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/test</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:/jdbc/test</jndi-name>
<res-auth>Container</res-auth>
</resource-ref>
</jboss-web>
Next, in JBOSS_HOME/server/default/deploy folder make a xx-ds.xml file or else, a similiar file can be found in that same folder with the name hsqldb-ds.xml. Make following entries in that xml file:
<datasources>
<local-tx-datasource>
<jndi-name>/jdbc/test</jndi-name>
<type-mapping>MySQL</type-mapping>
<connection-url>jdbc:mysql://localhost:3306/shopping_cart</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>root123</password>
<min-pool-size>1</min-pool-size>
<max-pool-size>5</max-pool-size>
</local-tx-datasource>
This should bind the jndi name.
In our client application, we need to look up as:
Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:/jdbc/test");
Connection conn = ds.getConnection();
This works perfectly. -
Hello,
Could any one tell me what are the advantages of using jboss instead of tomcat as my application server.
I am not interested in the ejb part at all, but from my understanding jboss can bring a lot of advantages when creating web apps such as jaas and other modules ..
Another question is what are the advantages of using tomcat instead of jboss for JSP/SERVLET web apps ..
Thanks.Your server admin has no clue what he is talking about, he is probably used to PHP nonsense. A servlet will run when it is mapped in your web.xml file like it is described here:
http://e-docs.bea.com/wls/docs70/webapp/components.html#120130
(it is the same for all webservers). -
What is net step for tomcat? jboss
Hi all,
I have almost two years experience in tomcat, I want to continue developer my skills on j2ee, hope that is not a stupid Ideal.
recently, I try WebLogic by myself . but I am not sure Weblogic is free or not ? some said the licence is one year, I am new in java developer, my next hire, problem still not a big company, for the cost reason, may still need to chose a free software, is jboss is the next step I should try?
right now my server have tomcat + MS sql , can I install jboss in the same server(Windows 2003) without any bad effect on Tomcat? before master jboss, I still need let tomcat work smoontly.
by the way j2ee also a server. which one is best? j2ee server or Jboss?
Thank youhi,
Weblogic is not free. But, Jboss is avail for free download. You can download it and install in your system and that wont affect your tomcat in anyway. (unless you run the both simultaneously !! )
j2ee server or jboss?
I assume you mean 'Sun application server' by the term 'j2ee server'. But, jboss is very popular, so you can go for it.
Also, recently JbossIDE became very popular, as it provides rich user interface for j2ee application development using jboss.
Good luck! :) -
Tomcat client + JBOSS server
Regarding to JBossIDE-Tutorial.pdf I worked through this tutorial and I reached my first EJB
Now I�m trying to deploy the application as clent and server using Tomcat 5.5 and JBOSS 4.2.0GA ( on two different host placed in the same lan )
I have the same project on the JBOSS and the new one in Tomcat
In Tomcat I copied only the interfaces and servlet because I want to call the EJB method from Tomcat application container
I modified the code of ComputeServlet.java in this way
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingCotextFactory");
env.put(Context.PROVIDER_URL, "jnp://192.168.0.13:1099");
Context context = new InitialContext(env);
Object ref = context.lookup("ejb/Fibo");
home = (FiboHome) PortableRemoteObject.narrow(ref, FiboHome.class);during the lookup method I reach the same error message
--------javax.naming.CommunicationException: Could not obtain connection to any of these urls: 192.168.0.13:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server 192.168.0.13:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 192.168.0.13:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]
it seams that the Tomcat client doesn�t reach the JBOSS server
I wonder if anyone could give me any suggestion
Many many thanksok many thanks
now all work properly
the real problem was the ip address of JBOSS Server
I found interesting faq at this link
-> http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss42FAQ
Frequently Asked Questions about the JBoss4.2 Release
1. . Why can't I connect to the server remotely? All the services appear to be bound to localhost only.
* That's correct before 4.2.0.GA jboss always bound to the any address "0.0.0.0". You wouldn't believe how many people would put unprotected instances of JBoss on the internet, or even on their own local LAN. Now you have to explicitly choose to do that, so it takes some thinking about before you revert to the old default behaviour with the "-b' option of jboss. e.g.
./run.sh -b 0.0.0.0
For Windows, use
run.bat -b 0.0.0.0 -
Retrive IP address in tomcat or JBoss
Pls let me know the implementation for retrieving the IP address of a remote user accessing the web application running under tomcat server.
The IP address should be displayed on tomcat server upon his entry into the application .
Is it possible to implement using getRemoteAddr() method.
I would appreciate any support and ideas from the other end.
Thanks in advance.Umm.. yes getRemoteAddr() would do the trick. Why didn't you try it before you posted?
-
Jboss/tomcat mapping configuration error
I can't even get the combination to serve a .jsp file or .html file. Regardless of the URL that I attempt, I only get a No Context configured to process this request error from tomcat and INFO [Engine] StandardHost[localhost]: MAPPING configuration error for request URI from JBoss. I've tried to access all of the various webapps under the catalina directory and can't get to any of them. I know that catalina is started because the log file shows
<Service name="JBoss-Tomcat">
<Engine name="MainEngine" defaultHost="localhost">
<Logger className="org.jboss.web.catalina.Log4jLogger" verbosityLevel="trace" category="org.jboss.web.localhost.Engine" />
<Host name="localhost">
<Valve className="org.apache.catalina.valves.AccessLogValve" prefix="localhost_access" suffix=".log" pattern="common" directory="../server/default/log" />
<DefaultContext cookies="true" crossContext="true" override="true" />
</Host>
</Engine>
<!-- A HTTP Connector on port 8080 -->
<Connector className="org.apache.catalina.connector.http.HttpConnector" port="8080" minProcessors="3" maxProcessors="10" enableLookups="true" acceptCount="10" debug="0" connectionTimeout="60000" />
</Service>
</Server> in jboss.web:service=EmbeddedCatalinaSX
2002-06-12 23:29:44,760 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Creating
2002-06-12 23:29:44,760 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Created
2002-06-12 23:29:44,760 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying tomcat4-service.xml
2002-06-12 23:29:44,760 DEBUG [org.jboss.deployment.MainDeployer] start step for deployment file:/D:/JBoss3.0/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.xml
2002-06-12 23:29:44,760 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/D:/JBoss3.0/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.xml
2002-06-12 23:29:44,760 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Starting
2002-06-12 23:29:44,760 INFO [org.jboss.deployment.MainDeployer] Adding deployer: org.jboss.web.catalina.EmbeddedCatalinaServiceSX@7dadcd
2002-06-12 23:29:44,760 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Setting catalina debug level to: 0
2002-06-12 23:29:44,760 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Setting catalina.home to: ../catalina
2002-06-12 23:29:44,760 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Setting catalina.base to: ../catalina
with no errors. I'm confused because I was able to consistently work with previous versions of JBoss with no problem. The configuration seems to have changed radically, is this some recent change that I just can't find a reference to? Thanks for any help.Hi
For Tomcat 3.x you need to use one of the following options:
(Note: this is with JBoss/Tomcat OR JBoss/Jetty)
Place you .war files in the following location:
C:\jboss-3.0.3\server\default\deploy and the app is automatically available.
If my app's name is DavidOnline.war, when deployed, I can access it at
http://localhost:8080/DavidOnline..
OR
Copy your entire development directory to the deploy direction above, RENAME your
directory from say C:\JspApps to C:\JspApps.war and you can work from that location and see your changes immeadiatly.
There is a file called jboss-service.xml that has some config options, also for the Tomcat bundle there is a file named tomcat-service.xml that has the standard server.xml section.. I suggest you check out the JBoss website, free docs and forums.. http://www.jboss.org.
Thanks, Hope this helps. -
Tomcat&JBoss VS ORACLE10g AS(urgent.....)
Hi everybody,
am having an application which was running in the TOMCAT and JBOSS environment but now i have migrated it with ORACLE 10g Application server but here my problem is its not running smoothly but it was working properly in Tomcat+JBoss
if more Number of users increases then (Active Sessions and Active Requests) the Application server has to restart once in peak time its the case when am in JBoss Tomcat Env. but Now am with ORACLE 10g so now i have to restart the instance 7 or 10 times to move my application correclty otherwise its not running its hanged
So if anyyone knows how to configure ORACLE10g correctly then plz help me..
Its very URGENT
Thanks in Advance ;-)
Jagan.Mhi everyone,
i'm new to Java web development and would like to
seek for some of your experience...
before i had use Tomcat along to develop my
JSP/Servlet...a few years later now...i am about to
get into a new project...and i heard about JBoss...
my questions are:
- is JBoss good? Good for what?
You realize, of course, that JBoss and Tomcat are two different animals. JBoss is a Java EE app server, and Tomcat is a servlet/JSP engine. JBoss has a servlet/JSP engine, just like all Java EE app servers do. It's likely to USE Tomcat.
The biggest thing that JBoss gives you in addition to servlets and JSPs is EJBs. Do you know what those are? Is that why you're interested in JBoss?
What are you planning to do with EJBs?
How easy is it to setup as compared to Tomcat standalone?It's harder, because there are potentially more moving pieces.
- is JBoss integrating Apache and Tomcat such that i
can directly use Apache as the web server without
much extra setup?You don't need an Apache web server to use Tomcat or JBoss. Both have HTTP servers built in.
- if i am getting my website hosted by some hosting
company...do i need to know whether they support
JBoss before i start my development?If you plan on using JBoss, I'd say yes.
% -
Delay in AJP Connector jBoss/TomCat Solaris 10
I have:
- IIS 6, Windows 2003 Server on dual PIII with jk 1.2.15 installed and working
- Solaris 10 on Sun E420R with Quad Processors with jBoss / Tomcat version 4.0.3SP1
There is a significant delay in page loading that occurs randomly (every 10-20 clicks) which lasts for 10-18 or so seconds.
I've traced it to the read method in ChannelSocket.java. The delay always occurs while receive() is reading the header portion of the message. The length of the header that the read is trying to read is 4 bytes. The call to BufferedInputStream will block until it gets these 4 bytes of the header (10-18 seconds). I've modified the code and put a call in to available() before and after the read. The before returns 0 and the after returns 1138 or so.
I've tried every imaginable combination of configs on the IIS side to get around the problem ... and then some kernel TCP/IP configs on the Solaris side ... too many to list here.
The problem seems to be isolated to Solaris ... because Linux, XP, Windows 2003 server all work without this problem.
My question is this ... is there any thing that I can configure to have this read return faster? Changes to the Solaris kernel ... some config parameter ... ?? Anyone experience this before?
I'll gladly list the things I've tried to get some idea of how to solve this.
I think ultimately this is my problem: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4479751
Thanks in advance!Hi
For Tomcat 3.x you need to use one of the following options:
(Note: this is with JBoss/Tomcat OR JBoss/Jetty)
Place you .war files in the following location:
C:\jboss-3.0.3\server\default\deploy and the app is automatically available.
If my app's name is DavidOnline.war, when deployed, I can access it at
http://localhost:8080/DavidOnline..
OR
Copy your entire development directory to the deploy direction above, RENAME your
directory from say C:\JspApps to C:\JspApps.war and you can work from that location and see your changes immeadiatly.
There is a file called jboss-service.xml that has some config options, also for the Tomcat bundle there is a file named tomcat-service.xml that has the standard server.xml section.. I suggest you check out the JBoss website, free docs and forums.. http://www.jboss.org.
Thanks, Hope this helps. -
Problem with deployment to Tomcat &JBoss
Hi,
I have an application with BC4J & UIX & Struts when I run the application from JDeveloper (OC4j) every thing OK
but when I deploy the application to tomcat or JBoss I get the following exception:
oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value:oracle.sql.TIMESTAMPTZ@e20459
at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:739)
at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:85)
at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1063)
at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:1513)
at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:2159)
at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1031)
at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2558)
at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2461)
at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:1686)
at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:1589)
at oracle.jbo.server.QueryCollection.getRowCount(QueryCollection.java:1439)
at oracle.jbo.server.ViewRowSetImpl.getRowCount(ViewRowSetImpl.java:1693)
at oracle.jbo.server.ViewObjectImpl.getRowCount(ViewObjectImpl.java:5311)
at net.accad.redmoon.UserData.<init>(UserData.java:48)
at net.accad.redmoon.Access.doLogin(Access.java:36)
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:324)
at oracle.cabo.servlet.event.MethodEventHandler.handleEvent(Unknown Source)
at oracle.cabo.servlet.event.TableEventHandler.handleEvent(Unknown Source)
at oracle.cabo.servlet.event.TableEventHandler.handleEvent(Unknown Source)
at oracle.cabo.servlet.event.BasePageFlowEngine.handleRequest(Unknown Source)
at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source)
at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
at oracle.cabo.servlet.UIXServlet.doGet(Unknown Source)
at oracle.cabo.servlet.UIXServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:228)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:44)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:169)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
I prepaired my Tomcat & JBoss with ADF runtime installer,
And I had deploy the following library with my application:
-JSP Runtime
-Struts Runtime
-Servlet Runtime
-ADF UIX Runtime
-Oracle XML Parser v2
-BC4J Runtime
-ADF Controller Runtime
-ADF Model Runtime
-BC4J Oracle Domain
-Oracle JDBC
-J2EE
-ADF Web Runtime
-BC4J Client
Merry XMass
Omar DawodSorry I forgot this:
JDeveloper 9.0.5.2
JBoss 4.0
Tomcat 5.0.28
Omar Dawod -
Install 8.2 EPPM on tomcat /jboss anyone have this working?
Hello, Has anyone successfully installed and have 8.2 EPPM running on tomcat /jboss as the appserver?
Edited by: Oracle Primavera on Mar 29, 2012 1:28 PMhello,
that is not tested so probably you will have problem using tomcat or jboss.
check tested configurations document for 8.2 eppm: http://docs.oracle.com/cd/E25030_01/English/Tested_Configurations/eppm_8_2_tested_configs.xls app server sheet.
Weblogic 10.3.5 and WebShpere 7.0 Fix Pack 19 are recommended for 8.2
Regards -
Application done using tomcat throwing eceptions while deploying in JBoss
hi frds
i devoloped an application using tomcat and its working fine. now i deploying the war generated by tomcat in JBOSS. after deploying application working fine with JBOSS also but the log contains the exception. the stack trace from log file is
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.WebModule] Starting jboss.web.deployment:war=LPCIntex.war,id=1039069946
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] webContext: null
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] warURL: file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp29121LPCIntex-exp.war/
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] webAppParser: org.jboss.web.AbstractWebDeployer$DescriptorParser@12c937c
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.WebPermissionMapping] Qualified url patterns: {/=PatternInfo[pattern=/,type=3,isOverriden=false,qualifiers=[]]}
2007-11-20 12:06:47,234 INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/LPCIntex, warUrl=file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp29121LPCIntex-exp.war/
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] AbstractWebContainer.parseWebAppDescriptors, Begin
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Creating ENC using ClassLoader: java.net.FactoryURLClassLoader@186dd93
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] ..org.jboss.mx.loading.UnifiedClassLoader3@ef9d00{ url=file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp29121LPCIntex-exp.war/ ,addedOrder=39}
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] ..org.jboss.system.server.NoAnnotationURLClassLoader@ab95e6
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] ..sun.misc.Launcher$AppClassLoader@e39a3e
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] ..sun.misc.Launcher$ExtClassLoader@a39137
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Unable to retrieve orbjavax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered.
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Linked java:comp/UserTransaction to JNDI name: UserTransaction
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] addEnvEntries
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkResourceEnvRefs
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkResourceRefs
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkMessageDestinationRefs
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkEjbRefs
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkEjbLocalRefs
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkServiceRefs
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkSecurityDomain
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] No security-domain given, using default: java:/jaas/other
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Linking security/securityMgr to JNDI name: java:/jaas/other
2007-11-20 12:06:47,234 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] AbstractWebContainer.parseWebAppDescriptors, End
2007-11-20 12:06:47,281 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Using session cookies default setting
2007-11-20 12:06:50,343 INFO [org.apache.catalina.loader.WebappClassLoader] validateJarFile(C:\jboss-4.0.2\server\default\.\tmp\deploy\tmp29121LPCIntex-exp.war\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2007-11-20 12:06:50,625 DEBUG [org.jboss.web.tomcat.filters.ReplyHeaderFilter] Adding header name: X-Powered-By='Servlet 2.4; JBoss-4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)/Tomcat-5.5'
2007-11-20 12:06:50,671 INFO [org.apache.struts.util.PropertyMessageResources] Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
2007-11-20 12:06:50,671 INFO [org.apache.struts.util.PropertyMessageResources] Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
2007-11-20 12:06:51,859 ERROR [org.apache.commons.digester.Digester] Parse Error at line 99 column 17: The content of element type "struts-config" must match "(display-name?,description?,data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".
org.xml.sax.SAXParseException: The content of element type "struts-config" must match "(display-name?,description?,data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1572)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1006)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
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 org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5005)
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 org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:274)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:91)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)
at org.jboss.web.WebModule.startModule(WebModule.java:68)
at org.jboss.web.WebModule.startService(WebModule.java:46)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:418)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy28.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:394)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:418)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:273)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
at org.jboss.Main.boot(Main.java:195)
at org.jboss.Main$1.run(Main.java:463)
at java.lang.Thread.run(Thread.java:595)any workaround to stop the exception
thanks
RThe error message seems pretty clear : the order of your XML elements in your struts config file is wrong.
These XML elements must be in the order defined in the parenthesis after "must match".
Maybe you are looking for
-
Arch on the Asus 900 (EEE PC)
Firstly, I'd like to ask if anyone's had any success with installing arch on the asus 900 and if the steps they took while doing it differed from those in the threads/guide regarding the 700 found on these pages. Secondly, I've been poking around wit
-
Office jet pro 8600 plus Printer and software will not open in windows 8.1
I have unistalled and reinstalled printer and updated driver. my computer and printer are reading each other but the "printer assistant control panel thing. will not open nor will the diagnostic software. I have run out of ideas. Help!
-
Which wireless speakers for macbook pro/ipad 2?
I have a macbook pro 10.5.8 and ipad 2. I waant to set up wirelss speakers to play my itunes using both devices. I also habe an airport express and airport extreme.which kind of speakers shol i get: bluetooth or wi fi?
-
[size="2" face="Verdana">I've had my zen micro for about a year, because I got it last Christmas. I've listened to it frequently since I first got it. Just recently, I have come very close to filling up my memory. But I guess I am using too much memo
-
Double click won't open folders/files/albums
To open files or albums on my macbok pro I have to right click instead of double clicking. I recently reset my pram settings due to my trackpad not working.