Running netscape servlet access a weblogic deployed bean
I an having problems creating the initialcontext object when tring to access a
bean deployed in
Weblogic6.0 from a servlet running in netscape Iplanet server. Has anyone every
got this to work?
Is this a valid configuration or does the servlet have to be running in the weblogic
server.
Thanks Doug
I an having problems creating the initialcontext object when tring to access a
bean deployed in
Weblogic6.0 from a servlet running in netscape Iplanet server. Has anyone every
got this to work?
Is this a valid configuration or does the servlet have to be running in the weblogic
server.
Thanks Doug
Similar Messages
-
Servlet error in weblogic deployment
Hi Friends,
I have uploaded a war file by name 'Dat_Ced.war' in weblogic server.But when I try to run the servlet in the browser, I get the following error in console.
ca.com
2007-10-01 12:26:49,044 [ExecuteThread: '14' for queue: 'weblogic.kernel.Default
'] INFO (Utils.java:259) - boy
<Oct 1, 2007 12:26:49 PM IST> <Error> <HTTP> <BEA-101017> <[ServletContext(id=82
47019,name=Dat_Ced,context-path=/Dat_Ced)] Root cause of ServletException.
java.lang.NullPointerException
at com.bofa.pbes.cedrelay.RelayException.<init>(RelayException.java:107)
at com.bofa.pbes.cedrelay.Utils.loginPartyOrchService(Utils.java:260)
at com.bofa.pbes.cedrelay.Utils.loginCMWService(Utils.java:224)
at com.bofa.pbes.cedrelay.RelayServlet.init(RelayServlet.java:65)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(Servl
etStubImpl.java:993)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
118)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:869)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:848)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:787)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:518)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:362)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
Please help me..
Thanks in advance.Go to Weblogic admin console and see whether both applications are deployed successfully or not.
Also see the patch_weblogic.log whether it has some exception while deploying Nexaweb.
Certification for OIM:
http://www.oracle.com/technology/software/products/ias/files/idm_certification_101401.html -
Error using weblogic.deploy tool, while deploying a war
Hi all, I'm trying to deploy a war with the follw command:
java weblogic.deploy -host localhost -port 7001 -component NewScreenWar:BEAserver
deploy beasystem NewScreenWar d:\newsscreen\weblogic\NewScreenWar.war
It gives me following error:
weblogic.j2ee.DeploymentException: Application NewScreenWar does not contain com
ponent NewScreenWar at weblogic.deploy.deploy(deploy.java:668) at weblogic.deploy.runBody(deploy.java:358)
at weblogic.utils.compiler.Tool.run(Tool.java:79) at weblogic.deploy.main(deploy.java:1601)
Application NewScreenWar does not contain component NewScreenWar
how do I resolve this...??
thanx --anjaly
Hi,
For a tutorial with source on how to create and deploy a simple quickstart JEE5 JPA enterprise 3-tier application on your Oracle WebLogic 10.3 server - see the following example that uses the EclipseLink JPA provider. You should be able to transition all of your mapping information (the @ManyToOne and table/column overrides and named queries for example) using either JPA via entity annotations or native extensions if you do not want to implement EJB3.
see...
http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial
We also have a similar version for Tomcat 6 except the JPA entity beans run outside a container-managed JTA transaction on the web container - for reference.
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Tomcat_Web_Tutorial
thank you
/michael
www.eclipselink.org -
Weblogic.deploy throws exception.
In WLS 6.1 SP01, I am trying to add new Application to Weblogic, by using folloowing command.
java -cp c:\bea\wlserver6.1\lib\weblogic.jar weblogic.deploy -debug -url mymachine:7001 deploy -username system mypasswd appname "file:////c:\dir1\myApp.ear" -component "EJBComp1:WLServer1"
It thorws follwoing exception:
[deploy] : adding target : WLServer1 for: EJBComp1
weblogic.j2ee.DeploymentException
at weblogic.deploy.deploy(deploy.java:668)
at weblogic.deploy.runBody(deploy.java:358)
at weblogic.utils.compiler.Tool.run(Tool.java:79)
at weblogic.deploy.main(deploy.java:1601)
weblogic.j2ee.DeploymentException
at weblogic.deploy.deploy(deploy.java:668)
at weblogic.deploy.runBody(deploy.java:358)
at weblogic.utils.compiler.Tool.run(Tool.java:79)
at weblogic.deploy.main(deploy.java:1601)
I can see in config.xml that Application "appname" has been added successfully. But Target servers are not configured for EJB components.
IS there any way to get more information about the error?
Thanks in advance for your help.
SuyogHi Maris,
I see that you have create-default-dbms-tables set to true so WLS should be creating
the database table for your EJB. If you can give me some more information, I'll be
able to help you further. What version of WLS + service pack are you using? Also,
is this a 1.1 bean or 2.0? Lastly, what are the types of the CMP fields in your
bean?
As a work-around, you can try creating the database table yourself before deploying
the bean. This should resolve the deployment problem.
- Matt
Maris wrote:
Hello
When I deploy my EJBs, WEBLogic throws an exception:
Unable to deploy EJB: OrderBean from ejb-jar-ic.jar:
The Entity EJB requires the table: Order to be accessible. Please ensure that th
is table exists and is accessible.
I use built in Cloudscape database.
And I have those lines in descriptor:
<weblogic-rdbms-bean>
<ejb-name>OrderBean</ejb-name>
<data-source-name>ejbDS</data-source-name>
<table-name>Order</table-name>
<field-map>
<cmp-field>totalAmount</cmp-field>
<dbms-column>totalAmount</dbms-column>
</field-map>
<field-map>
<cmp-field>time</cmp-field>
<dbms-column>ordertime</dbms-column>
</field-map>
<field-map>
<cmp-field>orderID</cmp-field>
<dbms-column>orderID</dbms-column>
</field-map>
</weblogic-rdbms-bean>
<create-default-dbms-tables>True</create-default-dbms-tables>
thanx in advance
Maris -
Receiving ERRORS using WEBLOGIC.DEPLOY
Hi everybody,
I am getting strange errors when using the weblogic.deploy command-line
function. I am using WL6.0 on W2000.
Deploy/Update
command: java weblogic.deploy -port 7001 -host localhost update
beapasword MyWebApplication stage\MyWebApplication.war
error: java.lang.NullPointerException
at
weblogic.deploy.deployApplication(deploy.java:383)
at weblogic.deploy.deploy(deploy.java:340)
at weblogic.deploy.runBody(deploy.java:219)
at weblogic.utils.compiler.Tool.run(Tool.java:81)
at weblogic.deploy.main(deploy.java:954)
Undeploy
Command: java weblogic.deploy -port 7001 -host localhost undeploy
beapasword MyWebApplication
error: giving up after two minutes
And it looks that just a Update doens't work. I have to undeploy first and
the do a update to see the changes I've made in my file.
Any suggestions....
M-Hi.
WLS version and service pack level? Please post the entire weblogic.deploy command along
with the exception that follows.
Thanks,
Michael
Harjeet Singh wrote:
I try to use weblogic.deploy to deploy my EAR file on weblogic server called localhost
on 7001. When I try to run it gives me following error:
[java] JNDI naming exception: Naming exception trying to connect to: t3://localhost:7001
as: system: password
system password is correct. I have tried http://localhost:7001 to but doesen't seem
to work.
Any ideas.
HS--
Michael Young
Developer Relations Engineer
BEA Support -
Problem with weblogic.deploy and cluster
I'm having some problems with the weblogic.deploy class when trying to refresh
a jsp file. Using the following command to redeploy the entire application works
fine:
java weblogic.deploy -port 9876 -host apptest01 update
administrator portal c:\portal-site
However using the following command to refresh just one jsp
file:
java weblogic.deploy -url t3://apptest01:9876 -username system
-jspRefreshFiles ./index.jsp -jspRefreshComponentName portal
refresh administrator portal
produces the following stack trace:
javax.naming.NameNotFoundException: Unable to resolve
weblogic.management.home.olbcluster.
Resolved: 'weblogic.management.home' Unresolved:'olbcluster' ;
remaining name ''
at weblogic.rmi.internal.BasicOutboundRequest.
sendReceive(BasicOutboundRequest.java:85)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.
invoke(ReplicaAwareRemoteRef.java:255)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.
invoke(ReplicaAwareRemoteRef.java:222)
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
at $Proxy0.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.
lookup(WLContextImpl.java:323)
at weblogic.management.tools.WebAppComponentRefreshTool.
getMBeanHomeForManagedServer
WebAppComponentRefreshTool.java:498)
at weblogic.management.tools.
WebAppComponentRefreshTool.
getComponentMBeanForServer
(WebAppComponentRefreshTool.java:225)
at weblogic.management.tools.
WebAppComponentRefreshTool.findInternalPaths
(WebAppComponentRefreshTool.java:187)
at weblogic.management.tools.WebAppComponentRefreshTool.
refresh(WebAppComponentRefreshTool.java:151)
at weblogic.deploy.refresh(deploy.java:704)
at weblogic.deploy.runBody(deploy.java:374)
at weblogic.utils.compiler.Tool.run(Tool.java:79)
at weblogic.deploy.main(deploy.java:1601)
Unable to resolve weblogic.management.home.olbcluster.
Resolved: 'weblogic.management.home' Unresolved:'olbcluster'
Any ideas?
"John Murphy" <[email protected]> wrote:
>
>I'm having some problems with the weblogic.deploy class when trying to
>refresh
>a jsp file. Using the following command to redeploy the entire application
>works
>fine:
>
>java weblogic.deploy -port 9876 -host apptest01 update
>administrator portal c:\portal-site
>
>However using the following command to refresh just one jsp
>file:
>
>java weblogic.deploy -url t3://apptest01:9876 -username system
>-jspRefreshFiles ./index.jsp -jspRefreshComponentName portal
>refresh administrator portal
>
>produces the following stack trace:
>
>javax.naming.NameNotFoundException: Unable to resolve
>weblogic.management.home.olbcluster.
>Resolved: 'weblogic.management.home' Unresolved:'olbcluster' ;
>remaining name ''
> at weblogic.rmi.internal.BasicOutboundRequest.
> sendReceive(BasicOutboundRequest.java:85)
> at weblogic.rmi.cluster.ReplicaAwareRemoteRef.
> invoke(ReplicaAwareRemoteRef.java:255)
> at weblogic.rmi.cluster.ReplicaAwareRemoteRef.
> invoke(ReplicaAwareRemoteRef.java:222)
> at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
> at $Proxy0.lookup(Unknown Source)
> at weblogic.jndi.internal.WLContextImpl.
> lookup(WLContextImpl.java:323)
> at weblogic.management.tools.WebAppComponentRefreshTool.
> getMBeanHomeForManagedServer
> WebAppComponentRefreshTool.java:498)
> at weblogic.management.tools.
> WebAppComponentRefreshTool.
> getComponentMBeanForServer
> (WebAppComponentRefreshTool.java:225)
> at weblogic.management.tools.
> WebAppComponentRefreshTool.findInternalPaths
> (WebAppComponentRefreshTool.java:187)
> at weblogic.management.tools.WebAppComponentRefreshTool.
> refresh(WebAppComponentRefreshTool.java:151)
> at weblogic.deploy.refresh(deploy.java:704)
> at weblogic.deploy.runBody(deploy.java:374)
> at weblogic.utils.compiler.Tool.run(Tool.java:79)
> at weblogic.deploy.main(deploy.java:1601)
>Unable to resolve weblogic.management.home.olbcluster.
>Resolved: 'weblogic.management.home' Unresolved:'olbcluster'
>
>Any ideas?
>
Hi John,
How's tricks?
It looks to me as though the olbcluster JNDI reference isn't being resolved from
the tree. A similar error results when a Connection Pool cannot be resolved, the
JNDI context env.jdbc is resolved but the particlar pool isn't. In my experience
it often turns out to be an error in the correlation between the deployment descriptors,
settings applied via the console and references made in the code.
That's my tuppence worth,
James :-)
-
Weblogic.deploy update -- and that null message
So, does anyone else receive an inexplicable error message when running "weblogic.deploy update" in version 6.0, stating that a "java.lang.NullPointerException" has been thrown?
The update occurs anyway, but seeing a message like this is always disconcerting. Anyone have an idea why this is happening?
(The exact trace that I receive is cut-n-pasted below.)
T Fenstermaker
Online Resources
McLean VA
java.lang.NullPointerException
at weblogic.deploy.deployApplication(deploy.java:383)
at weblogic.deploy.deploy(deploy.java:340)
at weblogic.deploy.runBody(deploy.java:219)
at weblogic.utils.compiler.Tool.run(Tool.java:81)
at weblogic.deploy.main(deploy.java:954)If you use the -debug setting with weblogic.deploy you get more
info. I'm deploying an .ear file, deployment works if I use the
console, and if I just copy the ear file to the domain and WLS
autodeploys.
I getting the following error.
[java] java.net.MalformedURLException: unknown protocol: d
[java] at java.net.URL.<init>(URL.java:480)
[java] at java.net.URL.<init>(URL.java:376)
[java] at java.net.URL.<init>(URL.java:330)
[java] at weblogic.deploy.parseSource(deploy.java:539)
[java] at weblogic.deploy.init(deploy.java:299)
[java] at weblogic.deploy.runBody(deploy.java:214)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:81)
[java] at weblogic.deploy.main(deploy.java:1036)
[java] javax.management.InstanceNotFoundException: harmony
[java] at weblogic.rmi.internal.AbstractOutboundRequest.sendRecei
OutboundRequest.java:90)
[java] at weblogic.management.internal.AdminMBeanHomeImpl_WLStub.
minMBeanHomeImpl_WLStub.java:1147)
[java] at weblogic.deploy.findMBean(deploy.java:815)
[java] at weblogic.deploy.findApplicationMBean(deploy.java:804)
[java] at weblogic.deploy.deploy(deploy.java:312)
[java] at weblogic.deploy.runBody(deploy.java:222)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:81)
[java] at weblogic.deploy.main(deploy.java:1036)
[java] java.lang.NullPointerException
[java] at weblogic.deploy.deployApplication(deploy.java:420)
[java] at weblogic.deploy.deploy(deploy.java:367)
[java] at weblogic.deploy.runBody(deploy.java:222)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:81)
[java] at weblogic.deploy.main(deploy.java:1036)
[java] Java Result: 1
"T Fenstermaker" <[email protected]> wrote:
>
So, does anyone else receive an inexplicable
error message when running "weblogic.deploy
update" in version 6.0, stating that a
"java.lang.NullPointerException" has been thrown?I take it from the lack of response that the answer to
this question must be either:
a) No, no one else receives this inexplicable error, or,
b) Yes, everyone else receives this inexplicable error
and it's so well known how dare I ask.
Anyone want to give me a clue which of these two is correct?
T Fenstermaker
Online Resources
McLean VA -
Is weblogic.deploy nondeterminism?
Hello All,
I am using WLS 6.1 sp2
** Problem's description **
I am trying to deploy using the tool weblogic.deploy. The same archive might deploy
fine after retrying due to an unsuccessful deployment.
** The two methods I am ausing **
In order to deploy an ejb-jar W/ weblogic.deploy I can deploy using directly my
ejb-jar or an ear that will contain my ejb-jar.
** Method 1: Example of my ejb-jar deployment **
C:\Temp>java -cp "C:\bea_61\wlserver6.1\lib\weblogic.jar" weblogic.deploy -port
7001 -host localhost -component XDEArchiveB11:examplesServer deploy myPasswd "BMPArchive"
"C:\Temp\DEPLOYABLE_EJBJar.jar"
** Method 2: Example of my ear deployment **
C:\java -cp "C:\bea_61\wlserver6.1\lib\weblogic.jar" weblogic.deploy -port 7001
-host localhost -component DEPLOYABLE_EJBJar:examplesServer deploy passwd "BMPArchive"
"C:\Temp\BMPArchive.ear"
** The tool will sometimes report the following Exception (the weblogic.log won't
report the exception but only that the archive has been 'undeployed') **
weblogic.j2ee.DeploymentException:
at weblogic.deploy.deploy(deploy.java:683)at weblogic.deploy.runBody(deploy.java:373)at
weblogic.utils.compiler.Tool.run(Tool.java:79)at weblogic.deploy.main(deploy.java:1616)
Note 1:
1- The same archive might deployed fine w/ Method 1 (described above) after a
unssuccesful deployment w/ method 2.
2- The same archive might deployed fine w/ Method 2 (described above) after a
unssuccesful deployment w/ method 1.
When deployment failed, by looking at the weblogic.log, I have the following:
1- <Apr 15, 2002 4:11:32 PM PDT> <Info> <J2EE> <wus-wa1julien> <examplesServer>
<ExecuteThread: '8' for queue: '__weblogic_admin_rmi_queue'> <system> <> <160003>
<Deployed : BMPArchive>
2- <Apr 15, 2002 4:11:33 PM PDT> <Info> <J2EE> <wus-wa1julien> <examplesServer>
<ExecuteThread: '8' for queue: '__weblogic_admin_rmi_queue'> <system> <> <160004>
<Undeployed : BMPArchive>
Any idea why the tool weblogic.deploy does not always give the same consistent
results?
Thanks for your time trying to understand my problem,
~LoicJust cast directly to oracle.jdbc.OracleOracleCallableStatement.
"Bal" <[email protected]> wrote in message
news:400d1de3$[email protected]..
>
is weblogic.jdbc.common.OracleCallableStatement deprecated?
While compiling my program I get the warning "The typeOracleCallableStatement
is deprecated". Is it so? If it is true what is the altenative. -
Exception accessing ADF application deployed on Oracle Weblogic Server
Hi All,
We have a web application developed using ADF Faces, Trinidad & BC4J. The application runs fine on Oracle JDeveloper 11g (11.1.2.1.0). When I deploy the same on to remote weblogic server 10.1.3 and I access the jspx page I get the below exception:
javax.faces.el.EvaluationException: java.lang.NullPointerException
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:966)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:346)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
It looks like there is some issue with the datasource. I have created a datasource WebApplicationDS with JNDI name jdbc/WebApplicationDS on the weblogic server.In the application module I have changed the datasource from java:comp/env/jdbc/WebApplicationDS to jdbc/WebApplicationDS before deploying on to WLS. With the current setting if I run from JDeveloper I get the same error.
Please let me know how to resolve this issue.
Thanks in advance.
Regards
NavinHi Frank,
That is were the issue started, I have created the datasource with the name WebApplicationDS and JNDI name as jdbc/WebApplicationDS and when I acess the application I get the below error:
javax.faces.el.EvaluationException: java.lang.NullPointerException
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:966)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:346)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
Thanks
Navin -
Can I run the Servlet and Bean code on Sun ONE Webserver 6.1 SP5
Hi all.
My environment as below.
1) Windows 2000 Server SP4
2) Sun ONE Webserver 6.1 SP5
3) JRE1.5.0
The directory ( WEB-INF/classes) where is to create on. I have a Bean and Servlet code but I can't
to run it on. Another code Jsp, HTML can run.
How can I do?Your question is somewhat vague, but I'll presume that you are asking how you can invoke your servlets.
If the servlet classes are correctly deployed, you can invoke them directly. i.e. http://host/<app>/servlet/<classname>. Or, you can create servlet mappings.
Java beans cannot be invoked the same way a servlet can. You can access beans from within servlets.
For more details, check out the servlet tutorials at http://java.sun.com -
How to deploy Servlet Application in Weblogic 8.1
Hi,
I am new to BEA Weblogic 8.1 .
I was trying to create a sample application using InelliJ IDea 5.1 , and IntelliJIdea 10.5 . i configured weblogic with IDE , but now i do not know how to deploy my application in weblogic .
I am new in IntelliJ also .
So Can anyone tell me how can i deploy a servlet application in any IDE like i also have eclipse indigo.
Thanks & Regards
KomiHi Komi
Basically you deploy your Servlet as a WAR File. I am not familiar with IntellJ IDE. But it should have a provision to export/create a WAR file that has your Servlet. Also I hope you already have web.xml file with 2 sections like this: First you mention full package of your servlet and give it a name. Then enter a mapping url. You will use this url to run your servlet like http://weblogichost:weblogicport/yourWebappcontextroot/myservlet
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>com.abd.def.MyServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyServlet</servlet-name>
<url-pattern>/myservlet</url-pattern>
</servlet-mapping>
Coming to deployment, I hope you already created a Weblogic Domain and have admin username/password. Start your domain. Login into weblogic console like http://host:port/console and use admin username/password. Then from Deployments section, deploy the above WAR file. In Weblogic you can deploy JAR (EJBs, java files), WAR (web jsp, html, webservices, servlets) or EAR (JAR + WAR). In your case its just a WAR file.
Refer the online docs for more details on Deployments in Weblogic.
http://docs.oracle.com/cd/E13196_01/platform/docs81/deploy/deploy.html
Thanks
Ravi Jegga -
Steps to deploy an ejb application and running an ejb client in weblogic server6.1
steps to deploy an ejb application and steps to run an ejb client in weblogic server6.1
if the client is an simple java application and if the client is a servletHi.
Check out the beanManaged example that ships with WLS and read the accompanying docs. This
is a simple EJB with a servlet that invokes it.
Michael
shekhar sachdev wrote:
steps to deploy an ejb application and steps to run an ejb client in weblogic server6.1
if the client is an simple java application and if the client is a servlet--
Michael Young
Developer Relations Engineer
BEA Support -
How Do I create & run a new servlet in the Weblogic 8.1 Workshop?
Using the Workshop environment I added a new Empty Application, then a new Web Project,MyServletPrj,then I added a new Java Class and created a famous HelloWorldServlet class.
Next I built application, started a WebLogic Server and depolyed application to the server.
I checked through the Administrative console that HelloWorldServlet was deployed as a part of my project.
How can I run my servlet?
I tried to run it from the MS Explorer browser
http://localhost:7001/MyServletPrj/servlet/HelloWorldServlet
It doesn't work.
What is the problem?
Thanks,
Irinahi katzirina ,
To create or import the Servlet in workshop and to run it, we need to follow the
steps in workshop as given below.
1)Create the empty application
2)Create the webproject under the application
3)Right click on the webproject and choose the new -> java Class to write the
servlet in IDE Or choose import option and import the servlet file
4)Start the weblogic server
5)Go to tools menu->choose weblogic server->choose weblogic builder
6) In weblogic builder go to file menu->open your webproject
then it shows servlet ,filter,security Constriant and tag libraries folders in a builder at left side
7)Click on the servlet folder and click on the add button at right pane of the builder then you will give servlet name , servlet class name and url pattern.
After giving the Urlpattern click on the add button which is right to the urlpatern text field.
8)Click on ok button
9)click on the save button
then you will see the servlet mapping elements in web.xml file in workshop IDE what we given in builder.
10)Exit from the weblogic builder
11)Right click on the application and clean the application
12)Build the application
then it compiles the Servlets files automatically.
You can see the those class files in .workshop folder which is located under applicaton folder.
Note :go to the applicaton where it is stored.you should see these files manually because workshop ide shows the navigation from the webproject only. you can't see these files from workshop.
13)Go to tools menu->weblogic server->weblogic console and test the application using the weblogic console.
or Directly opent he internet explorer send a request for particular servlet by giving urlpattern.
--- Anilkumar kari -
Deploying beans in weblogic 6.0
Hello,
Can anyone tell me how to deploy beans, servlets etc in 6.0. I have done
everything in 5.1. But we are not able to find out how everything is working
on 6.0. If someone can give me a URL which mentions all these, I will be
much grateful.
Suresh.http://e-docs.bea.com/wls/docs60/adminguide/appman.html
"Suresh Wilson." wrote:
Hello,
Can anyone tell me how to deploy beans, servlets etc in 6.0. I have done
everything in 5.1. But we are not able to find out how everything is working
on 6.0. If someone can give me a URL which mentions all these, I will be
much grateful.
Suresh. -
Can servlet access Serializable Bean ?
This is my bean below.. My jsp pages can access this bean but my servlet cannot... Do I need to make remove the Serializable interface that I am implementing right now so servlet can access ? Can serlvet access beans ?
import java.io.*;
import java.sql.*;
import javax.sql.*;
import java.util.*;
* Re-usable database connection class
public class ConnectDB implements Serializable{
// setup connection values to the database
static final String DB_DRIVER = "";
static final String myURL = "";
static final String USERNAME = "";
static final String PASSWORD = "";
static Connection con = null;
public ConnectDB(){}
/* Returns a connection the file that calls the method*/
public static Connection getConnection()
try
Class.forName("oracle.jdbc.driver.OracleDriver");
con = DriverManager.getConnection("......");
catch (Exception e)
e.printStackTrace();
finally
return con;
/*Closes Connections*/
public static void closeConnection(Connection con)
try
if (con != null)
con.commit();
con.close();
catch (Exception e)
e.printStackTrace();
}A Servlet is just a Java class and so can access beans. Also, a JSP is translated to a servlet before execution so you already have a servlet accessing the bean.
Can you post relevant code and error message?
Maybe you are looking for
-
How do I save a component from a schematic in Multisim 11?
I have some schematics with parts I'd like to add to my library. Is there a way to save the part directly to my database without haveing to go through the pesky component wizard?
-
How to get an empty page to fill content?
every time we open a new template page, we get this pic, all was filled with words, how to get a n empty page or delete the words auto?
-
Can I import photos from photo booth to make a slideshow onto iPhoto and if so how do I do this?
-
Datafile not showing in PSAP SID 640 tablespace
Hi All, In our quality server we are having we are having datafile PSAPDQT & PSAPDQT640, in PSAPDQT sapdata 1 & 2 not showing remaining datafiles are showing, but in PSAPDQT640 its showing all the datafiles sapdata1,2,3 &4., in transaction DB02-->
-
Hello everyone, I am very new to Cold Fusion. I am slowly trying to learn and integrate cold Fusion into my existing websites. one thing I would like to do is just use a nice simple Cold fusion Form that posts data to an ASP page, Currently I use a s