This is a discussion on weblogic help within the Java Tutorials forums, part of the Articles and Tutorials category; Hi, my question is regarding weblogic server aplications. \" once the application modules are deployed onto the server, how to ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
weblogic help
Hi,
my question is regarding weblogic server aplications. \" once the application modules are deployed onto the server, how to run/execute them. i am using weblogic 8.1. The application uses jdbc connection( which is working fine). I have configured user domain server using the configuration utility of weblogic. From the server\'s admin console,it says the deployment succesful, i am not able to figure out how to move on, once the application is deployed succesfully. The deployed application modules are jar files.\" Can somebody give me suggestions for furthur approach. i would greatly appreciate it. Thanks in advance. |
|
|||
|
Re:weblogic help
i am using oracle 9 for the database. and as i said earlier , i have configured jdbc ( connection pool) and data source ( relatting to the connection pool).
in the admin console of the weblogic, after the deployment of the jar application modules , when i test them it is displaying aomething like \"The EJB xyz has been testes successfully with a jndi name of pqrs\" For one of the web application modules Context root: /login Path: c:/bea\\user_projects/domains/mydomain2/mydomain/applications/jsp/JSP/login my question is , like how to test them as the end user. i mean for the end clients. Thanks Post edited by: arudra, at: 2004/09/15 08:48 Post edited by: arudra, at: 2004/09/15 08:49 |
|
|||
|
Re:weblogic help
Hey!!
You may have to bounce the \"JVM\" based on the existing network configuration. Construct the url as follows and then cut and paste it onto your browser! http://servername ort/WebAppContextNameport number depends on whether you are testing on your local machine or on a remote server.. The WebAppContextName is simply the Web Application Name. For example, http://praveen.mycompany.com/MySampleWebApp If the page fails to load, then try restarting the Server/JVM or Application |
|
|||
|
Re:weblogic help
Arudra,
Yes, as Praveen said, you need to type the url in the browser: http://localhost:7001/webcontextname/sample.jsp As per i remember, the HTTP port number for weblogic app server is 7001. To make sure that, Check in config.xml file. Hope this helps |
|
|||
|
Re:weblogic help
thanks praveen and vasu for the replies.
yeah the port is 7001. once deployed we can simply run the index file, using any browser. actually the project which i am working was tested using weblogic 7.0. but i am using weblogic 8.1. does this make any difference. when i restart the server, server giving warnings..one sample warning. \"<EJB> <BEA-010212> <The EJB \'Login<Application: EXEJAR, EJBComponent:login_d.jar> contains at least one method without explicit transaction attribute setting. The default trasaction attribute of Supports will be used for the following methods: home<java.lang.Object>, remove<javax.ejb.Handle>, FindByPrimaryKey(lcfiles,.LoginPK)......\" any idea where i am doing wrong... i got this from the weblogic site... \"BEA-010212 Warning: The EJB \'ejbName\' contains at least one method without an explicit transaction attribute setting. The default transaction attribute of default will be used for the following methods: methods Description The specified EJB uses container managed transactions but an explicit transaction attribute was not specified for some methods in the ejb-jar.xml deployment descriptor. These methods will use a default transaction attribute. Note that the default transaction attribute will not result in a new transaction being started. Cause The ejb-jar.xml deployment descriptor does not contain transaction attribute settings for the specified EJB methods. Action Please assign transaction attributes for all methods of your EJB. \" how to set the transaction attributes ??? Post edited by: arudra, at: 2004/09/16 21:29 |
|
|||
|
Re:weblogic help
You need to set transaction attributes in ejb-jar.xml file
Sample code: <?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE ejb-jar PUBLIC \"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN\" \"http://java.sun.com/dtd/ejb-jar_2_0.dtd\"> <ejb-jar> <enterprise-beans> <session> <display-name>TestEJB</display-name> <ejb-name>TestEJB</ejb-name> <local-home>com.test.ejb.TestEJBHome</local-home> <local>com.test.ejb.TestEJBHome</local> <ejb-class>com.test.ejb.TestEJB</ejb-class> <session-type>Stateless</session-type> <transaction-type>Container</transaction-type> </session> </enterprise-beans> <assembly-descriptor> <container-transaction> <method> <ejb-name>TestEJB</ejb-name> <method-name>getOrder</method-name> </method> <trans-attribute>Supports</trans-attribute> </container-transaction> <container-transaction> <method> <ejb-name>TestEJB</ejb-name> <method-name>storeOrder</method-name> </method> <trans-attribute>Required</trans-attribute> </container-transaction> </assembly-descriptor> </ejb-jar> Note: For all methods, if the tras is same then u have to put * instead of method name. I dont have idea reg. weblogic 8.1 . I mean diff. bet. 7.x and 8.x |
|
|||
|
Re:weblogic help
Hey dude!
Check out the Weblogic 8.0 release notes! As long as your code is J2EE 1.3 compliant, you should have no problems.. As for the warning, Vasu was right!! check out the sample file and do some reading on CMP and BMP! You are going to need to understand it if you are doing EJB development! Good luck dude! Praveen |
|
|||
|
Re:weblogic help
Hi,
i am moving along with your instructions, it\'s working. i have a question. i want to use user packages in my servlets. i have the packages in diff folders. now , where should i keep the packages. i tried by keeping them in the working folder same as the servlet, i tried in web-inf folder of the same working folder and tried somewhere else. each time i modified my classpath with location of class packages...but each time same error. so and so package not found. let me give small log i have class files in C:\\bea\\java files\\Bin C:\\bea\\java files\\Login i have added into the classpath C:\\bea\\java files\\Login;C:\\bea\\java files\\Bin; the folders where i have the packages. the error it is showing is, ----------- C:\\bea\\user_projects\\mydomain\\myserver\\.wlnotdelete\\myserver__appsdir_Login_dir-0_Login\\jsp_servlet\\__logprocess.java:20: package lcfiles does not exist probably occurred due to an error in /Logprocess.jsp line 1: <%@ page language=\"java\" import=\"javax.ejb.*,java.rmi.*,javax.servlet.*,lcfiles.*,ucfiles.*,usfiles.*,javax.servlet.http.*,javax.naming.*,java.sql.*,java.util.*\" %> C:\\bea\\user_projects\\mydomain\\myserver\\.wlnotdelete\\myserver__appsdir_Login_dir-0_Login\\jsp_servlet\\__logprocess.java:21: package ucfiles does not exist probably occurred due to an error in /Logprocess.jsp line 1: <%@ page language=\"java\" import=\"javax.ejb.*,java.rmi.*,javax.servlet.*,lcfiles.*,ucfiles.*,usfiles.*,javax.servlet.http.*,javax.naming.*,java.sql.*,java.util.*\" %> C:\\bea\\user_projects\\mydomain\\myserver\\.wlnotdelete\\myserver__appsdir_Login_dir-0_Login\\jsp_servlet\\__logprocess.java:22: package usfiles does not exist probably occurred due to an error in /Logprocess.jsp line 1: <%@ page language=\"java\" import=\"javax.ejb.*,java.rmi.*,javax.servlet.*,lcfiles.*,ucfiles.*,usfiles.*,javax.servlet.http.*,javax.naming.*,java.sql.*,java.util.*\" %> ------------------- i mean it is saying the package not found...is there any special care need to be taken to import the user packages.. finally, i really i appreciate your great help. i can\'t believe i am getting prompt help from a discussion board. thanks again praveen and vasu |
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Weblogic Administrator Required | kalareddy | Experienced Job Seekers - India | 0 | 06-13-2005 05:37 AM |