Help on how to config weblogic 5.1's file encoding or codeset
I have some written chinese characters in my stateless session bean, i got to send
them to a web site through http connection using get method, but chars arrived
at web site are in wrong format, I tried to use new String (msg.getBytes("", "GBK"))
or new String (msg.getBytes("ISO8859_1","GBK")) to transfer but didn't work ,
my java VM's file.encoding = GBK , weblogic server is the same , BTW I wrote
a stand alone application to open a URLConnection and send these chars, it worked,
it just didn't work in my stateless session bean
any help will be appreciated, thanks in advance!!!
I have tuned this parameter, but it is not effective.
if use tomcat or jboss , tune the similar parameter:maxHttpHeaderSize="8192", upload file will be very fast.
Similar Messages
-
How to config Dreamweaver to open .pt files which are essentially html templates?
Hi,
I am a python developer. I want to use my Dreamweaver5.5 to open some .pt page template which are essentially html templates. However, the file can only be edited in the code view. The Split view and Disign view are disabled. Could someone tell me how to configurate Dreamweaver to treat .pt file like .html file?Thanks. I am using a mac version. This article shows it's not a easy task:
http://www.packtpub.com/article/skinners-toolkit-for-plone-3-theming-part2
In investigating it for this article, it was not possible to open .pt (page template) files using Dreamweaver, which is a deal breaker, as page templates are certainly part of the theming process. It's not known if this is merely a configuration error, but several attempts at configuring Dreamweaver to open .pt files failed. -
How to config weblogic 10.3.3 server log and domain log?
I need to change the default logging configuration for both server log and the domain log. The server logging configuration (such as limiting the number of retained log files) can be updated in the Admin console. Howerver there are 100 domains running in a weblogic instance, can this be accomplished by updating a configuration file for each domain instead of going through the web interface?
Also, how can I change the domain log configuration? Is there a configuration file or a command line argument for this?
Thanks,
HongHi Hong,
Based on your requirement we have just created a script for you which would full fill your requirement.
Note: Please the below properties files and the WLST script in the same same location
"*domain.properties*"
domain.count=2
rotationType=bySize
numberOfFilesLimited=yes
fileMinSize=3000
rotateLogOnStartup=yes
fileCount=5
### Domain-1 Details ###
domain.1.name=Domain_7001
domain.1.admin.url=t3://10.10.10.10:7001
domain.1.admin.username=weblogic
domain.1.admin.password=weblogic
domain.1.server.count=2
domain.1.server.1.name=AdminServer
domain.1.server.2.name=MS-1
### Domain-2 Details ###
domain.2.name=Test_Domain
domain.2.admin.url=t3://20.20.20.20:8001
domain.2.admin.username=weblogic
domain.2.admin.password=weblogic
domain.2.server.count=2
domain.2.server.1.name=AdminServer
domain.2.server.2.name=MS-1 Below is the WLST script "*domainLogConfigurtionChange.py*" which would use the above properties file.
# @author Copyright (c) 2010 - 2011 by Middleware Maigc, All Rights Reserved.
from java.io import FileInputStream
propInputStream = FileInputStream("domain.properties")
configProps = Properties()
configProps.load(propInputStream)
totalNumbersofDomains=configProps.get("domain.count")
rotationType=configProps.get("rotationType")
numberOfFilesLimited=configProps.get("numberOfFilesLimited")
fileMinSize=configProps.get("fileMinSize")
rotateLogOnStartup=configProps.get("rotateLogOnStartup")
fileCount=configProps.get("fileCount")
def str2bool(v):
return v.lower() in ("yes", "true", "t", "1")
domainTmpCount=1
while (domainTmpCount <= int(totalNumbersofDomains)) :
domainName = configProps.get("domain."+ str(domainTmpCount)+".name")
domainAdminUrl = configProps.get("domain."+ str(domainTmpCount)+".admin.url")
domainAdminUserName = configProps.get("domain."+ str(domainTmpCount)+".admin.username")
domainAdminPassword = configProps.get("domain."+ str(domainTmpCount)+".admin.password")
serverTmpCount = configProps.get("domain."+ str(domainTmpCount)+".server.count")
connect(domainAdminUserName, domainAdminPassword, domainAdminUrl)
print '==============================================='
print 'Changing Log Settings For Domain....', domainName
print '==============================================='
serverTmpCount=1
while (serverTmpCount <= int(totalNumbersofDomains)) :
edit()
startEdit()
serverName = configProps.get("domain."+ str(domainTmpCount)+".server."+ str(serverTmpCount)+".name")
print 'Changing Log Setting for serverName: ' , serverName
cd('/Servers/' + serverName + '/Log/' + serverName)
cmo.setRotationType(rotationType)
x = str2bool(numberOfFilesLimited)
cmo.setNumberOfFilesLimited(x)
cmo.setFileMinSize(int(fileMinSize))
cmo.setRotateLogOnStartup(str2bool(rotateLogOnStartup))
cmo.setFileCount(int(fileCount))
cmo.setFileName('logs/' + serverName + '.log')
activate()
serverTmpCount = serverTmpCount +1
domainTmpCount = domainTmpCount +1 For more information on how these WLST scripts can be used please refer to the following link
Topic: WLST
http://middlewaremagic.com/weblogic/?page_id=1492
Regards,
Ravish Mody -
Plsss help me: how to set default values in html:file and html:radio
Hai,
To set default value to text box i use the following code. It works well.
<html:text property="modifyserverdesc" value="<%= serverDesc%>" styleClass="text" size="38"/>But for file i use the code
<html:file styleClass="file" property="modifyserverimgfile" value="<%= serverImage%>" size="40"/>It doesn't display value. What is problem here?
how to set default selection in <html:radio>.No it won't help.
You can't set a value into an <input type="file"> control at all. The user has to put values in themselves.
The reason behind this is security. If the programmer could put any value they liked in there, you could upload any file at all from a users computer without their intervention. eg C:\windows\system32\passwords.txt
Bottom line: you can't put a default value into the input type="file" control.
And a good thing too ;-) -
Please help! How do i open Nikon D610 raw files in cs3 on a mac OS X 10.6
how do i open d610 raw files in cs3 on a mac OS X 10.6
I clearly have issues supporting these files on such an old laptop but these images are critical and I would appreciate any download advise or other??Download the free Adobe DNG converter, convert your files to DNG and CS3 should be able to open them.
Photoshop Help | Digital Negative (DNG) -
Can any body Help me how to upload the BANK SORT codes File other LSMW
Dear Experts
I Could not under stand how to upload bank "sort codes" file in to SAP system other than LSMW,
could please some body help me ,
the file which have "CSV" format, is the format is correct format to upload into SAP system?
and Country code is Great Britan
Best regards
RanamkaHI
I have to sort codes ordered to upload into SAP , I have the date which i have below mentioned format can any body guide me weather formate is correct or not , if wrong please provide me which is correct format and also give me which it the transaction code for uploading
Field No. Field Description Data Type Max.Length
1 Record Type
2 Branch or place
3 BIC Bank Code
4 BIC Branch Code
5 6 Digit Sort Code
6 Address Line 1
7 Address Line 2
8 Address Line 3
9 Postcode
10 Telephone Number
11 Branch Title
12 Bank Name
13 Town
14 Date Last Amended
Best Regards
Ranamka -
Help! How to read data from an Excel file?
Hi,
I need to read data from an Excel file that may contain more then one table in a sheet. How can I read them?
I would be eternally grateful to anyone who can give me any information.Did you try POI from Apache?
http://jakarta.apache.org/poi/index.html -
HELP! how do i remove old duplicate song files now iv moved my music?
I moved all my music from various folders into pretty much one place on my other hard drive to help clear some space. When i then re-added the folders to my library, I am left with apparently 2 versions of every song, but one version I assume is trying to access the file from the old location as it asks if i want to find the file manually becuase itunes can't find it. Is there any way at all to get rid of all of these files that don't contain songs, that doesn't involve clicking through every single song of my many thousands manually? It's making my life a misery even thikning about it.
Try ordering your songs by date added. The ones you just added will be at the top (or the bottom) - then you've just got to find where the newly added list stops and the old tracks begin and select all the tracks from then onwards. Sorted.
Hope that helps. -
Help!How to convert a plenty of doc files to pdf format?
System: windows xp
Software: Adobe Acrobat Professional 7.0
I'm tired of repeatedly click open,convert,save,close to convert a large quantity of doc files to pdf format.Is there any easy way to do this? Is there any kind of plugin or batch command provided to this software?Turn off the view in Acrobat option in the Adobe PDF printer and then just drag and drop them on the printer. You may have to figure out where to send them or accept the default, again an option in the printer.
-
How to add Weblogic 10.3 Thin-Client library to project?
Dear All,
Can anyone help me how to include Weblogic 10.3 Thin-Client library to project. I am wondering for the location of Weblogic 10.3 Thin-Client library, but unable to locate it.
Thanks in advance.
Best Regards
BilalIts done...
Go to project properties -> libraries -> Add library -> Weblogic 10.3 Thin-Client. -
i don't know how to config weblogic in myeclipse
what are the plugins to be used to config weblogic in the myeclipsehttp://www.google.com/search?q=myeclipse+weblogic+setup&ie=utf-8&oe=utf-8&aq=t
You can't really expect us to do all your research, can you? -
How to insert sysdate in a flat file
Hi All,
i have a interafce i extract data from oracle database and generate a flat file.
In one of the columns i have to insert sysdate in the file.
could someone help me how to add the sysdate in flat file.
Thanks in advance
NaveenHi Naveen,
Trying to contribute a little,
Yes you can use sunopsis CURRENT_DATE function to get the sysdate.
@ your interface
1. In the definition, make sure your staging area different from target is checked and SUNOPSIS MEMEORY ENGINE is selected.
2. In the diagram, for the column which you want date to be inserted just say CURRENT_DATE and make it to execute on STAGING.
3. In the Flow, you have to see 3 boxes, in the first box select LKM SQL to SQL, in the second box make it as UNDEFINED, in the third box select IKM SQL To FIle Append and select the options accordingly.
Makes sens?
Thanks,
G -
How to create and manage the log file
Hi,
I want to trace and debug the program process.
I write the code for creating log file and debugging the process.
But i am not able get the result.
please help me how to create and manage the log file.
Here i post sample program
package Src;
import java.io.*;
import org.apache.log4j.*;
import java.util.logging.FileHandler;
public class Mylog
private static final Logger log = Logger.getLogger("Mylog.class");
public static void main(String[] args) throws Exception {
try {
// Create an appending file handler
boolean append = true;
FileHandler handler = new FileHandler("debug.log", append);
// Add to the desired logger
Logger logger = Logger.getLogger("com.mycompany");
System.out.println("after creating log file");
catch (IOException e)
System.out.println("Sys Err");
}Please give the your valuable suggesstion... !
Thanks
MerlinRoshinaJust i need to write a single line in log file.
-
Plz help. How disable caching SQLJ statement on WebLogic server 10.3?
Plz help.
How disable caching statement by SQLJ on WebLogic server?
what the actual problem:
1. create or replace view vtest as select object_name from dba_objects where rownum<200
2. test.sqlj
#sql dx testIterator = {
select object_name from vtest
int cnt=0;
while( testIterator.next() ){
cnt++;
System.out.println("Count: "+cnt);
3. Restart WebLogic and deploy project
4. Run test on server, in log file
"*Count: 199*"
5. create or replace view vtest as select object_name from dba_objects where rownum<10
6. Run test on server, in log file
"*Count: 199*"
7. Restart WebLogic
8. Run test on server, in log file
"*Count: 9*"Hi bud,
Have you tried using WLST for what you are trying to achieve?
Please take a look at the following links:
http://docs.oracle.com/cd/E11035_01/wls100/config_scripting/domains.html
http://docs.oracle.com/cd/E13222_01/wls/docs91/config_scripting/domains.html
http://docs.oracle.com/cd/E13179_01/common/docs21/interm/config.html
Hope this helps.
Thanks,
Cris -
How to tell weblogic server which configuration I want to use
Hi Everyone,
I write the logmodule class, configuration class, Action class, client class
and my policy file my.policy.
I add the VM parameter when I start weblogic server
"-Djava.security.auth.policy=D:\bea\wlserver6.1/lib/my.policy"
But I don't know how to let weblogic server know my configuration class, so
that the server will create it when my client code create LoginContext
object.
Some artical told me that add the configuration class name in java.security
file, like the following
login.configuration.provider=mypackage.myConfig
unfortunately, it don't work :(
I always got the exception message
No Configuration Class Name Supplied
Does anyone kindly tell me how to let the system know my configuration class
name?
Regards,
xlzhouHi,
we are facing the same problem, if you get the solution would you please help
us out?
Regards
Sudipto
[email protected] (Joe Zhou) wrote:
I almost got same problem.
I wrote a deme which is using jaas.
The client part:
Properties property = new Properties(System.getProperties());
property.put("weblogic.security.jaas.ServerURL",
"http://localhost:7001");
System.setProperties(property);
// Set configuration class name to load SampleConfiguration, the
//Configuration for the JAAS code example
property = new Properties(System.getProperties());
property.put("weblogic.security.jaas.Configuration",
"test.servlets.TestConfig");
System.setProperties(property);
// Set Configuration file name to load sample configuration policy
file.
property = new Properties(System.getProperties());
property.put("weblogic.security.jaas.Policy",
"C:/bea/wlserver6.1/config/mydomain/Test.policy");
System.setProperties(property);
loginContext = new LoginContext("TestPolicy", new
MyCallbackHandler());
The Test.policy:
TestPolicy
test.servlets.TestLoginModule required debug=true;
And I add "-Djava.security.auth.policy=%WL_HOME%\config\mydomain\Test.policy"
when I start weblogic server.
But when I run the code, I got the exception:
Invalid Configuration Class Name: test.servlets.TestConfig
java.lang.NullPointerException
at javax.security.auth.login.LoginContext.loadLoginModule(LoginContext.j
ava:101)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:54)
at test.servlets.TestSecure.doPost(TestSecure.java:69)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Seems the problem is in my TestConfig.
I just copy the SampleConfig.java as my TestConfig.java (modified a
little) and copy the ConfigParser.java (those are in the
samples\examples\security\jaas\examples\security\jaas)
Any suggestion???
BTW, all the necessary classes is in the .war file.
Thanks in advance.
Joe
"Xiao Ling Zhou" <[email protected]> wrote in message news:<[email protected]>...
Hi Everyone,
I write the logmodule class, configuration class, Action class, clientclass
and my policy file my.policy.
I add the VM parameter when I start weblogic server
"-Djava.security.auth.policy=D:\bea\wlserver6.1/lib/my.policy"
But I don't know how to let weblogic server know my configuration class,so
that the server will create it when my client code create LoginContext
object.
Some artical told me that add the configuration class name in java.security
file, like the following
login.configuration.provider=mypackage.myConfig
unfortunately, it don't work :(
I always got the exception message
No Configuration Class Name Supplied
Does anyone kindly tell me how to let the system know my configurationclass
name?
Regards,
xlzhou
Maybe you are looking for
-
How can I pass value between two pages or fragments?
Hi, I am learning ADF nowadays. Now I come across the following problem. There are two pages or fragments in a bounded task flow, e.g. PageA&PageB. There is an inputtext on PageA.When I press an button on PageA with an action jumpping to PageB I want
-
I just purchased an APPLE TV. I also own a ROKU and found a great app to use instead of the included remote, is there a similar app to purchase for my new apple device.? I like a keypad to use when typing in info.also is there any way to get the Glen
-
PowerMac G4 (Mirror door drive) shuts down automatically when starting up.
I use a PowerMac G4 (Mirror door drive) 1.25 Ghz processor with1.25 GB ram, 80GB HDD. OS 10.2.7 Recently I could not start the machine as it automaticallyshuts down during starting when the log in dialog box appears. It also creates excessivesounds (
-
So the playback button is not working and the only time it starts working is after an update. What is wrong with it and how can I fix it?
-
Capturing a photo from a video
I am running Adobe Photoshop Element V6.0 on Windows XP. I have read the Photoshop help on how to capture a photo from a video, but have not successfully done it. I click on File > Import > Frame from video. When the video is playing, I click on the